Iris2.de

Iris2-Forum
It is currently Sat Apr 27, 2024 6:14 pm

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Fmod.h does not exist.
PostPosted: Sat Jul 19, 2008 10:41 pm 
Offline

Joined: Fri Jul 18, 2008 11:40 pm
Posts: 2
I try compile iris2, with FMOD, then i modified the premake.lua changing in line 30 USE_OPENAL > USE_FMDO but i received a error message.
Code:
[daniel@xucuru:~/Download/codesource/iris_2.0.2010]$./premakelinux.sh
Generating GNU makefiles:
...lugrelua
...cadune_treelib
...md5lib
...paged_geometrylib
...caelumlib
...lugrelib
...iris
==== Building lugrelua ====
make[1]: `liblugrelua.a' está atualizado.
==== Building cadune_treelib ====
make[1]: `libcadune_treelib.a' está atualizado.
==== Building md5lib ====
make[1]: `libmd5lib.a' está atualizado.
==== Building paged_geometrylib ====
make[1]: `libpaged_geometrylib.a' está atualizado.
==== Building caelumlib ====
make[1]: `libcaelumlib.a' está atualizado.
==== Building lugrelib ====
lugre_sound_fmod.cpp
lugre/src/lugre_sound_fmod.cpp:6:18: warning: fmod.h: Arquivo ou diretório não encontrado
lugre/src/lugre_sound_fmod.cpp:7:25: warning: fmod_errors.h: Arquivo ou diretório não encontrado
lugre/src/lugre_sound_fmod.cpp:13: error: ‘FMOD_RESULT’ does not name a type
lugre/src/lugre_sound_fmod.cpp:15: error: variable or field ‘ERRCHECK’ declared void
lugre/src/lugre_sound_fmod.cpp:15: error: ‘FMOD_RESULT’ was not declared in this scope
lugre/src/lugre_sound_fmod.cpp:444: error: expected `}' at end of input
make[1]: ** [obj/Debug/lugre_sound_fmod.o] Erro 1
make: ** [lugrelib] Erro 2


But i install the fmod
Code:
[daniel@xucuru:~/Download/codesource/iris_2.0.2010]$ls /opt/fmod/ -la
total 36
drwxr-xr-x  7 root   root 4096 2008-07-18 21:16 .
drwxr-xr-x  5 root   root 4096 2008-07-18 20:36 ..
drwxrwxr-x  5 daniel root 4096 2008-07-18 21:16 api
drwxrwxr-x  2 daniel root 4096 2008-07-18 21:16 documentation
drwxrwxr-x 30 daniel root 4096 2008-07-18 21:16 examples
drwxrwxr-x  4 daniel root 4096 2008-07-18 21:16 fmoddesignerapi
-rwxrwxr-x  1 daniel root 2398 2008-07-18 21:16 Makefile
-rwxrwxr-x  1 daniel root 2398 2008-07-18 21:16 Makefile.fmod
drwxrwxr-x  3 daniel root 4096 2008-07-18 21:16 tools
[daniel@xucuru:~/Download/codesource/iris_2.0.2010]$


What is this?

_________________
One Smurfs


Top
 Profile  
 
 Post subject: Then
PostPosted: Mon Jul 21, 2008 2:12 pm 
Offline

Joined: Fri Jul 18, 2008 11:40 pm
Posts: 2
I have copied files api/inc/* to /usr/include/
and api/lib/ to /usr/lib
/sbin/ldconfig

and know appears another errors.

Code:
[daniel@xucuru:~/Download/codesource/iris_2.0.2010]$./premakelinux.sh
Generating GNU makefiles:
...lugrelua
...cadune_treelib
...md5lib
...paged_geometrylib
...caelumlib
...lugrelib
...iris
==== Building lugrelua ====
loslib.c
Linking lugrelua
==== Building cadune_treelib ====
Linking cadune_treelib
==== Building md5lib ====
Linking md5lib
==== Building paged_geometrylib ====
Linking paged_geometrylib
==== Building caelumlib ====
Linking caelumlib
==== Building lugrelib ====
Linking lugrelib
==== Building iris ====
Linking iris
./liblugrelua.a(loslib.o): In function `os_tmpname':
/home/daniel/Download/codesource/iris_2.0.2010/lugre/lib/lua-5.1.3//src/loslib.c:60: warning: the use of `tmpnam' is dangerous, better use `mkstemp'
./liblugrelib.a(lugre_ogrewrapper.o): In function `windowClosed':
/home/daniel/Download/codesource/iris_2.0.2010/lugre/src/lugre_ogrewrapper.cpp:480: undefined reference to `OIS::InputManager::destroyInputObject(OIS::Object*)'
/home/daniel/Download/codesource/iris_2.0.2010/lugre/src/lugre_ogrewrapper.cpp:481: undefined reference to `OIS::InputManager::destroyInputObject(OIS::Object*)'
/home/daniel/Download/codesource/iris_2.0.2010/lugre/src/lugre_ogrewrapper.cpp:482: undefined reference to `OIS::InputManager::destroyInputObject(OIS::Object*)'
/home/daniel/Download/codesource/iris_2.0.2010/lugre/src/lugre_ogrewrapper.cpp:487: undefined reference to `OIS::InputManager::destroyInputSystem(OIS::InputManager*)'
./liblugrelib.a(lugre_ogrewrapper.o): In function `Lugre::cOgreWrapper::Init(char const*, char const*, char const*)':
/home/daniel/Download/codesource/iris_2.0.2010/lugre/src/lugre_ogrewrapper.cpp:416: undefined reference to `OIS::InputManager::createInputSystem(std::multimap<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >&)'
/home/daniel/Download/codesource/iris_2.0.2010/lugre/src/lugre_ogrewrapper.cpp:419: undefined reference to `OIS::InputManager::createInputObject(OIS::Type, bool, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
/home/daniel/Download/codesource/iris_2.0.2010/lugre/src/lugre_ogrewrapper.cpp:429: undefined reference to `OIS::InputManager::createInputObject(OIS::Type, bool, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)'
./liblugrelib.a(lugre_sound_fmod.o): In function `Lugre::cSoundSystemFmod::Step()':
/home/daniel/Download/codesource/iris_2.0.2010/lugre/src/lugre_sound_fmod.cpp:433: undefined reference to `FMOD_System_Update'
./liblugrelib.a(lugre_sound_fmod.o): In function `Lugre::cSoundSystemFmod::UpdatePositionAndVelocity()':
/home/daniel/Download/codesource/iris_2.0.2010/lugre/src/lugre_sound_fmod.cpp:353: undefined reference to `FMOD_System_Set3DListenerAttributes'
./liblugrelib.a(lugre_sound_fmod.o): In function `~cSoundSystemFmod':
/home/daniel/Download/codesource/iris_2.0.2010/lugre/src/lugre_sound_fmod.cpp:343: undefined reference to `FMOD_System_Close'
/home/daniel/Download/codesource/iris_2.0.2010/lugre/src/lugre_sound_fmod.cpp:345: undefined reference to `FMOD_System_Release'
/home/daniel/Download/codesource/iris_2.0.2010/lugre/src/lugre_sound_fmod.cpp:343: undefined reference to `FMOD_System_Close'
/home/daniel/Download/codesource/iris_2.0.2010/lugre/src/lugre_sound_fmod.cpp:345: undefined reference to `FMOD_System_Release'
/home/daniel/Download/codesource/iris_2.0.2010/lugre/src/lugre_sound_fmod.cpp:343: undefined reference to `FMOD_System_Close'
/home/daniel/Download/codesource/iris_2.0.2010/lugre/src/lugre_sound_fmod.cpp:345: undefined reference to `FMOD_System_Release'
./liblugrelib.a(lugre_sound_fmod.o): In function `cSoundSystemFmod':
/home/daniel/Download/codesource/iris_2.0.2010/lugre/src/lugre_sound_fmod.cpp:321: undefined reference to `FMOD_System_Create'
/home/daniel/Download/codesource/iris_2.0.2010/lugre/src/lugre_sound_fmod.cpp:326: undefined reference to `FMOD_System_GetVersion'
/home/daniel/Download/codesource/iris_2.0.2010/lugre/src/lugre_sound_fmod.cpp:333: undefined reference to `FMOD_System_Init'
/home/daniel/Download/codesource/iris_2.0.2010/lugre/src/lugre_sound_fmod.cpp:321: undefined reference to `FMOD_System_Create'
/home/daniel/Download/codesource/iris_2.0.2010/lugre/src/lugre_sound_fmod.cpp:326: undefined reference to `FMOD_System_GetVersion'
/home/daniel/Download/codesource/iris_2.0.2010/lugre/src/lugre_sound_fmod.cpp:333: undefined reference to `FMOD_System_Init'
./liblugrelib.a(lugre_sound_fmod.o): In function `Lugre::cSoundSourceFmod::GetVolume()':
/home/daniel/Download/codesource/iris_2.0.2010/lugre/src/lugre_sound_fmod.cpp:226: undefined reference to `FMOD_Channel_GetVolume'
./liblugrelib.a(lugre_sound_fmod.o): In function `Lugre::cSoundSourceFmod::IsPaused()':
/home/daniel/Download/codesource/iris_2.0.2010/lugre/src/lugre_sound_fmod.cpp:192: undefined reference to `FMOD_Channel_GetPaused'
./liblugrelib.a(lugre_sound_fmod.o): In function `Lugre::cSoundSourceFmod::IsPlaying()':
/home/daniel/Download/codesource/iris_2.0.2010/lugre/src/lugre_sound_fmod.cpp:182: undefined reference to `FMOD_Channel_IsPlaying'
./liblugrelib.a(lugre_sound_fmod.o): In function `~cSoundSourceFmod':
/home/daniel/Download/codesource/iris_2.0.2010/lugre/src/lugre_sound_fmod.cpp:134: undefined reference to `FMOD_Sound_Release'
/home/daniel/Download/codesource/iris_2.0.2010/lugre/src/lugre_sound_fmod.cpp:134: undefined reference to `FMOD_Sound_Release'
./liblugrelib.a(lugre_sound_fmod.o): In function `Lugre::cSoundSourceFmod::SetMinMaxDistance(float, float)':
/home/daniel/Download/codesource/iris_2.0.2010/lugre/src/lugre_sound_fmod.cpp:238: undefined reference to `FMOD_Channel_Set3DMinMaxDistance'
./liblugrelib.a(lugre_sound_fmod.o): In function `Lugre::cSoundSourceFmod::SetVolume(float)':
/home/daniel/Download/codesource/iris_2.0.2010/lugre/src/lugre_sound_fmod.cpp:218: undefined reference to `FMOD_Channel_SetVolume'
./liblugrelib.a(lugre_sound_fmod.o): In function `Lugre::cSoundSourceFmod::Pause()':
/home/daniel/Download/codesource/iris_2.0.2010/lugre/src/lugre_sound_fmod.cpp:210: undefined reference to `FMOD_Channel_SetPaused'
./liblugrelib.a(lugre_sound_fmod.o): In function `Lugre::cSoundSourceFmod::Stop()':
/home/daniel/Download/codesource/iris_2.0.2010/lugre/src/lugre_sound_fmod.cpp:202: undefined reference to `FMOD_Channel_Stop'
./liblugrelib.a(lugre_sound_fmod.o): In function `Lugre::cSoundSourceFmod::Play()':
/home/daniel/Download/codesource/iris_2.0.2010/lugre/src/lugre_sound_fmod.cpp:145: undefined reference to `FMOD_Channel_SetPaused'
/home/daniel/Download/codesource/iris_2.0.2010/lugre/src/lugre_sound_fmod.cpp:153: undefined reference to `FMOD_System_PlaySound'
/home/daniel/Download/codesource/iris_2.0.2010/lugre/src/lugre_sound_fmod.cpp:162: undefined reference to `FMOD_Channel_Set3DAttributes'
/home/daniel/Download/codesource/iris_2.0.2010/lugre/src/lugre_sound_fmod.cpp:168: undefined reference to `FMOD_Channel_SetPaused'
./liblugrelib.a(lugre_sound_fmod.o): In function `Lugre::cSoundSourceFmod::SetPosition(float, float, float)':
/home/daniel/Download/codesource/iris_2.0.2010/lugre/src/lugre_sound_fmod.cpp:268: undefined reference to `FMOD_Channel_Set3DAttributes'
./liblugrelib.a(lugre_sound_fmod.o): In function `Lugre::cSoundSourceFmod::SetVelocity(float, float, float)':
/home/daniel/Download/codesource/iris_2.0.2010/lugre/src/lugre_sound_fmod.cpp:280: undefined reference to `FMOD_Channel_Set3DAttributes'
./liblugrelib.a(lugre_sound_fmod.o): In function `cSoundSourceFmod':
/home/daniel/Download/codesource/iris_2.0.2010/lugre/src/lugre_sound_fmod.cpp:123: undefined reference to `FMOD_System_CreateStream'
/home/daniel/Download/codesource/iris_2.0.2010/lugre/src/lugre_sound_fmod.cpp:98: undefined reference to `FMOD_System_CreateStream'
/home/daniel/Download/codesource/iris_2.0.2010/lugre/src/lugre_sound_fmod.cpp:88: undefined reference to `FMOD_System_CreateStream'
/home/daniel/Download/codesource/iris_2.0.2010/lugre/src/lugre_sound_fmod.cpp:64: undefined reference to `FMOD_System_CreateStream'
collect2: ld returned 1 exit status
make[1]: ** [bin/iris] Erro 1
make: ** [iris] Erro 2


I can not compile iris2.

_________________
One Smurfs


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 21, 2008 10:58 pm 
Offline
iris2-developer
User avatar

Joined: Mon Aug 09, 2004 12:20 pm
Posts: 1431
we can't distribute Fmod. Choose OpenAL or download Fmod yourself -> http://www.fmod.org/ .

regards


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 22, 2008 11:54 am 
Offline
iris2-developer
User avatar

Joined: Tue Apr 18, 2006 10:28 pm
Posts: 823
Location: Munich, Bavaria, Germany
looks like the linker doesn't find OIS and FMOD

you can add searchpaths for libs by adding an option like this to the linker call : -L/usr/local/lib
i don't know offhand how to add this using premake.lua, please refer to the premake docs

you can where the libs are by
locate -i libois
locate -i libfmod
and looking for .a .sa .la or similar file endings.

hope this helps a bit


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group