Ubuntu20.04 编译ogre

一:编译Ogre

sudo apt -y install libgles2-mesa-dev libvulkan-dev 
sudo apt -y install glslang-dev 
sudo apt -y install libsdl2-dev libxt-dev libxaw7-dev doxygen 
sudo apt -y install mercurial 

wget https://codeload.github.com/OGRECave/ogre/zip/refs/tags/v13.4.3 && mv v13.4.3 ogre-13.4.3.zip
unzip -d ogre ogre-13.4.3.zip

cd ogre 

curr_dir=$(pwd)
build_dir=build_v13-4-3

rm -r $build_dir
mkdir $build_dir

#cp ../3rd/freetype-2.12.1.tar.gz ./$build_dir/
#cp ../3rd/3.24.tar.gz ./$build_dir/
#cp ../3rd/pugixml-1.12.tar.gz ./$build_dir/
#cp ../3rd/imgui.tar.gz ./$build_dir/


cd $build_dir

#tar -xvf pugixml-1.12.tar.gz
#tar -xvf imgui.tar.gz
#tar -xvf freetype-2.12.1.tar.gz
#tar -xvf 3.24.tar.gz

cmake ../

make -j8

你可能感兴趣的:(三维引擎专栏,ogre,游戏引擎)