Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake config fails on windows #10

Open
jordiexvision opened this issue Jan 13, 2017 · 4 comments
Open

cmake config fails on windows #10

jordiexvision opened this issue Jan 13, 2017 · 4 comments

Comments

@jordiexvision
Copy link

Thank you for this addon!
Just followed the readme steps and tried to compile a simple of example on Windows with:
cmake ..

output:
-- Building for: Visual Studio 14 2015
-- The C compiler identification is MSVC 19.0.24215.1
-- The CXX compiler identification is MSVC 19.0.24215.1
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at C:/openFrameworks/addons/ofxCMake/modules/openFrameworksWindows.cmake:39 (pkg_check_modules):
Unknown CMake command "pkg_check_modules".
Call Stack (most recent call first):
C:/openFrameworks/addons/ofxCMake/modules/main.cmake:35 (include)
CMakeLists.txt:44 (include)

@peterkolski
Copy link
Owner

The windows part is untested yet.
Besides that, which cMake version are you using, as the error message said command 'pkg_check_modules' can't be found.
Seems to be from cMake 3.0

@jordiexvision
Copy link
Author

Thank you very much for your reply. I'm using cMake 3.7.1.

@jordiexvision
Copy link
Author

I would like to spend some time to get it working on windows. Unfortunately I don't know much about cmake. If you want to give me a hand with some basics I could try get it to work. I'm also looking at
https://github.com/ofnode/of
but similarly it does not work on windows yet.

@avilleret
Copy link
Collaborator

https://github.com/ofnode/of used to work on Windows, but I didn't test it.
The main issue I think is to install all dependencies.
After that, the following command lines is enough :

mkdir build
cd build
cmake .. -G Ninja
ninja

Did you try this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants