Getafix wrote: ↑Tue Sep 08, 2020 12:22 pm
dybal wrote: ↑Tue Sep 08, 2020 12:28 am
...and the libjsdbg_static.a I build has "only" 73M.
Yes, but in the same submodule you get both x86 and x86_64 dependencies. This adds up to ~140MB.
True, I didn't think about that...
Getafix wrote: ↑Tue Sep 08, 2020 12:22 pm
dybal wrote: ↑Tue Sep 08, 2020 12:28 am
It took me a while to find out how to build that lib... and another while to figure out that I had to move it manually to the correct location once built...
I really understand, and accept my apologies on that matter!
Don't worry, I'm not really bitching about it, when I started this topic I was a complete Oolite rookie (not that I'm that much less ignorant and näive now
)... the real issue is that it creates a high barrier for people starting in the dark side: you clone the oolite repo, initialize the submodules, and then run
make -f Makefile
and get a linker error pointing to libjsdbg_static:
Code: Select all
Compiling file src/Core/OOTrumble.m ...
Compiling file src/Core/Universe.m ...
Linking objc_program oolite ...
/usr/bin/ld: cannot find -ljsdbg_static
collect2: error: ld returned 1 exit status
/usr/share/GNUstep/Makefiles/Instance/objc.make:79: recipe for target 'obj.spk.dbg/oolite' failed
make[4]: *** [obj.spk.dbg/oolite] Error 1
/usr/share/GNUstep/Makefiles/Instance/objc.make:64: recipe for target 'internal-objc_program-all_' failed
make[3]: *** [internal-objc_program-all_] Error 2
/usr/share/GNUstep/Makefiles/Master/rules.make:297: recipe for target 'oolite.all.objc-program.variables' failed
make[2]: *** [oolite.all.objc-program.variables] Error 2
/usr/share/GNUstep/Makefiles/Master/objc.make:36: recipe for target 'internal-all' failed
make[1]: *** [internal-all] Error 2
make[1]: Leaving directory '/home/dybal/pessoal/oolite/core-game/oolite-local'
Makefile:73: recipe for target 'debug' failed
make: *** [debug] Error 2
Then you start digging about that lib and most info you find on how to build it is dated... I think most people just give up.
Getafix wrote: ↑Tue Sep 08, 2020 12:22 pm
Have you found an added value in using the debug
target, that you actually took advantage of, and that you don't get from the [deps-]release
or [deps-]release-snapshot
targets?
You got me there... I don't really know what the debug target brings to the table... I assumed (my ignorance and naivety showing again...
) the DebugConsole depended on it.
I just built the
pkg-posix-nightly
target without
libjsdbg_static.a
and it supports debug console, profiling, and shows the filename and line number for exceptions, so I think I don't really need the debug library...
Perhaps taking the
debug
from the
all
make target, changing the readme from "run
make -f Makefile
" to "run
make -f Makefile all
" and adding instructions about setting
GNUSTEP_HOST_CPU
and running
git submodules update --init
before "making all" would be enough? That would cover the things I had trouble with when I started...