Discussion:
ALURE in Windows cmake paths for external libs
d***@oldunreal.com
2013-06-25 12:30:28 UTC
Permalink
I hope this is the right mailinglist for that as well ;)

While cmake in Linux is quite comfortable and I use it quite often, it's
in Windows only annoying. Maybe one can enlighten me. I stumbled across
ALURE and was happy to have a replacement for old ALUT. The precompiled
Windows bins/libs didn't work and gave me very strange linker errors.
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?
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.
Also, is ALURE now needing Trumor or does it work with "default" OGG
version as well?

Forgive me if this is the wrong place to ask such things, but I couldn't
find any docs yet explaining these.

~Jochen
keghn
2013-06-25 19:52:36 UTC
Permalink
hello,
I cannot get alure to work with my linux machine :{



--
View this message in context: http://openal.996291.n3.nabble.com/ALURE-in-Windows-cmake-paths-for-external-libs-tp5519p5520.html
Sent from the OpenAL - User mailing list archive at Nabble.com.
Chris Robinson
2013-07-02 03:34:50 UTC
Permalink
Post by d***@oldunreal.com
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).
Post by d***@oldunreal.com
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.
Post by d***@oldunreal.com
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.
keghn
2013-08-12 19:20:05 UTC
Permalink
ALURE dones not work:

cd build
rm -rf *
cmake ..
make
sudo make install


***@keghn-700Z3C-700Z5C ~/alure-1.2/examples $ make alurecdplay
cc alurecdplay.c -o alurecdplay
alurecdplay.c:5:22: fatal error: AL/alure.h: No such file or directory
compilation terminated.
make: *** [alurecdplay] Error 1




--
View this message in context: http://openal.996291.n3.nabble.com/ALURE-in-Windows-cmake-paths-for-external-libs-tp5519p5549.html
Sent from the OpenAL - User mailing list archive at Nabble.com.

Loading...