Я пытаюсь скомпилировать 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.
Редактировать: у меня есть OgrePrerequisites.h в / usr / include / OGRE /
Edit2: Один разработчик сказал мне, что мне нужно установить правильный путь в OGRE.cmake thisпуть
# 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()
Но я не знаю, как или что изменить?