TcT2k / HLMWadExplorer

Small tool to edit resources in Hotline Miami 2
GNU General Public License v3.0
62 stars 15 forks source link

Failed to build on Linux #1

Closed xDShot closed 9 years ago

xDShot commented 9 years ago

I use Manjaro Linux x64 (Arch Linux derivative distro). wxgtk package is installed on system.

Since the build instructions were not provided, I tried in this way (it is possible that I am doing something wrong) :

[xdshot@lenovo-pc ~]$ git clone https://github.com/TcT2k/HLMWadExplorer.git Cloning into 'HLMWadExplorer'... remote: Counting objects: 164, done. remote: Compressing objects: 100% (93/93), done. remote: Total 164 (delta 105), reused 127 (delta 68), pack-reused 0 Receiving objects: 100% (164/164), 249.37 KiB | 189.00 KiB/s, done. Resolving deltas: 100% (105/105), done. Checking connectivity... done. [xdshot@lenovo-pc ~]$ cd HLMWadExplorer/ [xdshot@lenovo-pc HLMWadExplorer]$ cmake . -- The C compiler identification is GNU 4.9.2 -- The CXX compiler identification is GNU 4.9.2 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found wxWidgets: TRUE
-- Configuring done -- Generating done -- Build files have been written to: /home/xdshot/HLMWadExplorer [xdshot@lenovo-pc HLMWadExplorer]$ make Scanning dependencies of target HLMWADExplorer [ 16%] Building CXX object CMakeFiles/HLMWADExplorer.dir/App.cpp.o [ 33%] Building CXX object CMakeFiles/HLMWADExplorer.dir/ExploreFrame.cpp.o /home/xdshot/HLMWadExplorer/ExploreFrame.cpp: In member function ‘virtual void FileDataModel::GetValueByRow(wxVariant&, unsigned int, unsigned int) const’: /home/xdshot/HLMWadExplorer/ExploreFrame.cpp:67:63: error: call of overloaded ‘GetHumanReadableSize(wxInt64)’ is ambiguous variant = wxFileName::GetHumanReadableSize(entry.GetSize()); ^ /home/xdshot/HLMWadExplorer/ExploreFrame.cpp:67:63: note: candidates are: In file included from /usr/include/wx-3.0/wx/filesys.h:26:0, from /usr/include/wx-3.0/wx/xrc/xmlres.h:23, from /home/xdshot/HLMWadExplorer/HLMWADFrames.h:12, from /home/xdshot/HLMWadExplorer/ExploreFrame.h:16, from /home/xdshot/HLMWadExplorer/ExploreFrame.cpp:9: /usr/include/wx-3.0/wx/filename.h:586:5: note: wxString wxFileName::GetHumanReadableSize(const wxString&, int, wxSizeConvention) const GetHumanReadableSize(const wxString& nullsize = wxGetTranslation("Not available"), ^ /usr/include/wx-3.0/wx/filename.h:590:5: note: static wxString wxFileName::GetHumanReadableSize(const wxULongLong&, const wxString&, int, wxSizeConvention) GetHumanReadableSize(const wxULongLong& sz, ^ /home/xdshot/HLMWadExplorer/ExploreFrame.cpp: In member function ‘virtual void ExploreFrame::OnExtractClicked(wxCommandEvent&)’: /home/xdshot/HLMWadExplorer/ExploreFrame.cpp:263:14: error: ‘it’ does not name a type for (auto it = selectedItems.begin(); it != selectedItems.end(); ++it) ^ /home/xdshot/HLMWadExplorer/ExploreFrame.cpp:263:42: error: expected ‘;’ before ‘it’ for (auto it = selectedItems.begin(); it != selectedItems.end(); ++it) ^ /home/xdshot/HLMWadExplorer/ExploreFrame.cpp:263:42: error: ‘it’ was not declared in this scope /home/xdshot/HLMWadExplorer/ExploreFrame.cpp: In member function ‘virtual void ExploreFrame::OnPatchCreateClicked(wxCommandEvent&)’: /home/xdshot/HLMWadExplorer/ExploreFrame.cpp:482:14: error: ‘it’ does not name a type for (auto it = m_patchEntries.begin(); it != m_patchEntries.end(); ++it) ^ /home/xdshot/HLMWadExplorer/ExploreFrame.cpp:482:43: error: expected ‘;’ before ‘it’ for (auto it = m_patchEntries.begin(); it != m_patchEntries.end(); ++it) ^ /home/xdshot/HLMWadExplorer/ExploreFrame.cpp:482:43: error: ‘it’ was not declared in this scope CMakeFiles/HLMWADExplorer.dir/build.make:77: recipe for target 'CMakeFiles/HLMWADExplorer.dir/ExploreFrame.cpp.o' failed make[2]: * [CMakeFiles/HLMWADExplorer.dir/ExploreFrame.cpp.o] Error 1 CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/HLMWADExplorer.dir/all' failed make[1]: * [CMakeFiles/HLMWADExplorer.dir/all] Error 2 Makefile:76: recipe for target 'all' failed make: *\ [all] Error 2 [xdshot@lenovo-pc HLMWadExplorer]$

TcT2k commented 9 years ago

Give the latest commit a try there where some compiler flags missing for building on linux.

xDShot commented 9 years ago

Now it works. Thank you :) _2015-03-15_13-46-50