Author Topic: Linux CVS Build Issues  (Read 1977 times)

0 Members and 1 Guest are viewing this topic.

Offline Tmpy

  • 22
Linux CVS Build Issues
First of all...  where's the source code tarball for the 3.6.9 release?  There is none.   At least not that I can locate.   :no:

So I'm stuck with cvs.  Alright.  Well, the current cvs doesn't want to build.

During the make process, it starts throwing out a ****load of warnings about weapon.h.  Then an error with aiturrent.cpp causes the whole thing to fail.

Code: [Select]
./weapon/weapon.h: In constructor ‘beam_weapon_section_info::beam_weapon_section_info()’:
./weapon/weapon.h:736: warning: ‘beam_weapon_section_info::length’ will be initialized after
./weapon/weapon.h:735: warning:   ‘float beam_weapon_section_info::width’
./weapon/weapon.h:726: warning:   when initialized here
./weapon/weapon.h:746: warning: ‘beam_weapon_section_info::fps’ will be initialized after
./weapon/weapon.h:740: warning:   ‘float beam_weapon_section_info::flicker’
./weapon/weapon.h:726: warning:   when initialized here
./weapon/weapon.h:743: warning: ‘beam_weapon_section_info::tile_type’ will be initialized after
./weapon/weapon.h:742: warning:   ‘float beam_weapon_section_info::tile_factor’
./weapon/weapon.h:726: warning:   when initialized here
if g++ -DPACKAGE_NAME=\"fs2_open\" -DPACKAGE_TARNAME=\"fs2_open\" -DPACKAGE_VERSION=\"3.6.9\" -DPACKAGE_STRING=\"fs2_open\ 3.6.9\" -DPACKAGE_BUGREPORT=\"\" -DNO_CD_CHECK=1 -DINF_BUILD=1 -DFS2_SPEECH=1 -DNDEBUG=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSCP_UNIX=1 -DNO_DIRECT3D=1 -DUSE_OPENAL=1 -I. -I.    -g -Os -Wall -funroll-loops -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -fsigned-char -Wno-unknown-pragmas  -pg -Wno-deprecated -Wno-char-subscripts -I../lua  -MT aicode.o -MD -MP -MF ".deps/aicode.Tpo" -c -o aicode.o `test -f 'ai/aicode.cpp' || echo './'`ai/aicode.cpp; \
        then mv -f ".deps/aicode.Tpo" ".deps/aicode.Po"; else rm -f ".deps/aicode.Tpo"; exit 1; fi
In file included from ai/aicode.cpp:1195:
./object/waypoint/waypoint.h:35:21: warning: no newline at end of file
./weapon/weapon.h: In constructor ‘beam_weapon_section_info::beam_weapon_section_info()’:
./weapon/weapon.h:736: warning: ‘beam_weapon_section_info::length’ will be initialized after
./weapon/weapon.h:735: warning:   ‘float beam_weapon_section_info::width’
./weapon/weapon.h:726: warning:   when initialized here
./weapon/weapon.h:746: warning: ‘beam_weapon_section_info::fps’ will be initialized after
./weapon/weapon.h:740: warning:   ‘float beam_weapon_section_info::flicker’
./weapon/weapon.h:726: warning:   when initialized here
./weapon/weapon.h:743: warning: ‘beam_weapon_section_info::tile_type’ will be initialized after
./weapon/weapon.h:742: warning:   ‘float beam_weapon_section_info::tile_factor’
./weapon/weapon.h:726: warning:   when initialized here
ai/aicode.cpp: In function ‘int create_object_hash(object*)’:
ai/aicode.cpp:1645: warning: dereferencing type-punned pointer will break strict-aliasing rules
ai/aicode.cpp:1652: warning: dereferencing type-punned pointer will break strict-aliasing rules
if g++ -DPACKAGE_NAME=\"fs2_open\" -DPACKAGE_TARNAME=\"fs2_open\" -DPACKAGE_VERSION=\"3.6.9\" -DPACKAGE_STRING=\"fs2_open\ 3.6.9\" -DPACKAGE_BUGREPORT=\"\" -DNO_CD_CHECK=1 -DINF_BUILD=1 -DFS2_SPEECH=1 -DNDEBUG=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSCP_UNIX=1 -DNO_DIRECT3D=1 -DUSE_OPENAL=1 -I. -I.    -g -Os -Wall -funroll-loops -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -fsigned-char -Wno-unknown-pragmas  -pg -Wno-deprecated -Wno-char-subscripts -I../lua  -MT aigoals.o -MD -MP -MF ".deps/aigoals.Tpo" -c -o aigoals.o `test -f 'ai/aigoals.cpp' || echo './'`ai/aigoals.cpp; \
        then mv -f ".deps/aigoals.Tpo" ".deps/aigoals.Po"; else rm -f ".deps/aigoals.Tpo"; exit 1; fi
In file included from ai/aigoals.cpp:707:
./object/waypoint/waypoint.h:35:21: warning: no newline at end of file
./weapon/weapon.h: In constructor ‘beam_weapon_section_info::beam_weapon_section_info()’:
./weapon/weapon.h:736: warning: ‘beam_weapon_section_info::length’ will be initialized after
./weapon/weapon.h:735: warning:   ‘float beam_weapon_section_info::width’
./weapon/weapon.h:726: warning:   when initialized here
./weapon/weapon.h:746: warning: ‘beam_weapon_section_info::fps’ will be initialized after
./weapon/weapon.h:740: warning:   ‘float beam_weapon_section_info::flicker’
./weapon/weapon.h:726: warning:   when initialized here
./weapon/weapon.h:743: warning: ‘beam_weapon_section_info::tile_type’ will be initialized after
./weapon/weapon.h:742: warning:   ‘float beam_weapon_section_info::tile_factor’
./weapon/weapon.h:726: warning:   when initialized here
if g++ -DPACKAGE_NAME=\"fs2_open\" -DPACKAGE_TARNAME=\"fs2_open\" -DPACKAGE_VERSION=\"3.6.9\" -DPACKAGE_STRING=\"fs2_open\ 3.6.9\" -DPACKAGE_BUGREPORT=\"\" -DNO_CD_CHECK=1 -DINF_BUILD=1 -DFS2_SPEECH=1 -DNDEBUG=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DSCP_UNIX=1 -DNO_DIRECT3D=1 -DUSE_OPENAL=1 -I. -I.    -g -Os -Wall -funroll-loops -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -fsigned-char -Wno-unknown-pragmas  -pg -Wno-deprecated -Wno-char-subscripts -I../lua  -MT aiturret.o -MD -MP -MF ".deps/aiturret.Tpo" -c -o aiturret.o `test -f 'ai/aiturret.cpp' || echo './'`ai/aiturret.cpp; \
        then mv -f ".deps/aiturret.Tpo" ".deps/aiturret.Po"; else rm -f ".deps/aiturret.Tpo"; exit 1; fi
./weapon/weapon.h: In constructor ‘beam_weapon_section_info::beam_weapon_section_info()’:
./weapon/weapon.h:736: warning: ‘beam_weapon_section_info::length’ will be initialized after
./weapon/weapon.h:735: warning:   ‘float beam_weapon_section_info::width’
./weapon/weapon.h:726: warning:   when initialized here
./weapon/weapon.h:746: warning: ‘beam_weapon_section_info::fps’ will be initialized after
./weapon/weapon.h:740: warning:   ‘float beam_weapon_section_info::flicker’
./weapon/weapon.h:726: warning:   when initialized here
./weapon/weapon.h:743: warning: ‘beam_weapon_section_info::tile_type’ will be initialized after
./weapon/weapon.h:742: warning:   ‘float beam_weapon_section_info::tile_factor’
./weapon/weapon.h:726: warning:   when initialized here
ai/aiturret.cpp: In function ‘int find_turret_enemy(ship_subsys*, int, vec3d*, vec3d*, matrix*, int, float)’:
ai/aiturret.cpp:963: warning: unused variable ‘dot’
ai/aiturret.cpp: In function ‘void ai_fire_from_turret(ship*, ship_subsys*, int)’:
ai/aiturret.cpp:2053: error: expected unqualified-id before ‘||’ token
ai/aiturret.cpp:2054: error: expected primary-expression before ‘||’ token
ai/aiturret.cpp:2054: error: expected primary-expression before ‘,’ token
make[1]: *** [aiturret.o] Error 1
make[1]: Leaving directory `/home/snark/fs2o/src/fs2_open/code'
make: *** [all-recursive] Error 1

Help would be appreciated, since apparently cvs is my only option.

 

Offline taylor

  • Super SCP/Linux Guru
  • Moderator
  • 212
    • http://www.icculus.org/~taylor
Re: Linux CVS Build Issues
CVS HEAD is prone to breaking, especially now that everyone is getting back to adding new code.

Instead of HEAD you need to get the 3.6.9 branch, so do a checkout with "-r fs2_open_3_6_9" to get the stable code tree.

 

Offline Tmpy

  • 22
Re: Linux CVS Build Issues
I see, thanks.  I guess I wouldn't be so frustrated if I knew all the ins and outs of using cvs...

so, cvs -z3 -d:pserver:[email protected]:/home/fs2source/cvsroot checkout -r fs2_open_3_6_9 fs2_open, right?

Still, why isn't there a simple normal download for this?  Hmm?

I guess I'll just host one myself and post a link to it in the forums since nobody else has bothered with it.  Rubbish.

One more note:  FreeSpaceOpenInstaller.jar throws

Code: [Select]
Exception in thread "main" java.lang.NoClassDefFoundError: java.util.Scanner
   at THFileIO.<init>(THFileIO.java:21)
   at FreeSpaceOpenInstaller.main(FreeSpaceOpenInstaller.java:44)

Edit:  Still no luck.  Now I'm getting a bunch of "dereferencing type-punned pointer will break strict-aliasing rules" warnings for several different files.  Then an eventual failure with oggplayer.h and movie.o.

Code: [Select]
In file included from cutscene/movie.cpp:120:
./cutscene/oggplayer.h:23:27: error: theora/theora.h: No such file or directory
./cutscene/oggplayer.h:41: error: ‘theora_info’ does not name a type
./cutscene/oggplayer.h:42: error: ‘theora_comment’ does not name a type
./cutscene/oggplayer.h:43: error: ‘theora_state’ does not name a type
make[1]: *** [movie.o] Error 1
make[1]: Leaving directory `/home/snark/fs2o/src/fs2_open/code'
make: *** [all-recursive] Error 1
« Last Edit: January 14, 2007, 07:34:58 pm by Tmpy »

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
Re: Linux CVS Build Issues
Looks like it's missing "fs2_open\oggvorbis\include\theora" from the include path.

Bobb and I have been working on fixing various errors and warnings, so you may want to try updating again. Unfortunately I can't offer much support for the Linux side of things; I'm using MSVC 2003
-C

 

Offline taylor

  • Super SCP/Linux Guru
  • Moderator
  • 212
    • http://www.icculus.org/~taylor
Re: Linux CVS Build Issues
Still, why isn't there a simple normal download for this?  Hmm?
Because I can't get enough time to finalize the code since you bastards won't leave me the **** alone long enough!!

One more note:  FreeSpaceOpenInstaller.jar throws

Code: [Select]
Exception in thread "main" java.lang.NoClassDefFoundError: java.util.Scanner
   at THFileIO.<init>(THFileIO.java:21)
   at FreeSpaceOpenInstaller.main(FreeSpaceOpenInstaller.java:44)
You'll need to ask Turey, that installer isn't supported by anyone of the SCP people.

Edit:  Still no luck.  Now I'm getting a bunch of "dereferencing type-punned pointer will break strict-aliasing rules" warnings for several different files.  Then an eventual failure with oggplayer.h and movie.o.

Code: [Select]
In file included from cutscene/movie.cpp:120:
./cutscene/oggplayer.h:23:27: error: theora/theora.h: No such file or directory
./cutscene/oggplayer.h:41: error: ‘theora_info’ does not name a type
./cutscene/oggplayer.h:42: error: ‘theora_comment’ does not name a type
./cutscene/oggplayer.h:43: error: ‘theora_state’ does not name a type
make[1]: *** [movie.o] Error 1
make[1]: Leaving directory `/home/snark/fs2o/src/fs2_open/code'
make: *** [all-recursive] Error 1
You have to install the libtheora and libtheora-devel packages.

 

Offline Mars

  • I have no originality
  • 211
  • Attempting unreasonable levels of reasonable
Re: Linux CVS Build Issues
We love you Taylor   :sigh:

Tmpy... no one is getting payed for his, this is people's hobbie... plus, you can't expect to use Linux and have an installer for everything, that's a fact. If you don't learn how to use CVS... your options are quite limited.
« Last Edit: January 14, 2007, 09:43:51 pm by Mars »

 

Offline Tmpy

  • 22
Re: Linux CVS Build Issues
You have to install the libtheora and libtheora-devel packages.

Son of a...  I could have sworn I already did that, but I was indeed missing my distro's libtheora-dev package.  Thanks!

Because I can't get enough time to finalize the code since you bastards won't leave me the **** alone long enough!!

:lol: Alright, I'll do it for you, then.  It'll only take a few minutes...

You'll need to ask Turey, that installer isn't supported by anyone of the SCP people.

I was just trying it out as a last resort, so I won't bother with it.   That is unless of course, someone manages to guilt-trip me into it.

 

Offline Turey

  • Installer dude
  • 211
  • The diminutive form of Turambar.
    • FreeSpace Open Installer Homepage
Re: Linux CVS Build Issues
One more note:  FreeSpaceOpenInstaller.jar throws

Code: [Select]
Exception in thread "main" java.lang.NoClassDefFoundError: java.util.Scanner
   at THFileIO.<init>(THFileIO.java:21)
   at FreeSpaceOpenInstaller.main(FreeSpaceOpenInstaller.java:44)

You need Java 1.5 or better. This message will occur if you don't have Java 1.5 or better.

You can get Java 1.6 here.
Creator of the FreeSpace Open Installer.
"Calm. The ****. Down." -Taristin
why would an SCP error be considered as news? :wtf: *smacks Cobra*It's a feature.