Page 1 of 1
dreamgl compile failure
Posted: Sat Jun 18, 2005 11:41 pm
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 ...
Posted: Sun Jun 19, 2005 1:48 am
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. :)
Posted: Sun Jun 19, 2005 8:49 am
by pixel
mkdir of bin and lib should be in makefile. Feel free to add it :P
Posted: Sun Jun 19, 2005 9:34 am
by rinco
I blame CVS and it's inadequate handling of empty directories.
Makefile now creates bin/ and lib/ and also installs into $PS2DEV.
Posted: Sun Jun 19, 2005 9:52 am
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 .
Posted: Sun Jun 19, 2005 10:29 am
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
Posted: Sun Jun 19, 2005 11:47 am
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.
Posted: Sun Jun 19, 2005 4:25 pm
by rinco
I'd fix it, except now it serves the greater good.
$PS2DEV is for installed software - not source, unless example source.
Posted: Sun Jun 19, 2005 10:44 pm
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!