CMake on Mac errors

Report any bugs here and we'll post fixes

Moderators: Sascha Willems, Thomas

CMake on Mac errors

Postby Bird » Sat Apr 09, 2016 3:51 pm

I'm using the latest Newton version on Github, the latest CMake 3.5.1, XCode 7.2 and OSX El Capitan 10.11.4 and can't get CMake to create the XCode project.

I don't use CMake much. Can someone please tell me what to do in order to create an XCode project?
Here's the error log:

The C compiler identification is AppleClang 7.0.2.7000181
The CXX compiler identification is AppleClang 7.0.2.7000181
Check for working C compiler using: Xcode
Check for working C compiler using: Xcode -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Detecting C compile features
Detecting C compile features - done
Check for working CXX compiler using: Xcode
Check for working CXX compiler using: Xcode -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Detecting CXX compile features
Detecting CXX compile features - done
Check size of void*
Check size of void* - done
Could NOT find ENet (missing: ENet_LIBRARY ENet_INCLUDE_DIRS)
CMake Error at /Applications/CMake.app/Contents/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
Could NOT find wxWidgets (missing: wxWidgets_LIBRARIES
wxWidgets_INCLUDE_DIRS)
Call Stack (most recent call first):
/Applications/CMake.app/Contents/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
/Applications/CMake.app/Contents/share/cmake-3.5/Modules/FindwxWidgets.cmake:887 (find_package_handle_standard_args)
applications/demosSandbox/CMakeLists.txt:33 (find_package)


CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
ENet_INCLUDE_DIRS (ADVANCED)
used as include directory in directory /Users/apple/Code4/external/newton-dynamics/packages
used as include directory in directory /Users/apple/Code4/external/newton-dynamics/packages
used as include directory in directory /Users/apple/Code4/external/newton-dynamics/packages
used as include directory in directory /Users/apple/Code4/external/newton-dynamics/packages
used as include directory in directory /Users/apple/Code4/external/newton-dynamics/packages
used as include directory in directory /Users/apple/Code4/external/newton-dynamics/packages
used as include directory in directory /Users/apple/Code4/external/newton-dynamics/packages
ENet_LIBRARY (ADVANCED)
linked by target "dVisualDebuggerServer" in directory /Users/apple/Code4/external/newton-dynamics/packages

Configuring incomplete, errors occurred!
See also "/Users/apple/Code4/external/newton-dynamics/build/CMakeFiles/CMakeOutput.log".
Bird
 
Posts: 623
Joined: Tue Nov 22, 2011 1:27 am

Re: CMake on Mac errors

Postby Bird » Sat Apr 09, 2016 4:05 pm

And if I try to create just the coreLibrary_300 project, I get these errors

The C compiler identification is AppleClang 7.0.2.7000181
The CXX compiler identification is AppleClang 7.0.2.7000181
Check for working C compiler using: Xcode
Check for working C compiler using: Xcode -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Detecting C compile features
Detecting C compile features - done
Check for working CXX compiler using: Xcode
Check for working CXX compiler using: Xcode -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Detecting CXX compile features
Detecting CXX compile features - done
CMake Warning (dev) at CMakeLists.txt:44 (get_target_property):
Policy CMP0045 is not set: Error on non-existent target in
get_target_property. Run "cmake --help-policy CMP0045" for policy details.
Use the cmake_policy command to set the policy and suppress this warning.

get_target_property() called with non-existent target "timeTracker".
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
/Users/apple/Code4/external/newton-dynamics/coreLibrary_300/TIMETRACKER_INCLUDE
used as include directory in directory /Users/apple/Code4/external/newton-dynamics/coreLibrary_300

Configuring incomplete, errors occurred!
See also "/Users/apple/Code4/external/newton-dynamics/coreLibrary_300/build/CMakeFiles/CMakeOutput.log".
Bird
 
Posts: 623
Joined: Tue Nov 22, 2011 1:27 am

Re: CMake on Mac errors

Postby Shaderman » Sun Apr 10, 2016 12:03 pm

I can't help you with CMake, but I was able to build the coreLibrary_300 with the os10.8-xcode-4.0 project using XCode 7.1 on a El Capitan 10.11.2 Mac.

Did you try building the latest os10.8-xcode-4.0 project? I assume some new files need to be added to the project, but I guess it should at least build for you as is and you could build on that.
Shaderman
 
Posts: 66
Joined: Tue Mar 08, 2016 2:51 am

Re: CMake on Mac errors

Postby Bird » Sun Apr 10, 2016 6:05 pm

Did you try building the latest os10.8-xcode-4.0 project? I assume some new files need to be added to the project, but I guess it should at least build for you as is and you could build on that.


Yes, that works for me too.. thanks for the suggestion. It would be nice if CMake worked out of the box though.

-Bird
Bird
 
Posts: 623
Joined: Tue Nov 22, 2011 1:27 am


Return to Bugs and Fixes

Who is online

Users browsing this forum: No registered users and 4 guests