Problem with oxygine-sound linking

sound library for oxygine-framework and your game

Problem with oxygine-sound linking

Postby Launch9 » Sun Apr 23, 2017 9:44 pm

Hello, I am having issues with oxygine-sound, may someone please provide instructions on how to link it up properly to a visual studio project?

The things I have done so far:

1: Went to "project properties\c/c++\General\Additional include libraries" and input "Oxygine\oxygine-sound\src"
2: Went to "project properties\linker\General\Additional Library Directories" and input "Oxygine\oxygine-sound\libs\win32"
3: Added the oxygine-sound to my solution.
4: Added a reference to oxygine-sound from my project.

The result:

My project notices that the files exist(I can #include "oxygine-sound") and make SoundPlayers; however, I am unable to call SoundSystem::create()->init(15).

If I do so, it will give me these errors:

Severity Code Description Project File Line
Error LNK1120 30 unresolved externals Di_Hydrogen ..\Di_Hydrogen\Di_Hydrogen.win32\Debug_v140\Di_Hydrogen.exe 1
Error LNK2001 unresolved external symbol _ov_clear Di_Hydrogen ..\Di_Hydrogen\Di_Hydrogen.win32\oxygine-sound.lib(OggStream.obj) 1
Error LNK2001 unresolved external symbol _ov_comment Di_Hydrogen ..\Di_Hydrogen\Di_Hydrogen.win32\oxygine-sound.lib(OggStream.obj) 1
Error LNK2001 unresolved external symbol _ov_open_callbacks Di_Hydrogen ..\Di_Hydrogen\Di_Hydrogen.win32\oxygine-sound.lib(OggStream.obj) 1
Error LNK2001 unresolved external symbol _ov_pcm_tell Di_Hydrogen ..\Di_Hydrogen\Di_Hydrogen.win32\oxygine-sound.lib(OggStream.obj) 1
Error LNK2001 unresolved external symbol _ov_pcm_seek Di_Hydrogen ..\Di_Hydrogen\Di_Hydrogen.win32\oxygine-sound.lib(OggStream.obj) 1
Error LNK2001 unresolved external symbol _ov_time_seek Di_Hydrogen ..\Di_Hydrogen\Di_Hydrogen.win32\oxygine-sound.lib(OggStream.obj) 1
Error LNK2001 unresolved external symbol __imp__alBufferData Di_Hydrogen ..\Di_Hydrogen\Di_Hydrogen.win32\oxygine-sound.lib(Channel_oal.obj) 1
Error LNK2001 unresolved external symbol __imp__alBufferData Di_Hydrogen ..\Di_Hydrogen\Di_Hydrogen.win32\oxygine-sound.lib(Sound_oal.obj) 1
Error LNK2001 unresolved external symbol __imp__alcCloseDevice Di_Hydrogen ..\Di_Hydrogen\Di_Hydrogen.win32\oxygine-sound.lib(SoundSystem_oal.obj) 1
Error LNK2001 unresolved external symbol __imp__alcMakeContextCurrent Di_Hydrogen ..\Di_Hydrogen\Di_Hydrogen.win32\oxygine-sound.lib(SoundSystem_oal.obj) 1
Error LNK2001 unresolved external symbol __imp__alDeleteBuffers Di_Hydrogen ..\Di_Hydrogen\Di_Hydrogen.win32\oxygine-sound.lib(Sound_oal.obj) 1
Error LNK2001 unresolved external symbol __imp__alDeleteBuffers Di_Hydrogen ..\Di_Hydrogen\Di_Hydrogen.win32\oxygine-sound.lib(Channel_oal.obj) 1
Error LNK2001 unresolved external symbol __imp__alGenSources Di_Hydrogen ..\Di_Hydrogen\Di_Hydrogen.win32\oxygine-sound.lib(SoundSystem_oal.obj) 1
Error LNK2001 unresolved external symbol __imp__alGenBuffers Di_Hydrogen ..\Di_Hydrogen\Di_Hydrogen.win32\oxygine-sound.lib(Sound_oal.obj) 1
Error LNK2001 unresolved external symbol __imp__alSourcePause Di_Hydrogen ..\Di_Hydrogen\Di_Hydrogen.win32\oxygine-sound.lib(Channel_oal.obj) 1
Error LNK2001 unresolved external symbol __imp__alSourceStop Di_Hydrogen ..\Di_Hydrogen\Di_Hydrogen.win32\oxygine-sound.lib(Channel_oal.obj) 1
Error LNK2001 unresolved external symbol __imp__alSourcePlay Di_Hydrogen ..\Di_Hydrogen\Di_Hydrogen.win32\oxygine-sound.lib(Channel_oal.obj) 1
Error LNK2001 unresolved external symbol __imp__alSourceQueueBuffers Di_Hydrogen ..\Di_Hydrogen\Di_Hydrogen.win32\oxygine-sound.lib(Channel_oal.obj) 1
Error LNK2001 unresolved external symbol __imp__alSourcef Di_Hydrogen ..\Di_Hydrogen\Di_Hydrogen.win32\oxygine-sound.lib(Channel_oal.obj) 1
Error LNK2001 unresolved external symbol _ov_info Di_Hydrogen ..\Di_Hydrogen\Di_Hydrogen.win32\oxygine-sound.lib(OggStream.obj) 1
Error LNK2001 unresolved external symbol _ov_pcm_total Di_Hydrogen ..\Di_Hydrogen\Di_Hydrogen.win32\oxygine-sound.lib(OggStream.obj) 1
Error LNK2001 unresolved external symbol _ov_read Di_Hydrogen ..\Di_Hydrogen\Di_Hydrogen.win32\oxygine-sound.lib(OggStream.obj) 1
Error LNK2001 unresolved external symbol _ov_time_tell Di_Hydrogen ..\Di_Hydrogen\Di_Hydrogen.win32\oxygine-sound.lib(OggStream.obj) 1
Error LNK2001 unresolved external symbol _ov_time_total Di_Hydrogen ..\Di_Hydrogen\Di_Hydrogen.win32\oxygine-sound.lib(OggStream.obj) 1
Error LNK2001 unresolved external symbol __imp__alcCreateContext Di_Hydrogen ..\Di_Hydrogen\Di_Hydrogen.win32\oxygine-sound.lib(SoundSystem_oal.obj) 1
Error LNK2001 unresolved external symbol __imp__alcDestroyContext Di_Hydrogen ..\Di_Hydrogen\Di_Hydrogen.win32\oxygine-sound.lib(SoundSystem_oal.obj) 1
Error LNK2001 unresolved external symbol __imp__alcOpenDevice Di_Hydrogen ..\Di_Hydrogen\Di_Hydrogen.win32\oxygine-sound.lib(SoundSystem_oal.obj) 1
Error LNK2001 unresolved external symbol __imp__alGenBuffers Di_Hydrogen ..\Di_Hydrogen\Di_Hydrogen.win32\oxygine-sound.lib(Channel_oal.obj) 1
Error LNK2001 unresolved external symbol __imp__alGetError Di_Hydrogen ..\Di_Hydrogen\Di_Hydrogen.win32\oxygine-sound.lib(Channel_oal.obj) 1
Error LNK2001 unresolved external symbol __imp__alGetSourcei Di_Hydrogen ..\Di_Hydrogen\Di_Hydrogen.win32\oxygine-sound.lib(Channel_oal.obj) 1
Error LNK2001 unresolved external symbol __imp__alSource3f Di_Hydrogen ..\Di_Hydrogen\Di_Hydrogen.win32\oxygine-sound.lib(Channel_oal.obj) 1
Error LNK2001 unresolved external symbol __imp__alSourcei Di_Hydrogen ..\Di_Hydrogen\Di_Hydrogen.win32\oxygine-sound.lib(Channel_oal.obj) 1
Error LNK2001 unresolved external symbol __imp__alSourceUnqueueBuffers Di_Hydrogen ..\Di_Hydrogen\Di_Hydrogen.win32\oxygine-sound.lib(Channel_oal.obj) 1

Response is appreciated.
Launch9
 
Posts: 9
Joined: Sun Apr 23, 2017 9:14 pm

Re: Problem with oxygine-sound linking

Postby admin » Thu Apr 27, 2017 6:40 am

you didn't link openal/ogg libraries to project located here:
oxygine-sound\libs\win32\

open oxygine-sound example and go to
project properties->linker->input -> additional dependencies
User avatar
admin
Site Admin
 
Posts: 751
Joined: Mon Oct 21, 2013 6:47 pm

Re: Problem with oxygine-sound linking

Postby Launch9 » Mon May 01, 2017 3:44 am

Well, It builds, but now it is giving me this error upon execution of the program: "Expression: !"unknown resource type"".
The only thing I cannot mimic from the example is the inherited values in "linker\input\additional dependencies"
Launch9
 
Posts: 9
Joined: Sun Apr 23, 2017 9:14 pm

Re: Problem with oxygine-sound linking

Postby admin » Mon May 01, 2017 5:19 am

you didn't initialize oxygine-sound, check wiki
User avatar
admin
Site Admin
 
Posts: 751
Joined: Mon Oct 21, 2013 6:47 pm

Re: Problem with oxygine-sound linking

Postby Launch9 » Mon May 01, 2017 6:26 am

Yep, I was initializing my resources(res.xml file) before I initialized the sounds.
Thank you sir. I like the power oxygine brings; however, it is a little complex. But I never started out with flash so...
Oxygine is great in general though.
Launch9
 
Posts: 9
Joined: Sun Apr 23, 2017 9:14 pm


Return to oxygine-sound

Who is online

Users browsing this forum: No registered users and 1 guest

cron