Hi, I'm new to Box2D and to CMake. I found out about Box2d and followed the instructions for installing it and everything; but during the process of using CMake I got a warning that I should add some code to CMakeLists.txt, and that (i think it meant this) it failed to make some libraries for Box2D. I it did succeed in making some of the files necessary, so I decided to give continuing a whirl, but these libraries are crucial. It was a forlorn hope. Anyways, I search Google and couldn't find anything that seemed relevant. Here is the entire output from CMake:
I'm not sure it was is all necessary. If you think you know what the problem is and how to fix it, I would really appreciate the help!!
Code:
Configuring done
CMake Warning (dev) at Testbed/CMakeLists.txt:70 (add_executable):
Policy CMP0003 should be set before this line. Add code such as
if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW)
endif(COMMAND cmake_policy)
as early as possible but after the most recent call to
cmake_minimum_required or cmake_policy(VERSION). This warning appears
because target "Testbed" links to some libraries for which the linker must
search:
GL, GLU, GLUT, X11
and other libraries with known full path:
/Applications/iPlatformer/Box2D_v2.1.2/Box2D/Build/Box2D/libBox2D.a
/Applications/iPlatformer/Box2D_v2.1.2/Box2D/Build/freeglut/libfreeglut_static.a
/Applications/iPlatformer/Box2D_v2.1.2/Box2D/Build/glui/libglui.a
CMake is adding directories in the second list to the linker search path in
case they are needed to find libraries from the first list (for backwards
compatibility with CMake 2.4). Set policy CMP0003 to OLD or NEW to enable
or disable this behavior explicitly. Run "cmake --help-policy CMP0003" for
more information.
This warning is for project developers. Use -Wno-dev to suppress it.
Generating done
CMake Warning (dev) at Testbed/CMakeLists.txt:70 (add_executable):
Policy CMP0003 should be set before this line. Add code such as
if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW)
endif(COMMAND cmake_policy)
as early as possible but after the most recent call to
cmake_minimum_required or cmake_policy(VERSION). This warning appears
because target "Testbed" links to some libraries for which the linker must
search:
GL, GLU, GLUT, X11
and other libraries with known full path:
/Applications/iPlatformer/Box2D_v2.1.2/Box2D/Build/Box2D/libBox2D.a
/Applications/iPlatformer/Box2D_v2.1.2/Box2D/Build/freeglut/libfreeglut_static.a
/Applications/iPlatformer/Box2D_v2.1.2/Box2D/Build/glui/libglui.a
CMake is adding directories in the second list to the linker search path in
case they are needed to find libraries from the first list (for backwards
compatibility with CMake 2.4). Set policy CMP0003 to OLD or NEW to enable
or disable this behavior explicitly. Run "cmake --help-policy CMP0003" for
more information.
This warning is for project developers. Use -Wno-dev to suppress it.
Generating done
I'm not sure it was is all necessary. If you think you know what the problem is and how to fix it, I would really appreciate the help!!