Julius: Setting up in VS2019 (Windows) problem.

Created on 19 Feb 2020  路  5Comments  路  Source: bvschaik/julius

For some reason, VS cannot find the two SDL libraries. I'm following the build instructions from here: https://github.com/bvschaik/julius/blob/master/doc/building_windows.md#a-using-microsoft-visual-studio-64-bit-build

I am currently stuck at 10. Setting up CMake command arguments.
I've set mine as such: -DCMAKE_PREFIX_PATH=D:\\Visual Studio\\Libs\\SDL2-2.0.10;D:\\Visual Studio\\Libs\\SDL2_mixer-2.0.4, but I'm still getting the error:

Severity Code Description Project File Line Suppression State
Error CMake Error at C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.15/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
Could NOT find SDL2 (missing: SDL2_LIBRARY SDL2_INCLUDE_DIR) C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/CMake/share/cmake-3.15/Modules/FindPackageHandleStandardArgs.cmake 137

question

All 5 comments

The space in the path may be a problem. Does it work when you use D:\\Visual\ Studio\\Libs (note the \ before the space) instead of D:\\Visual Studio\\Libs?

The space in the path may be a problem. Does it work when you use D:\\Visual\ Studio\\Libs (note the \ before the space) instead of D:\\Visual Studio\\Libs?

It froze and I got that notification that VS is busy. I suspected something was wrong as I've waited for a couple of minutes for it to snap out of it, which it didn't, so I've restarted it with the settings saved (escaped whitespace), but the error is still there!

Could you try moving the libraries to a path without a space in them?

You can also try -DCMAKE_PREFIX_PATH="D:\\Visual Studio\\Libs\\SDL2-2.0.10;D:\\Visual Studio\\Libs\\SDL2_mixer-2.0.4"

You can also try -DCMAKE_PREFIX_PATH="D:\\Visual Studio\\Libs\\SDL2-2.0.10;D:\\Visual Studio\\Libs\\SDL2_mixer-2.0.4"

This worked, except I removed the escape characters. (Extra backslash). Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

giggietto picture giggietto  路  8Comments

mirh picture mirh  路  9Comments

jfkonecn picture jfkonecn  路  6Comments

jonathanmcnamee picture jonathanmcnamee  路  3Comments

crudelios picture crudelios  路  6Comments