You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to build json-c on windows 10 with cmake
after I execute cmake ../ at the end I get:
-- Performing Test HAS_GNU_WARNING_LONG - Failed
-- Performing Test HAVE_ATOMIC_BUILTINS
-- Performing Test HAVE_ATOMIC_BUILTINS - Failed
-- Performing Test HAVE___THREAD
-- Performing Test HAVE___THREAD - Failed
-- Written C:/Users/****/source/repos/json-c/build/config.h
-- Written C:/Users/****/source/repos/json-c/build/json_config.h
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/****/source/repos/json-c/build
And no makefile is then created
I am following those instructions
Am I doing something wrong?
Any help is appreciated
thanks in advance
The text was updated successfully, but these errors were encountered:
The cmake build on windows doesn't create makefiles, it creates Visual Studio project files instead. You can build from the command line using something similar to what https://github.com/json-c/json-c/blob/master/appveyor.yml does (i.e. cmake --build . --target install), but you'll need to do that from a command prompt that is set up to run the VS tools (e.g. cl.exe) properly (e.g. "Developer Command Prompt for VS2015").
Once you have a command prompt with the right environment, you should also be able to run msbuild.exe directly, instead of having cmake do it for you.
Or, you can open the project files using the VS gui.
I am trying to build json-c on windows 10 with cmake
after I execute
cmake ../
at the end I get:And no
makefile
is then createdI am following those instructions
Am I doing something wrong?
Any help is appreciated
thanks in advance
The text was updated successfully, but these errors were encountered: