Building under Windows - OOOXPVerifier.o

News and discussion of the PC port of Oolite.

Moderators: winston, another_commander

Post Reply
Sotho Tal Ker
Above Average
Above Average
Posts: 17
Joined: Thu Jul 12, 2007 12:35 am

Post 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 :P)
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post 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.
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6683
Joined: Wed Feb 28, 2007 7:54 am

Post 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.
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

Y’know, I was looking for that, and looked at those lines, and still managed to miss it. :-/
Sotho Tal Ker
Above Average
Above Average
Posts: 17
Joined: Thu Jul 12, 2007 12:35 am

Post 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. :D

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 ;
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post 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. ;-)
Sotho Tal Ker
Above Average
Above Average
Posts: 17
Joined: Thu Jul 12, 2007 12:35 am

Post by Sotho Tal Ker »

*grrrr* yes, that slipped me :'(

Are you aware of the other build warnings? :D
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post 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”.
Sotho Tal Ker
Above Average
Above Average
Posts: 17
Joined: Thu Jul 12, 2007 12:35 am

Post 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
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

I think you’d add them to OTHER_CFLAGS and OTHER_OBJCFLAGS in GNUmakefile, but I’m not sure.
Post Reply