Hard Light Productions Forums
Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Cross-Platform Development => Topic started by: shiv on March 19, 2007, 04:08:47 pm
-
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:
(...)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
-
You need to install the openal-devel package.
-
I've installed openal devel, but now I'm getting this(after make)
(...)
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
-
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.
-
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...
-
I've tried doing it from scratch.
I can translate it:
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 ;)
-
Yeah, that's what I figured it to mean because I got similar stuff with those "nothing to do" announcements and stuff... :nervous:
-
So what should I do?
-
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.
-
Okay... thanks. Should I do make install?
How to run my fs2_open now?
-
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.
-
Thank you! Everything now works fine :D
Can you tell me how to add flags and enable higher resolution?
-
It's all in the wiki (http://www.hard-light.net/wiki/index.php/Fs2_open_on_Linux#Post-Compile_Configuration).
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. :)
-
I don't see any config file in my fs2_open dir. What's going on?
-
ls ~/.fs2_open
Doesn't show fs2_open.ini?
-
Doesn't show fs2_open.ini?
Nope :(
-
Strange :eek2: What if you try search for it with:
find / -name .fs2_open
-
Meh... try if this works:
$ 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:
[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.