dreamgl compile failure

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply
Steve F
Posts: 75
Joined: Wed Apr 27, 2005 2:30 am
Location: Texas USA

dreamgl compile failure

Post by Steve F »

I CVS checkout dreamgl to my /usr/local/ps2dev directory.

cd to /usr/local/ps2dev/dreamgl and run make.

Compile failed on creating lib/libdreamgl.a .

I mkdir ./lib and run make again.

That part compiled without failure.

Same thing happened with bin. After I mkdir ./bin that part worked.

I would have thought gcc could create directories on the -o option. I looked in other CVS projects and needed directories already exist, so ...
Guest

Post by Guest »

"Bug reports" is really kinda confusing for this particular forum because I think its intended for "forum" related bugs, not any softwares provided at ps2dev. So please don't mind me shuffling it off to one that looks more appropriate. :)
pixel
Posts: 791
Joined: Fri Jan 30, 2004 11:43 pm

Post by pixel »

mkdir of bin and lib should be in makefile. Feel free to add it :P
pixel: A mischievous magical spirit associated with screen displays. The computer industry has frequently borrowed from mythology. Witness the sprites in computer graphics, the demons in artificial intelligence and the trolls in the marketing department.
rinco
Posts: 255
Joined: Fri Jan 21, 2005 2:12 pm
Location: Canberra, Australia

Post by rinco »

I blame CVS and it's inadequate handling of empty directories.

Makefile now creates bin/ and lib/ and also installs into $PS2DEV.
Steve F
Posts: 75
Joined: Wed Apr 27, 2005 2:30 am
Location: Texas USA

Post by Steve F »

Getting better. I see that ps2Perf is added. I checked it out of cvs and built it. The dreamgl Makefile references -L$(PS2DEV)/ps2Perf/lib but it looks like it actually is in -L$(PS2DEV)/ps2Perf/ee/lib .
rinco
Posts: 255
Joined: Fri Jan 21, 2005 2:12 pm
Location: Canberra, Australia

Post by rinco »

I added the install: to ps2Perf Makefile just last week...
which installs to $(PS2DEV)/ps2Perf/lib.

Be sure not to mix up $PS2DEV with your copy of what's in CVS:

~/ps2cvs != /usr/local/ps2dev
Steve F
Posts: 75
Joined: Wed Apr 27, 2005 2:30 am
Location: Texas USA

Post by Steve F »

I only have ps2dev. I have been doing checkout this way:

cd /usr/local/ps2dev
cvs checkout ps2Perf

I get /usr/local/ps2dev/ps2Perf

cd ps2Perf
make

When it's done I find libps2Perf.a in /usr/local/ps2dev/ps2Perf/ee/lib . There is no lib directory under ps2Perf as built straight from cvs. I'm running cygwin and I used Lukasz's tool-chain setup script. I keep my own development files under my home directory.
rinco
Posts: 255
Joined: Fri Jan 21, 2005 2:12 pm
Location: Canberra, Australia

Post by rinco »

I'd fix it, except now it serves the greater good.

$PS2DEV is for installed software - not source, unless example source.
Steve F
Posts: 75
Joined: Wed Apr 27, 2005 2:30 am
Location: Texas USA

Post by Steve F »

I don't get it (what or how it serves the greater good). But anyway, this may be a bit off topic but here is my setup

PS2DEV=/usr/local/ps2dev
PS2SDK=/usr/local/ps2dev/ps2sdk

Would it be better if I made PS2SDK point somewhere else? What are good suggestions? Maybe,

PS2DEV is okay.
PS2SDK = /usr/local/cvs/ps2sdk or /usr/local/ps2cvs/ps2sdk

everything I checkout from cvs goes in /usr/local/cvs and is built from there? And if I understand correctly, the makefiles will copy the necessary headers and libraries over to PS2DEV? Cool!
Post Reply