Open World Soccer Forum Index Open World Soccer
Community Forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Compiling in windows

 
Post new topic   Reply to topic    Open World Soccer Forum Index -> Programming
View previous topic :: View next topic  
Author Message
onÝrico



Joined: 26 Feb 2009
Posts: 1

PostPosted: Thu Feb 26, 2009 3:33 pm    Post subject: Compiling in windows Reply with quote

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
View user's profile Send private message
Massimo32
Site Admin


Joined: 11 Nov 2007
Posts: 177
Location: Bolzano, Italy

PostPosted: Thu Feb 26, 2009 7:36 pm    Post subject: Re: Compiling in windows Reply with quote

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
View user's profile Send private message
grusifix



Joined: 28 Feb 2009
Posts: 5
Location: Finland

PostPosted: Sun Mar 01, 2009 8:26 am    Post subject: Reply with quote

I got the crash too (with vc9) but fixed it with this.

Code:
match.cpp change line 161 to:
 file_image_pl.open(get_custom_path(team[t], "player").c_str(), std::ios_base::binary);


http://openworldsoccer.sourceforge.net/forum/viewtopic.php?p=210#210
Back to top
View user's profile Send private message
Massimo32
Site Admin


Joined: 11 Nov 2007
Posts: 177
Location: Bolzano, Italy

PostPosted: Sun Mar 01, 2009 12:45 pm    Post subject: Reply with quote

grusifix_ wrote:
I got the crash too (with vc9) but fixed it with this.

Code:
match.cpp change line 161 to:
 file_image_pl.open(get_custom_path(team[t], "player").c_str(), std::ios_base::binary);


http://openworldsoccer.sourceforge.net/forum/viewtopic.php?p=210#210


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 Wink
Back to top
View user's profile Send private message
grusifix



Joined: 28 Feb 2009
Posts: 5
Location: Finland

PostPosted: Sun Mar 01, 2009 3:37 pm    Post subject: Reply with quote

I tried to but my old account is inactive. Embarassed
Back to top
View user's profile Send private message
Massimo32
Site Admin


Joined: 11 Nov 2007
Posts: 177
Location: Bolzano, Italy

PostPosted: Sun Mar 01, 2009 4:24 pm    Post subject: Reply with quote

grusifix_ wrote:
I tried to but my old account is inactive. Embarassed



That's strange, I just checked in admin panel and your old account (without _) results active.
Back to top
View user's profile Send private message
grusifix



Joined: 28 Feb 2009
Posts: 5
Location: Finland

PostPosted: Sun Mar 01, 2009 10:06 pm    Post subject: Reply with quote

Massimo32 wrote:
grusifix_ wrote:
I tried to but my old account is inactive. Embarassed



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 _ Confused
Back to top
View user's profile Send private message
Massimo32
Site Admin


Joined: 11 Nov 2007
Posts: 177
Location: Bolzano, Italy

PostPosted: Sun Mar 01, 2009 10:28 pm    Post subject: Reply with quote

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 _ Confused


Fixed Wink
Back to top
View user's profile Send private message
Andy



Joined: 30 Jun 2008
Posts: 17
Location: Germany

PostPosted: Tue Sep 01, 2009 10:52 pm    Post subject: Reply with quote

if i try to compile, i get over 100 linker errors... Sad
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
View user's profile Send private message Send e-mail
Massimo32
Site Admin


Joined: 11 Nov 2007
Posts: 177
Location: Bolzano, Italy

PostPosted: Tue Sep 01, 2009 11:27 pm    Post subject: Reply with quote

Andy wrote:
if i try to compile, i get over 100 linker errors... Sad

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
View user's profile Send private message
Bib



Joined: 20 Feb 2011
Posts: 4

PostPosted: Wed Feb 23, 2011 9:21 pm    Post subject: Reply with quote

It seems this post is dead, but i have a question while compiling under Windows so I use this post Smile.

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
View user's profile Send private message
freegamer



Joined: 14 Mar 2008
Posts: 21

PostPosted: Wed Mar 16, 2011 3:11 pm    Post subject: Reply with quote

Perhaps you need the libgcc/libstdc source rather than the DLLs.
_________________
Free Gamer - open source games blog
FreeGameDev community
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Open World Soccer Forum Index -> Programming All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Get Open World Soccer at SourceForge.net. Fast, secure and Free Open Source software downloads