我正在尝试编译OgreMeashy并根据编译指令
Compiling under Linux:
======================
You'll need CMake www.cmake.org You can get an explanation of how CMake works here http://www.ogre3d.org/tikiwiki/Getting+started+with+CMake
You'll need wxWidgets 2.8 or higher
You'll need dev OGRE installed in your system
You'll need OpenGL dev libraries (they usually come with Mesa or X11)
sudo apt-get install libwxgtk2.8-dev libwxgtk2.8-dbg libgtk2.0-dev
Note: If you're using Ogre 1.8 or lower instead of 1.9; overwrite rename 'CMakeLists.old.1.8.txt' as 'CMakeLists.txt'
Copy all necessary Resources files to folder bin/Release_Linux/Resources; the following script will do that for you:
cd scripts/Resources
sh copyresources.sh
Create your binary output folder with CMake at %OgreMeshyFolder%/build
Go to that folder and type from command line:
cd build
make all
我只是做了mkdir build
,cd build
,cmake ..
make all
,但是我遇到了错误
In file included from /home/slobodan/dark_sylinc-ogremeshy-2110b963ee28/src/Core/AnimationPanel.cpp:19:0:
/home/slobodan/dark_sylinc-ogremeshy-2110b963ee28/./include/Core/AnimationPanel.h:28:31: fatal error: OgrePrerequisites.h: No such file or directory
compilation terminated.
编辑:我在/ usr / include / OGRE /
下有OgrePrerequisites.hEdit2:一位开发人员告诉我,我需要在OGRE中设置正确的路径。c将此路径设为
# Guess the paths.
set( OGRE_SOURCE "${CMAKE_CURRENT_SOURCE_DIR}/Dependencies/Ogre" CACHE STRING "Path to OGRE source code (see http://www.ogre3d.org/tikiwiki/tiki-index.php?page=CMake+Quick+Start+Guide)" )
if( WIN32 )
set( OGRE_BINARIES "${OGRE_SOURCE}/build" CACHE STRING "Path to OGRE's build folder generated by CMake" )
link_directories( "${OGRE_BINARIES}/lib/$(ConfigurationName)" )
else()
set( OGRE_BINARIES "${OGRE_SOURCE}/build/${CMAKE_BUILD_TYPE}" CACHE STRING "Path to OGRE's build folder generated by CMake" )
link_directories( "${OGRE_BINARIES}/lib" )
endif()
但是我不知道该如何改变或改变什么?