tuhopuu3 on linux openal build error

Compiling, libraries, modules, coding guidelines and porting

Moderators: jesterKing, stiv

Post Reply
ndestefano
Posts: 0
Joined: Thu Jun 16, 2005 5:11 pm
Location: Harrisburg, PA

tuhopuu3 on linux openal build error

Post by ndestefano »

trying to build tuhopuu3 on linux box and i get the following build errors related to openal, i am running openal version 20050504.

/usr/lib/libopenal.a(al_ext_mp3.o)(.text+0x10f): In function `MP3_Callback':
: undefined reference to `SMPEG_status'
/usr/lib/libopenal.a(al_ext_mp3.o)(.text+0x11e): In function `MP3_Callback':
: undefined reference to `SMPEG_play'
/usr/lib/libopenal.a(al_ext_mp3.o)(.text+0x14c): In function `MP3_Callback':
: undefined reference to `SMPEG_playAudio'
/usr/lib/libopenal.a(al_ext_mp3.o)(.text+0x18e): In function `MP3_Callback':
: undefined reference to `SMPEG_stop'
/usr/lib/libopenal.a(al_ext_mp3.o)(.text+0x19a): In function `MP3_Callback':
: undefined reference to `SMPEG_rewind'
/usr/lib/libopenal.a(al_ext_mp3.o)(.text+0x1ee): In function `MP3_Callback':
: undefined reference to `SMPEG_enableaudio'
/usr/lib/libopenal.a(al_ext_mp3.o)(.text+0x1fe): In function `MP3_Callback':
: undefined reference to `SMPEG_enablevideo'
/usr/lib/libopenal.a(al_ext_mp3.o)(.text+0x2ae): In function `alutLoadMP3_LOKI':
: undefined reference to `SMPEG_new_data'
/usr/lib/libopenal.a(al_ext_mp3.o)(.text+0x2be): In function `alutLoadMP3_LOKI':
: undefined reference to `SMPEG_wantedSpec'
/usr/lib/libopenal.a(al_ext_mp3.o)(.text+0x342): In function `alutLoadMP3_LOKI':
: undefined reference to `SMPEG_actualSpec'
/usr/lib/libopenal.a(al_ext_mp3.o)(.text+0x3c1): In function `alutLoadMP3_LOKI':
: undefined reference to `SMPEG_stop'
/usr/lib/libopenal.a(al_ext_mp3.o)(.text+0x3cd): In function `alutLoadMP3_LOKI':
: undefined reference to `SMPEG_delete'
/usr/lib/libopenal.a(al_ext_mp3.o)(.text+0x46c): In function `mp3bid_remove':
: undefined reference to `SMPEG_stop'
/usr/lib/libopenal.a(al_ext_mp3.o)(.text+0x478): In function `mp3bid_remove':
: undefined reference to `SMPEG_delete'
/usr/lib/libopenal.a(al_ext_vorbis.o)(.text+0x152): In function `Vorbis_Callback':
: undefined reference to `ov_read'
/usr/lib/libopenal.a(al_ext_vorbis.o)(.text+0x2ec): In function `VorbHandle_delete':
: undefined reference to `ov_clear'
/usr/lib/libopenal.a(al_ext_vorbis.o)(.text+0x3e2): In function `alutLoadVorbis_LOKI':
: undefined reference to `ov_open_callbacks'
/usr/lib/libopenal.a(al_ext_vorbis.o)(.text+0x3f8): In function `alutLoadVorbis_LOKI':
/usr/lib/libopenal.a(alsa.o)(.text+0x26): In function `openal_load_alsa_library':
: undefined reference to `snd_strerror'
/usr/lib/libopenal.a(alsa.o)(.text+0x32): In function `openal_load_alsa_library':
: undefined reference to `snd_pcm_info_sizeof'
/usr/lib/libopenal.a(alsa.o)(.text+0x3e): In function `openal_load_alsa_library':
: undefined reference to `snd_pcm_hw_params_malloc'
/usr/lib/libopenal.a(alsa.o)(.text+0x4a): In function `openal_load_alsa_library':
: undefined reference to `snd_pcm_hw_params_free'
/usr/lib/libopenal.a(alsa.o)(.text+0x56): In function `openal_load_alsa_library':
: undefined reference to `snd_pcm_close'
/usr/lib/libopenal.a(alsa.o)(.text+0x62): In function `openal_load_alsa_library':
: undefined reference to `snd_pcm_hw_params'
/usr/lib/libopenal.a(alsa.o)(.text+0x6e): In function `openal_load_alsa_library':
: undefined reference to `snd_pcm_hw_params_any'
/usr/lib/libopenal.a(alsa.o)(.text+0x7a): In function `openal_load_alsa_library':
: undefined reference to `snd_pcm_hw_params_get_buffer_size'
/usr/lib/libopenal.a(alsa.o)(.text+0x86): In function `openal_load_alsa_library':
: undefined reference to `snd_pcm_hw_params_get_channels'
/usr/lib/libopenal.a(alsa.o)(.text+0x92): In function `openal_load_alsa_library':
: undefined reference to `snd_pcm_hw_params_get_period_size'
/usr/lib/libopenal.a(alsa.o)(.text+0x9e): In function `openal_load_alsa_library':
: undefined reference to `snd_pcm_hw_params_set_access'
/usr/lib/libopenal.a(alsa.o)(.text+0xaa): In function `openal_load_alsa_library':
: undefined reference to `snd_pcm_hw_params_set_buffer_size_near'
/usr/lib/libopenal.a(alsa.o)(.text+0xb6): In function `openal_load_alsa_library':
: undefined reference to `snd_pcm_hw_params_set_channels'
/usr/lib/libopenal.a(alsa.o)(.text+0xc2): In function `openal_load_alsa_library':
: undefined reference to `snd_pcm_hw_params_set_format'
/usr/lib/libopenal.a(alsa.o)(.text+0xce): In function `openal_load_alsa_library':
: undefined reference to `snd_pcm_hw_params_set_period_size'
/usr/lib/libopenal.a(alsa.o)(.text+0xda): In function `openal_load_alsa_library':
: undefined reference to `snd_pcm_hw_params_set_periods'
/usr/lib/libopenal.a(alsa.o)(.text+0xe6): In function `openal_load_alsa_library':
: undefined reference to `snd_pcm_hw_params_set_rate'
/usr/lib/libopenal.a(alsa.o)(.text+0xf2): In function `openal_load_alsa_library':
: undefined reference to `snd_pcm_hw_params_set_rate_near'
/usr/lib/libopenal.a(alsa.o)(.text+0xfe): In function `openal_load_alsa_library':
: undefined reference to `snd_pcm_hw_params_sizeof'
/usr/lib/libopenal.a(alsa.o)(.text+0x10a): In function `openal_load_alsa_library':
: undefined reference to `snd_pcm_open'
/usr/lib/libopenal.a(alsa.o)(.text+0x116): In function `openal_load_alsa_library':
: undefined reference to `snd_pcm_nonblock'
/usr/lib/libopenal.a(alsa.o)(.text+0x122): In function `openal_load_alsa_library':
: undefined reference to `snd_pcm_prepare'
/usr/lib/libopenal.a(alsa.o)(.text+0x12e): In function `openal_load_alsa_library':
: undefined reference to `snd_pcm_readi'
/usr/lib/libopenal.a(alsa.o)(.text+0x13a): In function `openal_load_alsa_library':
: undefined reference to `snd_pcm_resume'
/usr/lib/libopenal.a(alsa.o)(.text+0x146): In function `openal_load_alsa_library':
: undefined reference to `snd_pcm_writei'
/usr/lib/libopenal.a(esd.o)(.text+0x2ec): In function `grab_write_esd':
: undefined reference to `esd_open_sound'
/usr/lib/libopenal.a(esd.o)(.text+0x303): In function `grab_write_esd':
: undefined reference to `esd_standby'


any tips? what version of openal is everone using?

nate d.

SirDude
Posts: 233
Joined: Sun Oct 13, 2002 7:37 pm
Location: University of Minnesota (USA)
Contact:

Post by SirDude »

Hi Nate,

Your version of openal was compiled with extra libraries.

So you will need to link them in. It depends on the build system
for how you do this. If your using scons you need to edit config.opts
and find OPENAL_LIBRARY = ['openal'] and add in your extra libs, something like

OPENAL_LIBRARY = ['openal', 'smpeg', 'vorbis']

You may need some others...

If your using the Makefiles you will want to edit source/nan_link.mk
add add the extra libs Look for the -l(library)'s under your platform
and add -lsmpeg -lvorbis and any others you need.

SirDude
Posts: 233
Joined: Sun Oct 13, 2002 7:37 pm
Location: University of Minnesota (USA)
Contact:

Post by SirDude »

I ment to add that most people are using the openal included in the lib cvs
I'm guessing.

ndestefano
Posts: 0
Joined: Thu Jun 16, 2005 5:11 pm
Location: Harrisburg, PA

Post by ndestefano »

thank you! this should have been obvious, not sure how i overlooked it, blender on!

nate d.

t_boyd
Posts: 0
Joined: Fri Mar 17, 2006 9:54 pm

omg

Post by t_boyd »

scons = :)

Post Reply