hiwyn
Member
- Joined
- Aug 30, 2021
- Messages
- 78
- Reaction score
- 8
i've install
sudo apt-get install git cmake libboost-system-dev libboost-thread-dev libglu1-mesa-dev libwxgtk3.0-gtk3-dev libarchive-dev freeglut3-dev libxmu-dev libxi-dev
but when i try to run:
it stops on this error:
is this something wrong on the code or on my SO?
what should i do?
sudo apt-get install git cmake libboost-system-dev libboost-thread-dev libglu1-mesa-dev libwxgtk3.0-gtk3-dev libarchive-dev freeglut3-dev libxmu-dev libxi-dev
Code:
sudo apt-get install git cmake libboost-system-dev libboost-thread-dev libglu1-mesa-dev libwxgtk3.0-gtk3-dev libarchive-dev freeglut3-dev libxmu-dev libxi-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libboost-system-dev is already the newest version (1.74.0.3).
libboost-thread-dev is already the newest version (1.74.0.3).
cmake is already the newest version (3.18.4-2).
freeglut3-dev is already the newest version (2.8.1-6).
git is already the newest version (1:2.30.2-1).
libarchive-dev is already the newest version (3.4.3-2+b1).
libglu1-mesa-dev is already the newest version (9.0.1-1).
libxi-dev is already the newest version (2:1.7.10-1).
libxmu-dev is already the newest version (2:1.1.2-2+b3).
libwxgtk3.0-gtk3-dev is already the newest version (3.0.5.1+dfsg-2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
but when i try to run:
Code:
mkdir rme/build && cd rme/build && cmake .. && make -j `nproc`
it stops on this error:
Code:
[ 32%] Building CXX object CMakeFiles/rme.dir/source/ground_brush.cpp.o
[ 33%] Building CXX object CMakeFiles/rme.dir/source/gui.cpp.o
[ 34%] Building CXX object CMakeFiles/rme.dir/source/house_brush.cpp.o
/home/hiwyn/Documents/rme/source/gui.cpp: In static member function ‘static wxString GUI::GetDataDirectory()’:
/home/hiwyn/Documents/rme/source/gui.cpp:142:13: warning: catching polymorphic type ‘class std::bad_cast’ by value [-Wcatch-value=]
142 | catch(std::bad_cast)
| ^~~~~~~~
/home/hiwyn/Documents/rme/source/gui.cpp: In static member function ‘static wxString GUI::GetExecDirectory()’:
/home/hiwyn/Documents/rme/source/gui.cpp:159:13: warning: catching polymorphic type ‘class std::bad_cast’ by value [-Wcatch-value=]
159 | catch(std::bad_cast)
| ^~~~~~~~
/home/hiwyn/Documents/rme/source/gui.cpp: In member function ‘void GUI::ShowWelcomeDialog(const wxBitmap&)’:
/home/hiwyn/Documents/rme/source/gui.cpp:1186:106: error: ‘class MainFrame’ has no member named ‘FromDIP’
1186 | welcomeDialog = newd WelcomeDialog(__W_RME_APPLICATION_NAME__, "Version " + __W_RME_VERSION__, root->FromDIP(wxSize(800, 480)), icon, recent_files);
| ^~~~~~~
make[2]: *** [CMakeFiles/rme.dir/build.make:485: CMakeFiles/rme.dir/source/gui.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/Makefile2:95: CMakeFiles/rme.dir/all] Error 2
make: *** [Makefile:103: all] Error 2
is this something wrong on the code or on my SO?
what should i do?