Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to Build in Linux
Author Message
josefnpat Offline
Junior Member
**

Posts: 3
Joined: May 2012
Reputation: 0
Post: #1
Information How to Build in Linux
Hey, I am a indie game developer, and I saw this post on reddit. I was wondering if anyone successfully compiled Tiggit on a linux box?

This is as far as I've gotten:

Code:
[Tiggit]$ g++ tiggit.cpp -o tiggit
tiggit.cpp:3:19: fatal error: wx/wx.h: No such file or directory
compilation terminated.
05-04-2012 09:39 AM
Find all posts by this user Quote this message in a reply
nico Offline
Administrator
*******

Posts: 115
Joined: Apr 2012
Reputation: 0
Post: #2
RE: How to Build in Linux
Hey! You are welcome to compile on linux, but don't expect any of the games to work yet Smile

We're focusing on windows at the moment, Linux isn't "officially" supported yet.

The dependencies you need to install are: wxWidgets, libCurl, libzzip, boost, zlib and CMake. Remember to get 'dev' packages to include header files. Also you should preferably be using CMake to build, since it takes care of all the library dirs (and alerts you of missing dependencies.)

Code:
cmake .
make
05-04-2012 05:45 PM
Find all posts by this user Quote this message in a reply
josefnpat Offline
Junior Member
**

Posts: 3
Joined: May 2012
Reputation: 0
Post: #3
RE: How to Build in Linux
(05-04-2012 05:45 PM)nico Wrote:  Hey! You are welcome to compile on linux, but don't expect any of the games to work yet Smile

We're focusing on windows at the moment, Linux isn't "officially" supported yet.

The dependencies you need to install are: wxWidgets, libCurl, libzzip, boost, zlib and CMake. Remember to get 'dev' packages to include header files. Also you should preferably be using CMake to build, since it takes care of all the library dirs (and alerts you of missing dependencies.)

Code:
cmake .
make

I installed the following libraries from your latest commit;
Code:
sudo apt-get install libwxgtk2.6-* libcurl3 libzzip-* boost-build zlib1g* cmake
I did a cmake, and that works. But the make fails:

Code:
[Tiggit]$ make
[ 33%] Built target fix_json
[ 41%] Building CXX object CMakeFiles/tiggit.dir/tiggit.cpp.o
In file included from /home/seppi/Desktop/git/Tiggit/tiggit.cpp:16:0:
/home/seppi/Desktop/git/Tiggit/repo.hpp: In static member function ‘static void Repository::setupPaths(const std::string&, const std::string&)’:
/home/seppi/Desktop/git/Tiggit/repo.hpp:92:41: error: ‘absolute’ was not declared in this scope
In file included from /home/seppi/Desktop/git/Tiggit/gameinfo.hpp:11:0,
                 from /home/seppi/Desktop/git/Tiggit/json_installed.hpp:13,
                 from /home/seppi/Desktop/git/Tiggit/tiggit.cpp:21:
/home/seppi/Desktop/git/Tiggit/screenshot_loader.hpp: In member function ‘virtual void ScreenshotLoader::executeJob()’:
/home/seppi/Desktop/git/Tiggit/screenshot_loader.hpp:123:32: error: ‘wxIMAGE_QUALITY_HIGH’ was not declared in this scope
In file included from /home/seppi/Desktop/git/Tiggit/auto_update.hpp:6:0,
                 from /home/seppi/Desktop/git/Tiggit/tiggit.cpp:22:
/home/seppi/Desktop/git/Tiggit/progress_holder.hpp: In member function ‘bool ProgressHolder::pulse()’:
/home/seppi/Desktop/git/Tiggit/progress_holder.hpp:41:17: error: ‘class wxProgressDialog’ has no member named ‘Pulse’
In file included from /home/seppi/Desktop/git/Tiggit/tiggit.cpp:22:0:
/home/seppi/Desktop/git/Tiggit/auto_update.hpp: In member function ‘bool Updater::doAutoUpdate(const boost::filesystem::path&)’:
/home/seppi/Desktop/git/Tiggit/auto_update.hpp:94:28: error: ‘wxOS_WINDOWS’ was not declared in this scope
/home/seppi/Desktop/git/Tiggit/auto_update.hpp:159:36: error: ‘struct boost::filesystem::path’ has no member named ‘c_str’
/home/seppi/Desktop/git/Tiggit/auto_update.hpp:261:29: error: no match for ‘operator/’ in ‘up_dest / "tiggit.exe"’
/home/seppi/Desktop/git/Tiggit/auto_update.hpp:265:29: error: no match for ‘operator/’ in ‘up_dest / "version"’
In file included from /home/seppi/Desktop/git/Tiggit/tiggit.cpp:29:0:
/home/seppi/Desktop/git/Tiggit/tabbase.hpp: In member function ‘bool TabBase::selectMe()’:
/home/seppi/Desktop/git/Tiggit/tabbase.hpp:48:15: error: ‘class wxNotebook’ has no member named ‘ChangeSelection’
In file included from /home/seppi/Desktop/git/Tiggit/tiggit.cpp:30:0:
/home/seppi/Desktop/git/Tiggit/newstab.hpp: In member function ‘void NewsTab::onListSelect(wxListEvent&)’:
/home/seppi/Desktop/git/Tiggit/newstab.hpp:324:15: error: ‘class wxTextCtrl’ has no member named ‘ChangeValue’
/home/seppi/Desktop/git/Tiggit/tiggit.cpp: In member function ‘void ListTab::updateGameInfo()’:
/home/seppi/Desktop/git/Tiggit/tiggit.cpp:618:15: error: ‘class wxTextCtrl’ has no member named ‘ChangeValue’
/home/seppi/Desktop/git/Tiggit/tiggit.cpp: In member function ‘void ListTab::doAction(int, int)’:
/home/seppi/Desktop/git/Tiggit/tiggit.cpp:886:36: error: ‘wxOS_WINDOWS’ was not declared in this scope
/home/seppi/Desktop/git/Tiggit/tiggit.cpp:902:52: error: ‘struct boost::filesystem::path’ has no member named ‘c_str’
/home/seppi/Desktop/git/Tiggit/tiggit.cpp:904:49: error: ‘struct boost::filesystem::path’ has no member named ‘c_str’
/home/seppi/Desktop/git/Tiggit/tiggit.cpp:935:57: error: ‘struct boost::filesystem::path’ has no member named ‘c_str’
/home/seppi/Desktop/git/Tiggit/tiggit.cpp: In member function ‘void ListTab::onListRightClick(wxListEvent&)’:
/home/seppi/Desktop/git/Tiggit/tiggit.cpp:1064:28: error: ‘wxOS_WINDOWS’ was not declared in this scope
/home/seppi/Desktop/git/Tiggit/tiggit.cpp: In member function ‘void ListTab::onContextClick(wxCommandEvent&)’:
/home/seppi/Desktop/git/Tiggit/tiggit.cpp:1094:32: error: ‘wxOS_WINDOWS’ was not declared in this scope
/home/seppi/Desktop/git/Tiggit/tiggit.cpp: In member function ‘virtual bool MyApp::OnInit()’:
/home/seppi/Desktop/git/Tiggit/tiggit.cpp:1511:43: error: ‘class wxStandardPathsBase’ has no member named ‘GetExecutablePath’
make[2]: *** [CMakeFiles/tiggit.dir/tiggit.cpp.o] Error 1
make[1]: *** [CMakeFiles/tiggit.dir/all] Error 2
make: *** [all] Error 2

Any suggestions? Thanks so much, this looks like a really cool program.
05-05-2012 03:09 AM
Find all posts by this user Quote this message in a reply
nico Offline
Administrator
*******

Posts: 115
Joined: Apr 2012
Reputation: 0
Post: #4
RE: How to Build in Linux
Hmm, both seem to be library version issues. After a little googling I've inserted a couple of quick fixes that won't affect the result much. Try compiling the latest commit.
05-05-2012 04:14 AM
Find all posts by this user Quote this message in a reply
josefnpat Offline
Junior Member
**

Posts: 3
Joined: May 2012
Reputation: 0
Post: #5
RE: How to Build in Linux
(05-05-2012 04:14 AM)nico Wrote:  Hmm, both seem to be library version issues. After a little googling I've inserted a couple of quick fixes that won't affect the result much. Try compiling the latest commit.

I pulled, unfortunately, it looks like the same error.

Code:
[Tiggit]$ make
[ 33%] Built target fix_json
[ 41%] Building CXX object CMakeFiles/tiggit.dir/tiggit.cpp.o
In file included from /home/seppi/Desktop/git/Tiggit/auto_update.hpp:6:0,
                 from /home/seppi/Desktop/git/Tiggit/tiggit.cpp:22:
/home/seppi/Desktop/git/Tiggit/progress_holder.hpp: In member function ‘bool ProgressHolder::pulse()’:
/home/seppi/Desktop/git/Tiggit/progress_holder.hpp:41:17: error: ‘class wxProgressDialog’ has no member named ‘Pulse’
In file included from /home/seppi/Desktop/git/Tiggit/tiggit.cpp:22:0:
/home/seppi/Desktop/git/Tiggit/auto_update.hpp: In member function ‘bool Updater::doAutoUpdate(const boost::filesystem::path&)’:
/home/seppi/Desktop/git/Tiggit/auto_update.hpp:94:28: error: ‘wxOS_WINDOWS’ was not declared in this scope
/home/seppi/Desktop/git/Tiggit/auto_update.hpp:159:36: error: ‘struct boost::filesystem::path’ has no member named ‘c_str’
/home/seppi/Desktop/git/Tiggit/auto_update.hpp:261:29: error: no match for ‘operator/’ in ‘up_dest / "tiggit.exe"’
/home/seppi/Desktop/git/Tiggit/auto_update.hpp:265:29: error: no match for ‘operator/’ in ‘up_dest / "version"’
In file included from /home/seppi/Desktop/git/Tiggit/tiggit.cpp:29:0:
/home/seppi/Desktop/git/Tiggit/tabbase.hpp: In member function ‘bool TabBase::selectMe()’:
/home/seppi/Desktop/git/Tiggit/tabbase.hpp:48:15: error: ‘class wxNotebook’ has no member named ‘ChangeSelection’
In file included from /home/seppi/Desktop/git/Tiggit/tiggit.cpp:30:0:
/home/seppi/Desktop/git/Tiggit/newstab.hpp: In member function ‘void NewsTab::onListSelect(wxListEvent&)’:
/home/seppi/Desktop/git/Tiggit/newstab.hpp:324:15: error: ‘class wxTextCtrl’ has no member named ‘ChangeValue’
/home/seppi/Desktop/git/Tiggit/tiggit.cpp: In member function ‘void ListTab::updateGameInfo()’:
/home/seppi/Desktop/git/Tiggit/tiggit.cpp:623:15: error: ‘class wxTextCtrl’ has no member named ‘ChangeValue’
/home/seppi/Desktop/git/Tiggit/tiggit.cpp: In member function ‘void ListTab::doAction(int, int)’:
/home/seppi/Desktop/git/Tiggit/tiggit.cpp:891:36: error: ‘wxOS_WINDOWS’ was not declared in this scope
/home/seppi/Desktop/git/Tiggit/tiggit.cpp:907:52: error: ‘struct boost::filesystem::path’ has no member named ‘c_str’
/home/seppi/Desktop/git/Tiggit/tiggit.cpp:909:49: error: ‘struct boost::filesystem::path’ has no member named ‘c_str’
/home/seppi/Desktop/git/Tiggit/tiggit.cpp:940:57: error: ‘struct boost::filesystem::path’ has no member named ‘c_str’
/home/seppi/Desktop/git/Tiggit/tiggit.cpp: In member function ‘void ListTab::onListRightClick(wxListEvent&)’:
/home/seppi/Desktop/git/Tiggit/tiggit.cpp:1069:28: error: ‘wxOS_WINDOWS’ was not declared in this scope
/home/seppi/Desktop/git/Tiggit/tiggit.cpp: In member function ‘void ListTab::onContextClick(wxCommandEvent&)’:
/home/seppi/Desktop/git/Tiggit/tiggit.cpp:1099:32: error: ‘wxOS_WINDOWS’ was not declared in this scope
/home/seppi/Desktop/git/Tiggit/tiggit.cpp: In member function ‘virtual bool MyApp::OnInit()’:
/home/seppi/Desktop/git/Tiggit/tiggit.cpp:1516:43: error: ‘class wxStandardPathsBase’ has no member named ‘GetExecutablePath’
make[2]: *** [CMakeFiles/tiggit.dir/tiggit.cpp.o] Error 1
make[1]: *** [CMakeFiles/tiggit.dir/all] Error 2
make: *** [all] Error 2
05-05-2012 07:05 AM
Find all posts by this user Quote this message in a reply
nico Offline
Administrator
*******

Posts: 115
Joined: Apr 2012
Reputation: 0
Post: #6
RE: How to Build in Linux
Hmm, ok. I think I can fix the boost issues, but wxWidgets 2.6 is probably too far behind to support. Could you try upgrading to 2.8? Ubuntu at least has both 2.6 and 2.8.
(This post was last modified: 05-05-2012 11:15 PM by nico.)
05-05-2012 08:08 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)