Page 1 of 1
Error when compiling openmw
Posted: 05 Jun 2018, 17:08
by nullifiedcat
I tried to set up development environment for openmw: installed dependencies, cloned the repository and started building. But the building fails with this error:
-
Spoiler: Show
Code: Select all
[ 1%] Built target osgQt
[ 1%] Built target osg-ffmpeg-videoplayer
[ 1%] Built target local_tinyxml
-- OpenMW version 0.43.0
[ 2%] Built target oics
[ 2%] Built target git-version
[ 24%] Built target components
[ 24%] Generating moc_maindialog.cxx
/usr/include/boost/predef/os/windows.h:52: Parse error at "defined"
apps/launcher/CMakeFiles/openmw-launcher.dir/build.make:94: recipe for target 'apps/launcher/moc_maindialog.cxx' failed
make[2]: *** [apps/launcher/moc_maindialog.cxx] Error 1
CMakeFiles/Makefile2:666: recipe for target 'apps/launcher/CMakeFiles/openmw-launcher.dir/all' failed
make[1]: *** [apps/launcher/CMakeFiles/openmw-launcher.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 24%] Built target bsatool
[ 25%] Built target esmtool
[ 47%] Built target openmw
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
Building on Ubuntu 17.10 with gcc 7.2.0.
Re: Error when compiling openmw
Posted: 05 Jun 2018, 17:32
by lysol
Just to be super-sure of the steps you took when building:
Did you go with this, more or less?
Code: Select all
git clone git://github.com/OpenMW/openmw.git (or some non-merged branch)
cd openmw
mkdir build
cd build
cmake ../
make -j`getconf _NPROCESSORS_ONLN` (if you have multi-core that is)