Closed JohnPaulHarold closed 5 years ago
Pass locations of the headers and the library to CMake manually.
If OpenAL SDK 1.1 installed this could be like the following:
cmake .\ltjs\ -D "OPENAL_INCLUDE_DIR=c:\Program Files (x86)\OpenAL 1.1 SDK\include" -D "OPENAL_LIBRARY=c:\Program Files (x86)\OpenAL 1.1 SDK\libs\Win32\OpenAL32.lib"
Also, it's easier to use GUI version of CMake: cmake-gui.exe
A slight change to the paths passed, as that progresses, thanks. New lines added for formatting only
PS C:\Users\$User\Code> cmake .\ltjs\
-DOPENAL_INCLUDE_DIR="c:\Program Files (x86)\OpenAL 1.1 SDK\include"
-DOPENAL_LIBRARY="c:\Program Files (x86)\OpenAL 1.1 SDK\libs\Win32\OpenAL32.lib"
However, next complaint is about not finding ffmpeg
. Continue this here, or raise a new ticket about ffmpeg? The same ffmpeg issue happens via CLI or gui.
For FFmpeg there are two variables: LTJS_FFMPEG_INCLUDE_DIR - directory with headers. LTJS_FFMPEG_LIBRARY_DIR - directory with libraries.
Library names expected in Windows format (i.e. avcodec.lib, not libavcodec.a).
Yes, so I've got the (w32) dev build of ffmpeg for windows, downloaded from here
https://ffmpeg.zeranoe.com/builds/
I've pointed the two LTJS_FFMPEG_*
vars at the correct folders (both cli and gui), but it seems that ffmpeg
isn't found.
Failed to detect FFmpeg version.
*** FFmpeg not found ***
CMake Error at CMake/FindLTJS_FFmpeg.cmake:166 (message):
Call Stack (most recent call first):
engine/runtime/sound/src/sys/s_oal/CMakeLists.txt:5 (find_package)
-- Configuring incomplete, errors occurred!
w32 ffmpeg
is on my PATH and returns this as a version
PS C:\Users\$User\Code> ffmpeg -version
ffmpeg version N-92273-g59a35fe1f6 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 8.2.1 (GCC) 20181017
configuration: --enable-gpl ... a lot more enables ...
libavutil 56. 20.100 / 56. 20.100
libavcodec 58. 34.100 / 58. 34.100
libavformat 58. 19.102 / 58. 19.102
libavdevice 58. 4.106 / 58. 4.106
libavfilter 7. 38.100 / 7. 38.100
libswscale 5. 2.100 / 5. 2.100
libswresample 3. 2.100 / 3. 2.100
libpostproc 55. 2.100 / 55. 2.100
Custom CMake module checks for FFmpeg version by parsing "libavutil/ffversion.h".
Version string should be like this:
#define FFMPEG_VERSION "4.0"
I think you downloaded a nightly build not a release one from that site you mentioned.
Thanks, fixed. Closing.
With the following,
I get