Hard Light Productions Forums
Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Cross-Platform Development => Topic started by: bigdady92 on April 25, 2006, 08:48:03 am
-
I am getting the following error when I compile the code on CentOS 4.2:
sound/ds.cpp: In function `int ds_init(int, int, unsigned int, short unsigned int)':
sound/ds.cpp:1663: error: invalid conversion from `void*' to `ALCcontext*'
sound/ds.cpp:1663: error: initializing argument 1 of `ALCboolean alcMakeContextCurrent(ALCcontext*)'
sound/ds.cpp:1702: error: invalid conversion from `ALubyte*' to `const ALchar*'
sound/ds.cpp:1702: error: initializing argument 1 of `ALboolean alIsExtensionPresent(const ALchar*)'
sound/ds.cpp: In function `void ds_close()':
sound/ds.cpp:2178: error: invalid conversion from `void*' to `ALCcontext*'
sound/ds.cpp:2178: error: initializing argument 1 of `void alcDestroyContext(ALCcontext*)'
make[1]: *** [ds.o] Error 1
make[1]: Leaving directory `/home/me/freesp2/fs2_open-3.6.7/code'
make: *** [all-recursive] Error 1
This leaves me to believe that I didn't install all the AL libraries. I have installed all the ones found here just to be sure:
http://www.openal.org/downloads.html
bash-3.00$ rpm -qa | grep -i openal
openal-devel-0.0.8-1
openal-0.0.8-1
bash-3.00$
Both the source and binary rpm's for ALUT and OpenAL.
Am I missing some other libraries here?
-
3.6.7 was only really compatible (from a compile standpoint) with OpenAL 1.0, but you are using OpenAL 1.1. I'll post a patch for you later today which will bring it up to the code that's in CVS so that it will work with 1.1 and not require alut at all.
-
3.6.7 was only really compatible (from a compile standpoint) with OpenAL 1.0, but you are using OpenAL 1.1. I'll post a patch for you later today which will bring it up to the code that's in CVS so that it will work with 1.1 and not require alut at all.
so I'll have to grab the latest stuff from CVS like the wiki says?
-
Nope. That patch I'll get you will be for 3.6.7 and only fix the OpenAL 1.1 related issues (I've been meaning to do it anyway). You can use CVS if you want, but it won't be necessary just for this.
-
Nope. That patch I'll get you will be for 3.6.7 and only fix the OpenAL 1.1 related issues (I've been meaning to do it anyway). You can use CVS if you want, but it won't be necessary just for this.
I'll assume you'll post it here for me to gnab and do with as I please then or is it going onto the site? If you say you are gonna fix it in CVS, that's even better, or are you just going to edit the 3.6.7 file and that will be that?
Sorry if my questions sound a bit odd, I forgot to get my 20oz of coffee this AM and I'm hurtin' for certain on that front! :cool:
-
It's already fixed in CVS, and has been for a while, so if you want to use CVS then you don't need to wait for the patch. The patch (posted here and on the site) will just make the 3.6.7 release compatible with OpenAL 1.1.
-
get it here right:
http://icculus.org/~taylor/fso/nightly/
I'm new to this project and I combed the site looking for patches and didn't see any.
grabbed that build and now am getting this error:
ai/aicode.cpp:1076:23: io/joy_ff.h: No such file or directory
ai/aicode.cpp: In function `void ai_dock()':
ai/aicode.cpp:11338: error: `joy_ff_docked' was not declared in this scope
ai/aicode.cpp:11338: warning: unused variable 'joy_ff_docked'
make[1]: *** [aicode.o] Error 1
make[1]: Leaving directory `/home/freesp2/fs2_open-20060426/code'
make: *** [all-recursive] Error 1
No joystick? was i supposed to turn off that flag?
-
The joy_ff.h issue is becase I made the tarball under OS X and the automake there doesn't catch the conditional to include all files referenced in the Makefile, only the ones that would be used by that particular OS. That's fixed in CVS though.
You can just copy the joy_ff.h from the 3.6.7 tarball and use it since the file hasn't changed at all.
-
The joy_ff.h issue is becase I made the tarball under OS X and the automake there doesn't catch the conditional to include all files referenced in the Makefile, only the ones that would be used by that particular OS. That's fixed in CVS though.
You can just copy the joy_ff.h from the 3.6.7 tarball and use it since the file hasn't changed at all.
ok, i'm using the tarball I got from the site. Do I remove something or edit something? It bombs out before I get the chance to make the binary.
-
What error messages are you getting (or is it just the joy_ff.h issue still)? I can't tell from what you wrote as to whether you were able to deal with the joy_ff.h issue or if you are getting something new.
-
What error messages are you getting (or is it just the joy_ff.h issue still)? I can't tell from what you wrote as to whether you were able to deal with the joy_ff.h issue or if you are getting something new.
still stuck on the library issue. Where do I move the file from and to? Compiling code has never been my forte, hence why I fix the servers not build code for them :D