Author Topic: GNU/Linux compiling problem :(  (Read 3660 times)

0 Members and 1 Guest are viewing this topic.

Offline shiv

  • Don't forget Poland!
  • 211
  • FRED me!
    • http://freespace.pl
GNU/Linux compiling problem :(
Hi guys. I'm using Fedora Core 6 and I can't compile any build - I've tried 3.6.7 official, 3.6.9 RC3, and 3.6.9 RC 7. Every time when after make I get something like this:

Code: [Select]
(...)In file included from cutscene/mveplayer.cpp:33:
./sound/ds.h:174:20: error: AL/al.h: Nie ma takiego pliku ani katalogu
./sound/ds.h:175:21: error: AL/alc.h: Nie ma takiego pliku ani katalogu
./sound/ds.h:176:22: error: AL/alut.h: Nie ma takiego pliku ani katalogu
./math/floating.h: In function ‘int fl_round_2048(float)’:
./math/floating.h:128: warning: dereferencing type-punned pointer will break strict-aliasing rules
./sound/ds.h: At global scope:
./sound/ds.h:225: error: ‘ALuint’ does not name a type
cutscene/mveplayer.cpp:65: error: ‘ALenum’ does not name a type
cutscene/mveplayer.cpp:70: error: ‘ALuint’ does not name a type
cutscene/mveplayer.cpp:71: error: ‘ALuint’ does not name a type
cutscene/mveplayer.cpp:72: error: ‘ALuint’ does not name a type
cutscene/mveplayer.cpp: In function ‘void mve_audio_createbuf(ubyte, ubyte*)’:
cutscene/mveplayer.cpp:248: error: ‘struct MVE_AUDIO_T’ has no member named ‘format’
cutscene/mveplayer.cpp:248: error: ‘AL_INVALID’ was not declared in this scope
cutscene/mveplayer.cpp:267: error: ‘struct MVE_AUDIO_T’ has no member named ‘format’
cutscene/mveplayer.cpp:267: error: ‘AL_FORMAT_STEREO16’ was not declared in this scope
cutscene/mveplayer.cpp:269: error: ‘struct MVE_AUDIO_T’ has no member named ‘format’
cutscene/mveplayer.cpp:269: error: ‘AL_FORMAT_MONO16’ was not declared in this scope
cutscene/mveplayer.cpp:273: error: ‘struct MVE_AUDIO_T’ has no member named ‘format’
cutscene/mveplayer.cpp:273: error: ‘AL_FORMAT_STEREO8’ was not declared in this scope
cutscene/mveplayer.cpp:275: error: ‘struct MVE_AUDIO_T’ has no member named ‘format’
cutscene/mveplayer.cpp:275: error: ‘AL_FORMAT_MONO8’ was not declared in this scope
cutscene/mveplayer.cpp:280: error: ‘struct MVE_AUDIO_T’ has no member named ‘format’
cutscene/mveplayer.cpp:286: error: ‘struct MVE_AUDIO_T’ has no member named ‘source_id’
cutscene/mveplayer.cpp:286: error: ‘alGenSources’ was not declared in this scope
cutscene/mveplayer.cpp:290: error: ‘struct MVE_AUDIO_T’ has no member named ‘source_id’
cutscene/mveplayer.cpp:290: error: ‘AL_GAIN’ was not declared in this scope
cutscene/mveplayer.cpp:290: error: ‘alSourcef’ was not declared in this scope
cutscene/mveplayer.cpp:291: error: ‘struct MVE_AUDIO_T’ has no member named ‘source_id’
cutscene/mveplayer.cpp:291: error: ‘AL_POSITION’ was not declared in this scope
cutscene/mveplayer.cpp:291: error: ‘alSource3f’ was not declared in this scope
cutscene/mveplayer.cpp:292: error: ‘struct MVE_AUDIO_T’ has no member named ‘source_id’
cutscene/mveplayer.cpp:292: error: ‘AL_VELOCITY’ was not declared in this scope
cutscene/mveplayer.cpp:292: error: ‘alSource3f’ was not declared in this scope
cutscene/mveplayer.cpp:293: error: ‘struct MVE_AUDIO_T’ has no member named ‘source_id’
cutscene/mveplayer.cpp:293: error: ‘AL_DIRECTION’ was not declared in this scope
cutscene/mveplayer.cpp:293: error: ‘alSource3f’ was not declared in this scope
cutscene/mveplayer.cpp:294: error: ‘struct MVE_AUDIO_T’ has no member named ‘source_id’
cutscene/mveplayer.cpp:294: error: ‘AL_ROLLOFF_FACTOR’ was not declared in this scope
cutscene/mveplayer.cpp:294: error: ‘alSourcef’ was not declared in this scope
cutscene/mveplayer.cpp:295: error: ‘struct MVE_AUDIO_T’ has no member named ‘source_id’
cutscene/mveplayer.cpp:295: error: ‘AL_SOURCE_RELATIVE’ was not declared in this scope
cutscene/mveplayer.cpp:295: error: ‘AL_TRUE’ was not declared in this scope
cutscene/mveplayer.cpp:295: error: ‘alSourcei’ was not declared in this scope
cutscene/mveplayer.cpp:297: error: ‘struct MVE_AUDIO_T’ has no member named ‘audio_buffer’
cutscene/mveplayer.cpp:297: error: ‘ALuint’ was not declared in this scope
cutscene/mveplayer.cpp: In function ‘void mve_audio_play()’:
cutscene/mveplayer.cpp:309: error: ‘ALint’ was not declared in this scope
cutscene/mveplayer.cpp:309: error: expected `;' before ‘status’
cutscene/mveplayer.cpp:311: error: ‘struct MVE_AUDIO_T’ has no member named ‘source_id’
cutscene/mveplayer.cpp:311: error: ‘AL_SOURCE_STATE’ was not declared in this scope
cutscene/mveplayer.cpp:311: error: ‘status’ was not declared in this scope
cutscene/mveplayer.cpp:311: error: ‘alGetSourcei’ was not declared in this scope
cutscene/mveplayer.cpp:313: error: ‘struct MVE_AUDIO_T’ has no member named ‘source_id’
cutscene/mveplayer.cpp:313: error: ‘AL_BUFFERS_QUEUED’ was not declared in this scope
cutscene/mveplayer.cpp:313: error: ‘bqueued’ was not declared in this scope
cutscene/mveplayer.cpp:313: error: ‘alGetSourcei’ was not declared in this scope
cutscene/mveplayer.cpp:317: error: ‘status’ was not declared in this scope
cutscene/mveplayer.cpp:317: error: ‘AL_PLAYING’ was not declared in this scope
cutscene/mveplayer.cpp:317: error: ‘bqueued’ was not declared in this scope
cutscene/mveplayer.cpp:318: error: ‘struct MVE_AUDIO_T’ has no member named ‘source_id’
cutscene/mveplayer.cpp:318: error: ‘alSourcePlay’ was not declared in this scope
cutscene/mveplayer.cpp: In function ‘void mve_audio_stop()’:
cutscene/mveplayer.cpp:329: error: ‘ALint’ was not declared in this scope
cutscene/mveplayer.cpp:329: error: expected `;' before ‘p’
cutscene/mveplayer.cpp:333: error: ‘struct MVE_AUDIO_T’ has no member named ‘source_id’
cutscene/mveplayer.cpp:333: error: ‘alSourceStop’ was not declared in this scope
cutscene/mveplayer.cpp:334: error: ‘struct MVE_AUDIO_T’ has no member named ‘source_id’
cutscene/mveplayer.cpp:334: error: ‘AL_BUFFERS_PROCESSED’ was not declared in this scope
cutscene/mveplayer.cpp:334: error: ‘p’ was not declared in this scope
cutscene/mveplayer.cpp:334: error: ‘alGetSourcei’ was not declared in this scope
cutscene/mveplayer.cpp:335: error: ‘struct MVE_AUDIO_T’ has no member named ‘source_id’
cutscene/mveplayer.cpp:335: error: ‘p’ was not declared in this scope
cutscene/mveplayer.cpp:335: error: ‘struct MVE_AUDIO_T’ has no member named ‘audio_buffer’
cutscene/mveplayer.cpp:335: error: ‘alSourceUnqueueBuffers’ was not declared in this scope
cutscene/mveplayer.cpp:336: error: ‘struct MVE_AUDIO_T’ has no member named ‘audio_buffer’
cutscene/mveplayer.cpp:336: error: ‘alDeleteBuffers’ was not declared in this scope
cutscene/mveplayer.cpp:337: error: ‘struct MVE_AUDIO_T’ has no member named ‘source_id’
cutscene/mveplayer.cpp:337: error: ‘alDeleteSources’ was not declared in this scope
cutscene/mveplayer.cpp: In function ‘int mve_audio_data(ubyte, ubyte*)’:
cutscene/mveplayer.cpp:356: error: ‘ALint’ was not declared in this scope
cutscene/mveplayer.cpp:356: error: expected `;' before ‘bprocessed’
cutscene/mveplayer.cpp:357: error: ‘ALuint’ was not declared in this scope
cutscene/mveplayer.cpp:357: error: expected `;' before ‘bid’
cutscene/mveplayer.cpp:359: error: ‘struct MVE_AUDIO_T’ has no member named ‘source_id’
cutscene/mveplayer.cpp:359: error: ‘AL_BUFFERS_PROCESSED’ was not declared in this scope
cutscene/mveplayer.cpp:359: error: ‘bprocessed’ was not declared in this scope
cutscene/mveplayer.cpp:359: error: ‘alGetSourcei’ was not declared in this scope
cutscene/mveplayer.cpp:361: error: ‘bprocessed’ was not declared in this scope
cutscene/mveplayer.cpp:362: error: ‘struct MVE_AUDIO_T’ has no member named ‘source_id’
cutscene/mveplayer.cpp:362: error: ‘bid’ was not declared in this scope
cutscene/mveplayer.cpp:362: error: ‘alSourceUnqueueBuffers’ was not declared in this scope
cutscene/mveplayer.cpp:368: error: ‘struct MVE_AUDIO_T’ has no member named ‘source_id’
cutscene/mveplayer.cpp:368: error: ‘AL_BUFFERS_QUEUED’ was not declared in this scope
cutscene/mveplayer.cpp:368: error: ‘bqueued’ was not declared in this scope
cutscene/mveplayer.cpp:368: error: ‘alGetSourcei’ was not declared in this scope
cutscene/mveplayer.cpp:370: error: ‘bqueued’ was not declared in this scope
cutscene/mveplayer.cpp:373: error: ‘struct MVE_AUDIO_T’ has no member named ‘source_id’
cutscene/mveplayer.cpp:373: error: ‘AL_SOURCE_STATE’ was not declared in this scope
cutscene/mveplayer.cpp:373: error: ‘status’ was not declared in this scope
cutscene/mveplayer.cpp:373: error: ‘alGetSourcei’ was not declared in this scope
cutscene/mveplayer.cpp:375: error: ‘status’ was not declared in this scope
cutscene/mveplayer.cpp:375: error: ‘AL_PLAYING’ was not declared in this scope
cutscene/mveplayer.cpp:375: error: ‘bqueued’ was not declared in this scope
cutscene/mveplayer.cpp:376: error: ‘struct MVE_AUDIO_T’ has no member named ‘source_id’
cutscene/mveplayer.cpp:376: error: ‘alSourcePlay’ was not declared in this scope
cutscene/mveplayer.cpp:379: error: ‘bqueued’ was not declared in this scope
cutscene/mveplayer.cpp:403: error: ‘struct MVE_AUDIO_T’ has no member named ‘audio_buffer’
cutscene/mveplayer.cpp:404: error: ‘struct MVE_AUDIO_T’ has no member named ‘audio_buffer’
cutscene/mveplayer.cpp:404: error: ‘alGenBuffers’ was not declared in this scope
cutscene/mveplayer.cpp:407: error: ‘struct MVE_AUDIO_T’ has no member named ‘audio_buffer’
cutscene/mveplayer.cpp:407: error: ‘struct MVE_AUDIO_T’ has no member named ‘format’
cutscene/mveplayer.cpp:407: error: ‘alBufferData’ was not declared in this scope
cutscene/mveplayer.cpp:409: error: ‘struct MVE_AUDIO_T’ has no member named ‘source_id’
cutscene/mveplayer.cpp:409: error: ‘struct MVE_AUDIO_T’ has no member named ‘audio_buffer’
cutscene/mveplayer.cpp:409: error: ‘alSourceQueueBuffers’ was not declared in this scope
http://www.sectorgame.com/vega
The Apocalypse Vega - Join the battle! A campaign for FreeSpace 2 Open

http://www.game-warden.com/earthdefence
Earth Defense project - Coming soon...

 

Offline taylor

  • Super SCP/Linux Guru
  • Moderator
  • 212
    • http://www.icculus.org/~taylor
Re: GNU/Linux compiling problem :(
You need to install the openal-devel package.

 

Offline shiv

  • Don't forget Poland!
  • 211
  • FRED me!
    • http://freespace.pl
Re: GNU/Linux compiling problem :(
I've installed openal devel, but now I'm getting this(after make)

Code: [Select]
(...)
then mv -f ".deps/levelpaging.Tpo" ".deps/levelpaging.Po"; else rm -f ".deps/levelpaging.Tpo"; exit 1; fi
g++ -g -Os -Wall -funroll-loops -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -fsigned-char -Wno-unknown-pragmas  -Wno-deprecated -Wno-char-subscripts -I../lua  -g  -L/usr/lib -lSDL -lpthread -lGL -lGLU -lopenal -logg -lvorbis -lvorbisfile  -o fs2_open_r  freespace.o levelpaging.o libcode.a ../libjpeg/libjpeg.a ../lua/liblua.a
make[1]: Opuszczenie katalogu `/home/michal/fs2_open-3.6.9-rc3/fs2_open-3.6.9-rc3/code'
make[1]: Wejście do katalogu `/home/michal/fs2_open-3.6.9-rc3/fs2_open-3.6.9-rc3'
make[1]: Nie ma nic do zrobienia w `all-am'.
make[1]: Opuszczenie katalogu `/home/michal/fs2_open-3.6.9-rc3/fs2_open-3.6.9-rc3'
[michal@localhost fs2_open-3.6.9-rc3]$ file:///home/michal/Desktop/fs2_open-3.6.9-rc3 
http://www.sectorgame.com/vega
The Apocalypse Vega - Join the battle! A campaign for FreeSpace 2 Open

http://www.game-warden.com/earthdefence
Earth Defense project - Coming soon...

 

Offline Herra Tohtori

  • The Academic
  • 211
  • Bad command or file name
Re: GNU/Linux compiling problem :(
I suggest you start from the scratch. Download the source again to another directory, do ./configure and then try compiling it. I also get that kind of stuff when compiling didn't work, at least something that looks similar but with my own language, so I'm not sure if the problem is the exact same one.

Usually when I delete the directory and it's contents, make a new CVS checkout and then try compiling it again it works. :rolleyes: This is one of the things where I have no idea (except an educated guess) what is wrong and why it doesn't work, but that seems to fix the problem all right...

My guess is that a failed compiling process leaves behind some crap that disturbs the new compilation somehow.
There are three things that last forever: Abort, Retry, Fail - and the greatest of these is Fail.

 
Re: GNU/Linux compiling problem :(
Uhm... I don't know what language that is, but it actually looks like compilation succeeded...
Look if there's a "fs2_open_r" executable in the "code" directory...

 

Offline shiv

  • Don't forget Poland!
  • 211
  • FRED me!
    • http://freespace.pl
Re: GNU/Linux compiling problem :(
I've tried doing it from scratch.

I can translate it:

Code: [Select]
make[1]: Opuszczenie katalogu `/home/michal/fs2_open-3.6.9-rc3/fs2_open-3.6.9-rc3/code'
make[1]: Entering folder `/home/michal/fs2_open-3.6.9-rc3/fs2_open-3.6.9-rc3'
make[1]: it is nothing to do in `all-am'.
make[1]: leaving folder `/home/michal/fs2_open-3.6.9-rc3/fs2_open-3.6.9-rc3'
[michal@localhost fs2_open-3.6.9-rc3]$ file:///home/michal/Desktop/fs2_open-3.6.9-rc3 

And language is polish ;)
http://www.sectorgame.com/vega
The Apocalypse Vega - Join the battle! A campaign for FreeSpace 2 Open

http://www.game-warden.com/earthdefence
Earth Defense project - Coming soon...

 

Offline Herra Tohtori

  • The Academic
  • 211
  • Bad command or file name
Re: GNU/Linux compiling problem :(
Yeah, that's what I figured it to mean because I got similar stuff with those "nothing to do" announcements and stuff... :nervous:
There are three things that last forever: Abort, Retry, Fail - and the greatest of these is Fail.

 

Offline shiv

  • Don't forget Poland!
  • 211
  • FRED me!
    • http://freespace.pl
Re: GNU/Linux compiling problem :(
So what should I do?
http://www.sectorgame.com/vega
The Apocalypse Vega - Join the battle! A campaign for FreeSpace 2 Open

http://www.game-warden.com/earthdefence
Earth Defense project - Coming soon...

 

Offline taylor

  • Super SCP/Linux Guru
  • Moderator
  • 212
    • http://www.icculus.org/~taylor
Re: GNU/Linux compiling problem :(
Those are just the messages you get when it's done compiling successfully.  Check in code/ for either fs2_open_r or fs2_open_d (if you made a debug build) and that's the binary.

 

Offline shiv

  • Don't forget Poland!
  • 211
  • FRED me!
    • http://freespace.pl
Re: GNU/Linux compiling problem :(
Okay... thanks. Should I do make install?

How to run my fs2_open now?
http://www.sectorgame.com/vega
The Apocalypse Vega - Join the battle! A campaign for FreeSpace 2 Open

http://www.game-warden.com/earthdefence
Earth Defense project - Coming soon...

 

Offline taylor

  • Super SCP/Linux Guru
  • Moderator
  • 212
    • http://www.icculus.org/~taylor
Re: GNU/Linux compiling problem :(
Just copy the binary into the directory where you have the VPs installed, then ./fs2_open_r to run it.  Check the wiki for a script to make running it easier if you need.

 

Offline shiv

  • Don't forget Poland!
  • 211
  • FRED me!
    • http://freespace.pl
Re: GNU/Linux compiling problem :(
Thank you! Everything now works fine :D

Can you tell me how to add flags and enable higher resolution?
http://www.sectorgame.com/vega
The Apocalypse Vega - Join the battle! A campaign for FreeSpace 2 Open

http://www.game-warden.com/earthdefence
Earth Defense project - Coming soon...

 

Offline Herra Tohtori

  • The Academic
  • 211
  • Bad command or file name
Re: GNU/Linux compiling problem :(
It's all in the wiki.

You need to edit a configuration file, I think it was in ~/.fs2_open directory. Edit the lines so that you'll use the desired resolution and bit depth (16 or 32).

Then you will likely want to edit the /../Freespace2/data/cmdline_fso.cfg to include the desired command line options that you want to apply every time.

I also have startup scripts for different mod combinations. But the wiki page should really tell you anything you need to know.  :)
There are three things that last forever: Abort, Retry, Fail - and the greatest of these is Fail.

 

Offline shiv

  • Don't forget Poland!
  • 211
  • FRED me!
    • http://freespace.pl
Re: GNU/Linux compiling problem :(
I don't see any config file in my fs2_open dir. What's going on?
http://www.sectorgame.com/vega
The Apocalypse Vega - Join the battle! A campaign for FreeSpace 2 Open

http://www.game-warden.com/earthdefence
Earth Defense project - Coming soon...

 

Offline castor

  • 29
    • http://www.ffighters.co.uk./home/
Re: GNU/Linux compiling problem :(
ls ~/.fs2_open

Doesn't show fs2_open.ini?

 

Offline shiv

  • Don't forget Poland!
  • 211
  • FRED me!
    • http://freespace.pl
Re: GNU/Linux compiling problem :(
Quote
Doesn't show fs2_open.ini?

Nope :(
http://www.sectorgame.com/vega
The Apocalypse Vega - Join the battle! A campaign for FreeSpace 2 Open

http://www.game-warden.com/earthdefence
Earth Defense project - Coming soon...

 

Offline castor

  • 29
    • http://www.ffighters.co.uk./home/
Re: GNU/Linux compiling problem :(
Strange :eek2: What if you try search for it with:
find / -name .fs2_open

 

Offline Herra Tohtori

  • The Academic
  • 211
  • Bad command or file name
Re: GNU/Linux compiling problem :(
Meh... try if this works:

Code: [Select]
$ cd ~
$ mkdir .fs2_open
$ cd .fs2_open
$ gedit fs2_open.ini

Or use any text editor of your choice - pico, kate, makes no difference as long as you create a new file of that name.

Copy-paste this text into the file:

Code: [Select]
[Default]
VideocardFs2open=OGL -(1280x1024)x32 bit
LastPlayer=PlayerName
GammaD3D=1.00

You can change the resolution by simply inserting for example 1024x768 instead of 1280x1024. Save the file, go to your Freespace2 directory, fire up the game and hope for the best. Also I would advice to select a PlayerName of a pilot that exist, I don't know what would happen if you type nonexistent player name into that field. Probably nothing, but better be sure. :nervous:

Although, I don't have any idea why it wouldn't create that folder and file itself if you have run the executable... Perhaps it's a bug or something else, I dunno.
There are three things that last forever: Abort, Retry, Fail - and the greatest of these is Fail.