View previous topic :: View next topic |
Author |
Message |
onírico
Joined: 26 Feb 2009 Posts: 1
|
Posted: Thu Feb 26, 2009 3:33 pm Post subject: Compiling in windows |
|
|
First of all, congratulations for OWS. It´s great!!
Not long time ago, i was trying to compile ows in windows. But I had some problems with the libraries and I wasn´t able to. Then, my question is... what libraries do you need to compile OWS besides sdl, boost and glut??
Simplying... do you need STL port???
Thanks in advance. I´m using minGW. |
|
Back to top |
|
 |
Massimo32 Site Admin
Joined: 11 Nov 2007 Posts: 177 Location: Bolzano, Italy
|
Posted: Thu Feb 26, 2009 7:36 pm Post subject: Re: Compiling in windows |
|
|
onírico wrote: | First of all, congratulations for OWS. It´s great!!
Not long time ago, i was trying to compile ows in windows. But I had some problems with the libraries and I wasn´t able to. Then, my question is... what libraries do you need to compile OWS besides sdl, boost and glut??
Simplying... do you need STL port???
Thanks in advance. I´m using minGW. |
You need also sdl_image, ftgl 2.1.3 and freetype2.
I had successfully compiled ows using mingw, but unfortunately it crashes after the menu. Now I will try using visual c++ 2008. |
|
Back to top |
|
 |
grusifix
Joined: 28 Feb 2009 Posts: 5 Location: Finland
|
|
Back to top |
|
 |
Massimo32 Site Admin
Joined: 11 Nov 2007 Posts: 177 Location: Bolzano, Italy
|
Posted: Sun Mar 01, 2009 12:45 pm Post subject: |
|
|
Yes that was the problem indeed. While developing in Linux I didn't notice it because it worked.
I wish you had told me a couple of days ago, because yesterday I've spent a few hours before finding it.. and I don't really enjoy my stay in the windows world  |
|
Back to top |
|
 |
grusifix
Joined: 28 Feb 2009 Posts: 5 Location: Finland
|
Posted: Sun Mar 01, 2009 3:37 pm Post subject: |
|
|
I tried to but my old account is inactive.  |
|
Back to top |
|
 |
Massimo32 Site Admin
Joined: 11 Nov 2007 Posts: 177 Location: Bolzano, Italy
|
Posted: Sun Mar 01, 2009 4:24 pm Post subject: |
|
|
grusifix_ wrote: | I tried to but my old account is inactive.  |
That's strange, I just checked in admin panel and your old account (without _) results active. |
|
Back to top |
|
 |
grusifix
Joined: 28 Feb 2009 Posts: 5 Location: Finland
|
Posted: Sun Mar 01, 2009 10:06 pm Post subject: |
|
|
Massimo32 wrote: | grusifix_ wrote: | I tried to but my old account is inactive.  |
That's strange, I just checked in admin panel and your old account (without _) results active. |
For some reason the new password for my old account doesn't show up at gmail(inbox nor spam).. I've tried it quite many times. I feel so dirty with the _  |
|
Back to top |
|
 |
Massimo32 Site Admin
Joined: 11 Nov 2007 Posts: 177 Location: Bolzano, Italy
|
Posted: Sun Mar 01, 2009 10:28 pm Post subject: |
|
|
grusifix wrote: |
For some reason the new password for my old account doesn't show up at gmail(inbox nor spam).. I've tried it quite many times. I feel so dirty with the _  |
Fixed  |
|
Back to top |
|
 |
Andy
Joined: 30 Jun 2008 Posts: 17 Location: Germany
|
Posted: Tue Sep 01, 2009 10:52 pm Post subject: |
|
|
if i try to compile, i get over 100 linker errors...
i have boost, freetype, ftgl, sdl...
what linkers do i have to set?
i use dev c++ (mingw)
Code: | OWS 0.4/ball.o(.text$_ZN6SpriteC2Ev[Sprite::Sprite()]+0x19):ball.cpp: undefined reference to `StateMachine::StateMachine()'
OWS 0.4/game.o(.text+0x6e4):game.cpp: undefined reference to `FTTextureFont::FTTextureFont(char const*)'
OWS 0.4/game.o(.text+0x796):game.cpp: undefined reference to `FTTextureFont::FTTextureFont(char const*)'
OWS 0.4/game.o(.text+0x1278):game.cpp: undefined reference to `FTTextureFont::FTTextureFont(char const*)'
OWS 0.4/game.o(.text+0x132a):game.cpp: undefined reference to `FTTextureFont::FTTextureFont(char const*)'
OWS 0.4/game_mode.o(.text+0x205):game_mode.cpp: undefined reference to `Widget::setSelected(bool)'
OWS 0.4/main.o(.text+0x1b5):main.cpp: undefined reference to `boost::program_options::options_description::m_default_line_length'
OWS 0.4/main.o(.text+0x1d5):main.cpp: undefined reference to `boost::program_options::options_description::options_description(std::string const&, unsigned int)'
OWS 0.4/main.o(.text+0x2a4):main.cpp: undefined reference to `boost::program_options::options_description::add_options()'
[...] |
|
|
Back to top |
|
 |
Massimo32 Site Admin
Joined: 11 Nov 2007 Posts: 177 Location: Bolzano, Italy
|
Posted: Tue Sep 01, 2009 11:27 pm Post subject: |
|
|
Andy wrote: | if i try to compile, i get over 100 linker errors...
|
The Makefile requires some changes to work in Windows.
Are you using the Makefile from the Windows package?
Also , to avoid FTTextureFont related errors, switch to the ftgl branch. |
|
Back to top |
|
 |
Bib
Joined: 20 Feb 2011 Posts: 4
|
Posted: Wed Feb 23, 2011 9:21 pm Post subject: |
|
|
It seems this post is dead, but i have a question while compiling under Windows so I use this post .
When I downloaded windows source+binary, there wasn't a libgcc-?????.dll nor libstdc++.dll. (game worked fine anyway)
When I compile the project, these DLL are required on runtime. I think these 2 files are "embedded" in the exe file.
I tried without success to add flags on the linker (-static-lib-gcc) : result is the same I need the DLLs.
It's not a big problem cause when I put the DLLs in the directory it works but I don't understand why I can't embed them. |
|
Back to top |
|
 |
freegamer
Joined: 14 Mar 2008 Posts: 21
|
Posted: Wed Mar 16, 2011 3:11 pm Post subject: |
|
|
Perhaps you need the libgcc/libstdc source rather than the DLLs. _________________ Free Gamer - open source games blog
FreeGameDev community |
|
Back to top |
|
 |
|