Re: ALURE in Windows cmake paths for external libs
Chris Robinson <[email protected]> Mon, 01 Jul 2013 20:34:50 -0700
| Newsgroups | gmane.comp.lib.openal |
|---|---|
| Message-ID | <[email protected]> |
On 06/25/2013 05:30 AM, [email protected] wrote: > Compiling it myself this fixed the problem and its working flawlessly in > its base configuration. However, I'd love to enhance it with the > external libs such as FLAC or OGG (best would be probably static to not > have a mess of additional libraries needed). But whatever I try I can't > make it to find these libraries and its headers. Is there some > documentation how to do this properly? Where to put the .lib files and > the headers so that cmake is finding them for ALURE? The easiest way is to put the headers and libs where your compiler will look for them. Such as: D:\path\to\compiler\include\ogg\ogg.h D:\path\to\compiler\include\vorbis\vorbis.h D:\path\to\compiler\include\vorbis\vorbisfile.h D:\path\to\compiler\include\FLAC\all.h ..etc.. and D:\path\to\compiler\lib\FLAC.lib D:\path\to\compiler\lib\vorbisfile.lib D:\path\to\compiler\lib\vorbis.lib D:\path\to\compiler\lib\ogg.lib The other option is to manually specify the include paths and libs using CMakeSetup.exe. After you first configure Alure, it should have Cache Values for OGG_LIBRARY, OGG_INCLUDE_DIR, etc, which you can fill in manually. Unfortunately I don't know how easy it will be to use the static versions of these libs, due to the way Windows dresses imported functions from DLLs. It's technically feasible, but it may need some source changes depending on how the Ogg/FLAC headers are told to not use dllimport. These will be things I intend on fixing/improving for the next release (which is likely a ways off still, unfortunately). > While this all seems to be no problem in Linux I'm quite confused about > this in Windows, the FindFLAC.cmake f.e. tries to set the PATHS to > /usr/lib /usr/local/lib /opt/local/lib but adding a path like > "d:\flac-1.2.1\flac-1.2.1\obj\release\lib" fails badly. Try using forward slashes: "d:/flac-1.2.1/flac-1.2.1/obj/release/lib" CMake probably wants \\ for a single backslash, but it should recognize a forward slash as a directory separator regardless. > Also, is ALURE now needing Trumor or does it work with "default" OGG > version as well? It still works with the normal libs. Using Tremor is just an option for systems that don't have good floating-point performance. _______________________________________________ Openal mailing list [email protected] http://opensource.creative.com/mailman/listinfo/openal