Jump to content
  • Advertisement
Sign in to follow this  
k_ta

OpenAL+Vorbis

This topic is 3047 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I`m trying to compile libvorbis to integrate with OpenAL and it gives me an link error: LINK : fatal error LNK1104: cannot open file 'libvorbis.lib' It suppose that I´m building the libvorbis.lib and the libvorbis.dll. Anyone know something about this error?

Share this post


Link to post
Share on other sites
Advertisement
Are you compiling from one of the project files supplied? If so, what project file exactly, and what compiler are you using?

Does the project have libvorbis.lib listed under Configuration Properties -> Linker -> Input -> Additional Dependencies? Is it referenced in any source file in the project (E.g. as a #pragma comment(lib, "libvorbis.lib"))?

Share this post


Link to post
Share on other sites
I`m using VS2008 and I use the project that I found in the Libvorbis->win32->VS2008(here I found a project for static library and another one for dynamic library).The static lib compile correctly but the dynamic(which contain 2 projects int he solution) gives the following errors:

1.project libvorbis:

-vorbis.def : error LNK2001: unresolved external symbol _analysis_output_always

-win32\VS2008\Win32\Debug/libvorbis.lib : fatal error LNK1120: 1 unresolved externals

2.project libvorbisfile:

LINK : fatal error LNK1104: cannot open file '..\win32\debug\libvorbis.lib'

In Configuration Properties -> Linker -> Input -> Additional Dependencies
only appears ogglib reference but I have configured it for all visual enviroment so no problem about that.
In Configuration Properties -> Linker -> Advanced (Import Library)I found this reference: $(OutDir)/libvorbis.lib.


Share this post


Link to post
Share on other sites
Hey I just experienced this problem as well. I found this website:

http://www.mixxx.org/wiki/doku.php/build_windows_dependencies

which states that

Quote:

If you get the error

vorbis.def : error LNK2001: unresolved external symbol _analysis_output_always

comment the line _analysis_output_always in libvorbis-1.2.3\win32\vorbis.def (line 51 in my copy.) Press F7 again and it should build fine.


I tried it, and it compiled fine. I'm not sure what this affects though.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!