• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Compiling RME Compiling - CMAKE - Could Not find OpenGL (missing: OPENGL_INCLUDE_DIR )

Snavy

Bakasta
Senator
Joined
Apr 1, 2012
Messages
1,249
Solutions
71
Reaction score
621
Location
Hell
I have tried to compile RME by HJNilsson on MAC, OS X, Mojave 10.14.


I got the following error :
Code:
$ cmake .. && make -j4


CMake Error at /usr/local/Cellar/cmake/3.12.1/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find OpenGL (missing: OPENGL_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/local/Cellar/cmake/3.12.1/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  /usr/local/Cellar/cmake/3.12.1/share/cmake/Modules/FindOpenGL.cmake:395 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:15 (find_package)


-- Configuring incomplete, errors occurred!
See also "/Users/nedimkanat/rme/build/CMakeFiles/CMakeOutput.log".
See also "/Users/nedimkanat/rme/build/CMakeFiles/CMakeError.log".

what can be done in order to fix the problem ?


UPDATE

Found the headers for OpenGL in the following path:
Code:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/

Currently having the following error:
Code:
CMake Error at /usr/local/Cellar/cmake/3.12.1/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find wxWidgets (missing: wxWidgets_LIBRARIES
  wxWidgets_INCLUDE_DIRS)
Call Stack (most recent call first):
  /usr/local/Cellar/cmake/3.12.1/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  /usr/local/Cellar/cmake/3.12.1/share/cmake/Modules/FindwxWidgets.cmake:963 (find_package_handle_standard_args)
  CMakeLists.txt:27 (find_package)


-- Configuring incomplete, errors occurred!
See also "/Users/nedimkanat/rme/build/CMakeFiles/CMakeOutput.log".
See also "/Users/nedimkanat/rme/build/CMakeFiles/CMakeError.log".


UPDATE

Installed wXWidget libraries

now got an error about GLUT

Code:
CMake Error at /usr/local/Cellar/cmake/3.12.1/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find GLUT (missing: GLUT_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/local/Cellar/cmake/3.12.1/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  /usr/local/Cellar/cmake/3.12.1/share/cmake/Modules/FindGLUT.cmake:116 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:29 (find_package)


-- Configuring incomplete, errors occurred!
See also "/Users/nedimkanat/rme/build/CMakeFiles/CMakeOutput.log".
See also "/Users/nedimkanat/rme/build/CMakeFiles/CMakeError.log".


UPDATE

Currently compiling RME, found the headers of GLUT in
Code:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/GLUT.framework/Headers

UPDATE

compile almost finished, got a linking error

Code:
...

[ 98%] Building CXX object CMakeFiles/rme.dir/source/json/json_spirit_writer.cpp.o
1 warning generated.
1 warning generated.
[100%] Linking CXX executable rme

Undefined symbols for architecture x86_64:
  "wxAuiManager::SavePaneInfo(wxAuiPaneInfo&)", referenced from:
      GUI::SavePerspective() in gui.cpp.o
  "wxBaseArrayInt::wxBaseArrayInt()", referenced from:
      wxListBox::wxListBox(wxWindow*, int, wxPoint const&, wxSize const&, int, wxString const*, long, wxValidator const&, wxString const&) in common_windows.cpp.o
      wxTextAttr::wxTextAttr() in common_windows.cpp.o
      wxTextAttr::wxTextAttr() in dat_debug_view.cpp.o
      wxTextAttr::wxTextAttr() in find_item_window.cpp.o
      wxListBox::wxListBox(wxWindow*, int, wxPoint const&, wxSize const&, int, wxString const*, long, wxValidator const&, wxString const&) in gui.cpp.o
      wxTextAttr::wxTextAttr() in gui.cpp.o
      wxGrid::wxGrid(wxWindow*, int, wxPoint const&, wxSize const&, long, wxString const&) in live_tab.cpp.o
      ...
  "wxBaseArrayInt::~wxBaseArrayInt()", referenced from:
      AboutWindow::AboutWindow(wxWindow*) in about_window.cpp.o
      wxFileDialogBase::wxFileDialogBase() in application.cpp.o
      BrowseTileWindow::BrowseTileWindow(wxWindow*, Tile*, wxPoint) in browse_tile_window.cpp.o
      ClientVersion::loadValidPaths() in client_version.cpp.o
      MapPropertiesWindow::MapPropertiesWindow(wxWindow*, MapTab*, Editor&) in common_windows.cpp.o
      ImportMapWindow::ImportMapWindow(wxWindow*, Editor&) in common_windows.cpp.o
      ExportMiniMapWindow::OnClickBrowse(wxCommandEvent&) in common_windows.cpp.o
      ...
  "wxStaticBoxSizer::RecalcSizes()", referenced from:
      vtable for PositionCtrl in positionctrl.cpp.o
  "wxBaseArrayPtrVoid::Add(void const*, unsigned long)", referenced from:
      SortableListBox::DoSort() in common_windows.cpp.o
  "wxBaseArrayPtrVoid::Clear()", referenced from:
      wxBookCtrlBase::DeleteAllPages() in editor_tabs.cpp.o
      wxBookCtrlBase::DeleteAllPages() in palette_brushlist.cpp.o
      wxBookCtrlBase::DeleteAllPages() in palette_window.cpp.o
  "wxBaseArrayPtrVoid::wxBaseArrayPtrVoid()", referenced from:
      wxAuiPaneInfo::wxAuiPaneInfo() in application.cpp.o
      wxAuiPaneInfo::wxAuiPaneInfo(wxAuiPaneInfo const&) in application.cpp.o
      wxListBox::wxListBox(wxWindow*, int, wxPoint const&, wxSize const&, int, wxString const*, long, wxValidator const&, wxString const&) in common_windows.cpp.o
      SortableListBox::DoSort() in common_windows.cpp.o
      wxChoice::wxChoice(wxWindow*, int, wxPoint const&, wxSize const&, int, wxString const*, long, wxValidator const&, wxString const&) in common_windows.cpp.o
      wxChoice::wxChoice(wxWindow*, int, wxPoint const&, wxSize const&, wxArrayString const&, long, wxValidator const&, wxString const&) in common_windows.cpp.o
      wxBookCtrlBase::wxBookCtrlBase() in editor_tabs.cpp.o
      ...
  "wxBaseArrayPtrVoid::~wxBaseArrayPtrVoid()", referenced from:
      wxListBox::wxListBox(wxWindow*, int, wxPoint const&, wxSize const&, int, wxString const*, long, wxValidator const&, wxString const&) in common_windows.cpp.o
      SortableListBox::DoSort() in common_windows.cpp.o
      wxChoice::wxChoice(wxWindow*, int, wxPoint const&, wxSize const&, int, wxString const*, long, wxValidator const&, wxString const&) in common_windows.cpp.o
      wxChoice::wxChoice(wxWindow*, int, wxPoint const&, wxSize const&, wxArrayString const&, long, wxValidator const&, wxString const&) in common_windows.cpp.o
      wxAuiNotebook::wxAuiNotebook(wxWindow*, int, wxPoint const&, wxSize const&, long) in editor_tabs.cpp.o
      wxNavigationEnabled<wxBookCtrlBase>::wxNavigationEnabled() in editor_tabs.cpp.o
      wxBookCtrlBase::wxBookCtrlBase() in editor_tabs.cpp.o
      ...
  "wxAuiPaneButtonArray::~wxAuiPaneButtonArray()", referenced from:
      wxAuiPaneInfo::wxAuiPaneInfo() in application.cpp.o
      wxAuiPaneInfo::wxAuiPaneInfo(wxAuiPaneInfo const&) in application.cpp.o
      wxAuiPaneInfo::~wxAuiPaneInfo() in application.cpp.o
      wxAuiPaneInfo::wxAuiPaneInfo(wxAuiPaneInfo const&) in gui.cpp.o
      wxAuiPaneInfo::wxAuiPaneInfo() in gui.cpp.o
      wxAuiPaneInfo::~wxAuiPaneInfo() in gui.cpp.o
  "wxAuiPaneButtonArray::operator=(wxAuiPaneButtonArray const&)", referenced from:
      wxAuiPaneInfo::operator=(wxAuiPaneInfo const&) in application.cpp.o
      wxAuiPaneInfo::wxAuiPaneInfo(wxAuiPaneInfo const&) in application.cpp.o
      wxAuiPaneInfo::operator=(wxAuiPaneInfo const&) in gui.cpp.o
      wxAuiPaneInfo::wxAuiPaneInfo(wxAuiPaneInfo const&) in gui.cpp.o
  "wxFrame::Init()", referenced from:
      MainFrame::MainFrame(wxString const&, wxPoint const&, wxSize const&) in application.cpp.o
  "wxMBConv::~wxMBConv()", referenced from:
      SearchResultWindow::OnClickExport(wxCommandEvent&) in result_window.cpp.o
      Settings::load() in settings.cpp.o
      Settings::save(bool) in settings.cpp.o
  "wxWindow::DragAcceptFiles(bool)", referenced from:
      vtable for AboutWindow in about_window.cpp.o
      vtable for GamePanel in about_window.cpp.o
      vtable for TetrisPanel in about_window.cpp.o
      vtable for SnakePanel in about_window.cpp.o
      vtable for wxNavigationEnabled<wxWindow> in about_window.cpp.o
      vtable for MainFrame in application.cpp.o
      vtable for MapScrollBar in application.cpp.o
      ...
  "wxDisplay::~wxDisplay()", referenced from:
      GUI::LoadPerspective() in gui.cpp.o
  "wxListBoxBase::GetCountPerPage() const", referenced from:
      vtable for SortableListBox in common_windows.cpp.o
  "wxMBConv::cMB2WC(char const*) const", referenced from:
      wxArgNormalizerWchar<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&>::wxArgNormalizerWchar(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, wxFormatString const*, unsigned int) in client_version.cpp.o
  "non-virtual thunk to wxTextCtrl::Cut()", referenced from:
      vtable for KeyForwardingTextCtrl in common_windows.cpp.o
      vtable for NumberTextCtrl in numbertextctrl.cpp.o
  "non-virtual thunk to wxTextCtrl::Copy()", referenced from:
      vtable for KeyForwardingTextCtrl in common_windows.cpp.o
      vtable for NumberTextCtrl in numbertextctrl.cpp.o
  "non-virtual thunk to wxTextCtrl::Paste()", referenced from:
      vtable for KeyForwardingTextCtrl in common_windows.cpp.o
      vtable for NumberTextCtrl in numbertextctrl.cpp.o
  "non-virtual thunk to wxGrid::GetSizeAvailableForScrollTarget(wxSize const&)", referenced from:
      vtable for myGrid in live_tab.cpp.o
  "non-virtual thunk to wxVListBox::OnGetRowHeight(unsigned long) const", referenced from:
      vtable for BrowseTileListBox in browse_tile_window.cpp.o
      vtable for FindDialogListBox in common_windows.cpp.o
      vtable for DatDebugViewListBox in dat_debug_view.cpp.o
      vtable for BrushListBox in palette_brushlist.cpp.o
  "non-virtual thunk to wxListBoxBase::SetSelection(int)", referenced from:
      vtable for SortableListBox in common_windows.cpp.o
  "non-virtual thunk to wxTextCtrlBase::overflow(int)", referenced from:
      vtable for KeyForwardingTextCtrl in common_windows.cpp.o
      vtable for NumberTextCtrl in numbertextctrl.cpp.o
  "non-virtual thunk to wxListBox::DoInsertItems(wxArrayStringsAdapter const&, unsigned int, void**, wxClientDataType)", referenced from:
      vtable for SortableListBox in common_windows.cpp.o
  "non-virtual thunk to wxListBox::DoDeleteOneItem(unsigned int)", referenced from:
      vtable for SortableListBox in common_windows.cpp.o
  "non-virtual thunk to wxListBox::DoSetItemClientData(unsigned int, void*)", referenced from:
      vtable for SortableListBox in common_windows.cpp.o
  "non-virtual thunk to wxListBox::DoClear()", referenced from:
      vtable for SortableListBox in common_windows.cpp.o
  "non-virtual thunk to wxListBox::SetString(unsigned int, wxString const&)", referenced from:
      vtable for SortableListBox in common_windows.cpp.o
  "non-virtual thunk to wxListBox::FindString(wxString const&, bool) const", referenced from:
      vtable for SortableListBox in common_windows.cpp.o
  "non-virtual thunk to wxListBox::GetSelection() const", referenced from:
      vtable for SortableListBox in common_windows.cpp.o
  "non-virtual thunk to wxListBox::DoGetItemClientData(unsigned int) const", referenced from:
      vtable for SortableListBox in common_windows.cpp.o
  "non-virtual thunk to wxListBox::GetCount() const", referenced from:
      vtable for SortableListBox in common_windows.cpp.o
  "non-virtual thunk to wxListBox::GetString(unsigned int) const", referenced from:
      vtable for SortableListBox in common_windows.cpp.o
  "non-virtual thunk to wxTextCtrl::DiscardEdits()", referenced from:
      vtable for KeyForwardingTextCtrl in common_windows.cpp.o
      vtable for NumberTextCtrl in numbertextctrl.cpp.o
  "non-virtual thunk to wxTextCtrl::ShowPosition(long)", referenced from:
      vtable for KeyForwardingTextCtrl in common_windows.cpp.o
      vtable for NumberTextCtrl in numbertextctrl.cpp.o
  "non-virtual thunk to wxTextCtrl::SetDefaultStyle(wxTextAttr const&)", referenced from:
      vtable for KeyForwardingTextCtrl in common_windows.cpp.o
      vtable for NumberTextCtrl in numbertextctrl.cpp.o
  "non-virtual thunk to wxTextCtrl::GetStyle(long, wxTextAttr&)", referenced from:
      vtable for KeyForwardingTextCtrl in common_windows.cpp.o
      vtable for NumberTextCtrl in numbertextctrl.cpp.o
  "non-virtual thunk to wxTextCtrl::SetStyle(long, long, wxTextAttr const&)", referenced from:
      vtable for KeyForwardingTextCtrl in common_windows.cpp.o
      vtable for NumberTextCtrl in numbertextctrl.cpp.o
  "non-virtual thunk to wxTextCtrl::MarkDirty()", referenced from:
      vtable for KeyForwardingTextCtrl in common_windows.cpp.o
      vtable for NumberTextCtrl in numbertextctrl.cpp.o
  "non-virtual thunk to wxTextCtrl::IsModified() const", referenced from:
      vtable for KeyForwardingTextCtrl in common_windows.cpp.o
      vtable for NumberTextCtrl in numbertextctrl.cpp.o
  "non-virtual thunk to wxTextCtrl::GetLineText(long) const", referenced from:
      vtable for KeyForwardingTextCtrl in common_windows.cpp.o
      vtable for NumberTextCtrl in numbertextctrl.cpp.o
  "non-virtual thunk to wxTextCtrl::PositionToXY(long, long*, long*) const", referenced from:
      vtable for KeyForwardingTextCtrl in common_windows.cpp.o
      vtable for NumberTextCtrl in numbertextctrl.cpp.o
  "non-virtual thunk to wxTextCtrl::XYToPosition(long, long) const", referenced from:
      vtable for KeyForwardingTextCtrl in common_windows.cpp.o
      vtable for NumberTextCtrl in numbertextctrl.cpp.o
  "non-virtual thunk to wxTextCtrl::GetLineLength(long) const", referenced from:
      vtable for KeyForwardingTextCtrl in common_windows.cpp.o
      vtable for NumberTextCtrl in numbertextctrl.cpp.o
  "non-virtual thunk to wxTextCtrl::GetNumberOfLines() const", referenced from:
      vtable for KeyForwardingTextCtrl in common_windows.cpp.o
      vtable for NumberTextCtrl in numbertextctrl.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [rme] Error 1
make[1]: *** [CMakeFiles/rme.dir/all] Error 2
make: *** [all] Error 2
 
Last edited:
Back
Top