我想用cmake在debian jessie(8.0)上编译box2d。 我遵循Readme.txt和Building.txt文件的每一步,但它没有编译。
$git clone https://github.com/erincatto/Box2D.git
然后我完成了Building.txt告诉我的事情:
$cd Box2D/Build
cmake -DBOX2D_INSTALL=ON -DBOX2D_BUILD_SHARED=ON ..
make
make install
现在我得到的是:
[...]
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libGL.so
You have called ADD_LIBRARY for library glfw without any source files. This typically indicates a problem with your CMakeLists.txt file
-- Configuring done
CMake Error at Testbed/CMakeLists.txt:84 (add_executable):
Cannot find source file:
Framework/imgui.h
Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
.hxx .in .txx
CMake Error: Cannot determine link language for target "glfw".
CMake Error: CMake can not determine linker language for target: glfw
-- Generating done
-- Build files have been written to: /home/stuv/mywork/programming/c/lib/Box2D/Box2D/Build
我希望有人可以帮助我。