Page 1 of 1
Posted: Wed Jul 18, 2007 4:57 pm
by Sotho Tal Ker
Code: Select all
$ make
Making all for objc_program oolite...
make[1]: *** No rule to make target `shared_obj/OOOXPVerifier.o', needed by `shared_obj/oolite.exe'. Stop.
make: *** [oolite.all.objc-program.variables] Error 2
I got this when compiling r1091 in Windows.
(I omissed the "Compiling blabla and the warnings, don't wonder
)
Posted: Wed Jul 18, 2007 5:09 pm
by JensAyton
Sotho Tal Ker wrote:Code: Select all
$ make
Making all for objc_program oolite...
make[1]: *** No rule to make target `shared_obj/OOOXPVerifier.o', needed by `shared_obj/oolite.exe'. Stop.
make: *** [oolite.all.objc-program.variables] Error 2
I got this when compiling r1091 in Windows. :(
(I omissed the "Compiling blabla and the warnings, don't wonder :P)
My assumption would be that one or more of those warnings relate to problems with building OOOXPVerifier.m. Warnings are important, and there shouldn’t be any.
Posted: Wed Jul 18, 2007 7:31 pm
by another_commander
Sotho Tal Ker: Cannot test it right now, but try this:
1) Open GNUmakefile
2) At the beginning of the file there are the lines:
Code: Select all
vpath %.m src/SDL:src/Core:src/Core/Entities:src/Core/Materials:src/Core/Scripting
vpath %.h src/SDL:src/Core:src/Core/Entities:src/Core/Materials:src/Core/Scripting
vpath %.c src/SDL:src/Core:src/BSDCompat
Change the two top ones to:
Code: Select all
vpath %.m src/SDL:src/Core:src/Core/Entities:src/Core/Materials:src/Core/Scripting:src/Core/OXPVerifier
vpath %.h src/SDL:src/Core:src/Core/Entities:src/Core/Materials:src/Core/Scripting:src/Core/OXPVerifier
(New lines only at the end of the lines with the paths)
This should fix the "No rule" make error.
Posted: Wed Jul 18, 2007 9:15 pm
by JensAyton
Y’know, I was looking for that, and looked at those lines, and still managed to miss it. :-/
Posted: Wed Jul 18, 2007 10:42 pm
by Sotho Tal Ker
Compiles fine now.. just with some warnings here and there. A few of them can be fixed quite easily, as i figured out.
Code: Select all
Compiling file src/Core/Scripting/OOJSQuaternion.m ...
src/Core/Scripting/OOJSQuaternion.m:556:2: warning: no newline at end of file
^- Just add a newline at the end.
Code: Select all
Compiling file src/Core/Entities/PlayerEntityControls.m ...
src/Core/Entities/PlayerEntityControls.m:1053:8: warning: extra tokens at end of #endif directive
^- Remove the NO_SHADERS after #endif
Code: Select all
Compiling file src/Core/Entities/PlayerEntityControls.m ...
src/Core/Entities/PlayerEntityControls.m:1053:8: warning: extra tokens at end of #endif directive
^- Remove the ALLOW_PROCEDURAL_PLANETS after #endif
Code: Select all
Compiling file src/Core/Materials/OOMaterial.m ...
src/Core/Materials/OOMaterial.m:60:35: warning: extra tokens at end of #import directive
^- Remove the ;
Posted: Wed Jul 18, 2007 11:07 pm
by JensAyton
Sotho Tal Ker wrote:
Code: Select all
Compiling file src/Core/Entities/PlayerEntityControls.m ...
src/Core/Entities/PlayerEntityControls.m:1053:8: warning: extra tokens at end of #endif directive
^- Remove the NO_SHADERS after #endif
You mean src/Core/OOOpenGLExtensionManager.m:105:8. ;-)
Posted: Thu Jul 19, 2007 12:02 am
by Sotho Tal Ker
*grrrr* yes, that slipped me :'(
Are you aware of the other build warnings?
Posted: Thu Jul 19, 2007 8:29 am
by JensAyton
No. It builds with no warnings under OS X, using the warning flags: “-Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Werror”.
Posted: Thu Jul 19, 2007 10:50 am
by Sotho Tal Ker
How do I pass those warnings flags when I build it with GNUstep in Windows? Just this?:
Code: Select all
make -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Werror
Posted: Thu Jul 19, 2007 12:10 pm
by JensAyton
I think you’d add them to OTHER_CFLAGS and OTHER_OBJCFLAGS in GNUmakefile, but I’m not sure.