Closed LukePrzyb closed 4 years ago
Currently I'm forward declaring both ALCdevice
and ALCcontext
with these signatures:
typedef struct ALCdevice_struct ALCdevice;
typedef struct ALCcontext_struct ALCcontext;
Located here: https://github.com/EQMG/Acid/blob/master/Sources/Audio/Audio.hpp#L6
If you are using openal-soft these forward-declarations will need to match their implementation:
typedef struct ALCdevice ALCdevice;
typedef struct ALCcontext ALCcontext;
Right now I'm using the OpenAL API common on Windows, Linux, and macOS. vcpkg will install openal-soft for some other projects, CMake will probably pull that version in if you don't have OPENALDIR in your path. Source: https://github.com/Kitware/CMake/blob/master/Modules/FindOpenAL.cmake
Thank you for the response.
I have changed my OpenAL include and lib to point at:
OPENAL_INCLUDE_DIR C:/.../vcpkg/installed/x64-windows/include/AL
OPENAL_LIBRARY C:/.../vcpkg/installed/x64-windows/lib/OpenAL32.lib
as a result, your recommendations were not necessary. Additional corrections had to be made (strange SPIR and physfs include pointing from vcpkg, stay on release to avoid LNK errors with debug).
I will provide some documentation information in the near future for your README once I feel confident with building your project, and can correctly recreate it in the future. Regardless, thank you for the speedy assistance.
Hello,
I am trying to compile together all the external libraries required, using Visual Studio 2019. So far, all libraries, except for OpenAL, are working perfectly fine when I attempt to compile a test executable (TestFont).
Sample of error coming from building TestFont:
I suspect this is due to how I link OpenAL to acid in
CMakeSettings.json
. I am using:Note: I am partially using vcpkg for some components, and not for others.
Any help would be appreciated. I will try to provide documentation details using visual studio for other people who would like to use this strategy.