Rune Central http://runequake.com/forums/ |
|
Linux + fmod http://runequake.com/forums/viewtopic.php?f=9&t=727 |
Page 1 of 1 |
Author: | 13Homer [ Tue May 24, 2005 3:26 am ] |
Post subject: | Linux + fmod |
JoeQuake is build and linked against libfmod-3.73.so (fmod library version 3.73). You cannot run JoeQuake without it. You have 2 options 1. Find on the web unofficial RPM / DEB package (eg. http://rpmfind.net) and install it 2. Download oryginal tar.gz archive from fmod.org (http://fmod.org/ifmoddownload.html), unpack . . libfmod-xxx.so and put it into: . . . . a. system libs directory (usual /usr/lib/) . . . . or . . . . b. Quake directory . . . . b2. let Linux know where it can find it. On FC3 it is environment variable LD_LIBRARY_PATH executing: Code: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<path to Quake dir> . . . . It should be executed (almost) every JoeQuake run, so I think the best solution is adding that line to /etc/profile file. If it happend that you cannot find fmod ver. 3.73 required by JoeQuake, get newest and create a symbolic link in directory you saved libfmod-xxx.so (/usr/lib or Quake dir): Code: ln -s libfmod-x.xx.so libfmod-3.73.so as an earlier vesion fake (a "wrapper"). I think it should work (at least it works for 3.74). My own solution: 1. I put libfmod-3.73.so into Quake directory 2. Created quake script quake in /usr/local/bin: Code: /mnt/large/games/quake/joequake.glx.sh $* . . It is just calling main JoeQuake script (joequake.glx.sh) in Quake directory (/mnt/large/games/quake) passing by all arguments 3. Second (main) script in Quake directory (joequake.glx.sh): Code: SCRIPT_DIR=$(echo $0 | sed s/\\/[^/]\\+$//)
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$SCRIPT_DIR cd $SCRIPT_DIR ./joequake.glx -zone 512 -mem 32 -nocdaudio -width 800 -height 600 $* . . This script is changing (setting proper value) LD_LIBRARY_PATH variable only for Quake session (it does not affect other programs) and setting my default parameters for JoeQuake. |
Author: | mwh [ Tue May 24, 2005 7:08 am ] |
Post subject: | |
I still think it's at least as easy to build joequake from source -- that way you can be sure it's not linking against anything that's not on your system "make -f Makefile.linux" should be all it takes (it's something else for software mode, which I need because I haven't gotten hardware acceleration working, but that's not very hard either). |
Author: | 13Homer [ Tue May 24, 2005 8:12 am ] |
Post subject: | |
mwh wrote: I still think it's at least as easy to build joequake from source -- that way you can be sure it's not linking against anything that's not on your system "make -f Makefile.linux" should be all it takes Yes, I agree, but what if it is linking against such thing? You have too know what and where to place it. BTW. I'm not sure, but I think it is possible to write Makefile which will compile program which will not run (-L.). I've just checked Makefile from latest sources. Am I wrong or Linux version no longer uses fmod? Quote: (it's something else for software mode, which I need because I haven't gotten hardware acceleration working, but that's not very hard either).
Kernel 2.4? "Unusual" graphic card? I was fighting with FC1 (kernel 2.4) and I found solution on Gentoo forum... |
Author: | mwh [ Tue May 24, 2005 8:20 am ] |
Post subject: | |
13Homer wrote: I've just checked Makefile from latest sources. Am I wrong or Linux version no longer uses fmod? I have no idea Quote: Quote: (it's something else for software mode, which I need because I haven't gotten hardware acceleration working, but that's not very hard either). Kernel 2.4? "Unusual" graphic card? Yes to both of those (it's an on board i815 chipset, I think, it's not very good even if I do find the drivers. Quote: I was fighting with FC1 (kernel 2.4) and I found solution on Gentoo forum...
Also, complete lack of effort on my part. I just don't care that much. |
Author: | Jozsef [ Wed May 25, 2005 3:51 pm ] |
Post subject: | |
Quote: I've just checked Makefile from latest sources. Am I wrong or Linux version no longer uses fmod?
It does, but it doesn't link into the binary any more. Instead I use dlopen() to get the proper functions for handling mp3 decoding. The only problem is that the name of the fmod package is hard coded in the code, and since the name is changing from time to time, you need to rename never versions to 3.73 or get stuck with the older package... Any ideas of solving this? |
Author: | 13Homer [ Fri May 27, 2005 6:37 am ] |
Post subject: | |
Lookup. Something like shell completition or which command in multiple directories. He he. Funny, in ld.so polish manual is one more sentence in NOTES section (in polish called BŁĘDY [ERRORS] (???)): "In current state ld.so has no tools to delete nor search for compatible or newer libraries." ("W stanie obecnym, ld.so nie ma narzędzi do usuwania i szukania kompatybilnych, lub nowszych wersji bibliotek."). |
Page 1 of 1 | All times are UTC - 5 hours [ DST ] |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |