Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 11-21-2004
lionel lionel is offline
Registered User
 
Name: Lionel
Organization: Fudan University
Project: FYT
 
Join Date: Nov 2004
Posts: 9
Does ice support MinGW?

How to compile ice with MinGW? Thanks!
Reply With Quote
  #2 (permalink)  
Old 11-21-2004
marc's Avatar
marc marc is offline
ZeroC Staff
 
Name: Marc Laukien
Organization: ZeroC, Inc.
Project: The Internet Communications Engine
 
Join Date: Feb 2003
Location: Florida
Posts: 1,794
Sorry, but what is MiniGW?
Reply With Quote
  #3 (permalink)  
Old 11-21-2004
lionel lionel is offline
Registered User
 
Name: Lionel
Organization: Fudan University
Project: FYT
 
Join Date: Nov 2004
Posts: 9
MinGW is a windows version of gcc.

Please visit http://www.mingw.org and http://sourceforge.net/projects/mingw/ to get more detail.

I wanna write an opensource cross-platform application with ice and wxWidgets.
So I'd like to use a GPL compiler to compile my application. For the Linux version I use gcc, and windows, I want MinGW.
Reply With Quote
  #4 (permalink)  
Old 11-21-2004
marc's Avatar
marc marc is offline
ZeroC Staff
 
Name: Marc Laukien
Organization: ZeroC, Inc.
Project: The Internet Communications Engine
 
Join Date: Feb 2003
Location: Florida
Posts: 1,794
I see. Sorry, but we do not support MiniGW. However, since it's based on gcc, I suggest that you simply give it a try.
Reply With Quote
  #5 (permalink)  
Old 11-24-2004
lionel lionel is offline
Registered User
 
Name: Lionel
Organization: Fudan University
Project: FYT
 
Join Date: Nov 2004
Posts: 9
OK, I'll try to write a Makefile for MinGW
Reply With Quote
  #6 (permalink)  
Old 11-24-2005
vvvol vvvol is offline
Registered User
 
Name: Voloshinov
Organization: Institute of System Analysis Rus. Acad. Sci.
Project: IARnet
 
Join Date: Nov 2005
Posts: 2
Did you get success in porting Ice to MInGW

Dear lionel, a year ago you wrote
Quote:
Originally Posted by lionel
OK, I'll try to write a Makefile for MinGW
What about results? At least just tell me - is it possible? :)
We started use Ice (Java) since summer, 2005.
And a week ago I had asked my student to try to build Ice 3.0 (C++) on MinGW, he reported a lot of problems...
We do not hate MS Visual C++ at all, but we have to use GNU gcc on Windows due to some reasons.

Last edited by vvvol : 11-24-2005 at 04:29 AM.
Reply With Quote
  #7 (permalink)  
Old 11-25-2005
P.H.Wang P.H.Wang is offline
Registered User
 
 
Join Date: Nov 2005
Posts: 2
can I use makefile to build ice from source in windows?

I met the same problem when I tried to use Eclipse and Mingw.
I have verified we can't simply use lib files included in the Ice-3.0.0-VC71.msi.
So I think if it's possible to build from source code.
But when I use make. I got this:
Can anybody tell me what's the message mean?
Quote:
process_begin: CreateProcess((null), uname, ...) failed.
process_begin: CreateProcess((null), uname, ...) failed.
process_begin: CreateProcess((null), uname, ...) failed.
process_begin: CreateProcess((null), uname, ...) failed.
config/Make.rules.:171: config/Make.rules.: No such file or directory
config/Make.rules.:297: *** You need to define mkshlib in Make.rules.. Stop.
I noticed that there are Make.rules.xxx under config. But didn't include windows. Is that the possible reason?
Thank u.
Reply With Quote
  #8 (permalink)  
Old 04-25-2006
mlamana mlamana is offline
Registered User
 
 
Join Date: Apr 2006
Location: Virginia, USA
Posts: 1
Thumbs down Mingw version not working yet...

Quote:
Originally Posted by lionel
OK, I'll try to write a Makefile for MinGW

I see it has been a while since anyone did anything with this. I am also interested in getting Ice to work with Mingw. I am using the Dev-C++ IDE and have managed to compile everything. In trying to link however I am getting a lot of unresolved labels. I am trying the "hello" demo. Both run() and main() are causing multiple definition errors too. I think the IDE is trying to build one executable with both Client and Server in it.

If anyone has actually gotten a working configuration going please post the procedure!
__________________
Mike Lamana
Reply With Quote
  #9 (permalink)  
Old 04-25-2006
matthew's Avatar
matthew matthew is offline
ZeroC Staff
 
Name: Matthew Newhook
Organization: ZeroC, Inc.
Project: Internet Communications Engine
 
Join Date: Feb 2003
Location: NL, Canada
Posts: 1,402
Assuming you are using Makefiles, porting Ice to MingW probalby isn't that difficult. You'll need to write a Make.rules.CYGWIN_NT-5.1. You can probalby copy the majority of the details from Make.rules.Linux. I'm not sure if the POSIX library emulation is good enough to run Ice though.

Assuming you are not doing this port as a hobby and you just want to use Ice, why don't you download the free version of the MS C++ compiler? http://msdn.microsoft.com/vstudio/express/visualc/. Its supported out of the box with Ice 3.0.1.
Reply With Quote
  #10 (permalink)  
Old 10-19-2007
pgquiles pgquiles is offline
Registered User
 
Name: Pau Garcia i Quiles
Organization: Arisnova
Project: IPMS
 
Join Date: Jun 2007
Posts: 10
Encouraging results

I am trying to build Ice 3.2.1 with mingw32 (g++ 3.4.5). I've already got a Make.rules.MINGW32_NT-5 and built IceUtil with it. I'll post more information and the patches to Ice as I move forward.
Reply With Quote
  #11 (permalink)  
Old 10-22-2007
pgquiles pgquiles is offline
Registered User
 
Name: Pau Garcia i Quiles
Organization: Arisnova
Project: IPMS
 
Join Date: Jun 2007
Posts: 10
Built Ice 3.2.1 with MinGW

Just for you to know, I have successfully built Ice 3.2.1 with MingGW 5.1.3 (gcc 3.4.5). Some cleaning and verification is still needed.
Reply With Quote
  #12 (permalink)  
Old 10-30-2007
pgquiles pgquiles is offline
Registered User
 
Name: Pau Garcia i Quiles
Organization: Arisnova
Project: IPMS
 
Join Date: Jun 2007
Posts: 10
Exceptions across DLLs failing

I hit a limitation of MinGW stable (gcc 3.4.5): as it uses sjlj instead of dwarf2, it cannot produce code which propagates user exceptions across DLLs, therefore most unit test fail.

I am trying to build everything using the MinGW technology preview (gcc 4.2.1) with dwarf2 exceptions.
Reply With Quote
  #13 (permalink)  
Old 11-15-2007
pgquiles pgquiles is offline
Registered User
 
Name: Pau Garcia i Quiles
Organization: Arisnova
Project: IPMS
 
Join Date: Jun 2007
Posts: 10
The MinGW Tech Preview with gcc 4.2.1 generates bad code which was causing random memory corruption.

The good news is I managed to get ICE 3.2.1 working with MinGW stable (gcc 3.4.5). Only one unit test (test/IceGrid/deployer, and only the step when it reads log4.txt) is failing, I hope I will fix it next Monday.
Reply With Quote
  #14 (permalink)  
Old 12-06-2007
pgquiles pgquiles is offline
Registered User
 
Name: Pau Garcia i Quiles
Organization: Arisnova
Project: IPMS
 
Join Date: Jun 2007
Posts: 10
Here comes the mingw support

Per popular request and although I have been unable to figure out why test/IceGrid/deployer still fails, here comes mingw_support.patch.

Download official ICE 3.2.1 sources from zeroc.com, then apply this patch. It builds against MinGW stable with g++ 3.4.5 on Windows XP and 2003. I have not tested it on Windows Vista yet but I assume it will NOT work, as there are some known issues in MinGW stable with Vista.

The easiest way to build ICE in MinGW is to install MSYS, then run the mingw32-fullbuild.sh script. It will automagically download and build all third-party dependencies and build ICE. The script does not install Python, PyWin32 or run the tests, thought.

Good luck and remember this is NOT supported by ZeroC. Do not bug them with your requests.
Attached Files
File Type: gz ice-3.2.1_mingw_support.patch.gz (15.9 KB, 97 views)
Reply With Quote
  #15 (permalink)  
Old 02-27-2008
pgquiles pgquiles is offline
Registered User
 
Name: Pau Garcia i Quiles
Organization: Arisnova
Project: IPMS
 
Join Date: Jun 2007
Posts: 10
New patch

My previous patch was missing the install script and the rules file for MingW due to the fact I had forgot to add the -N option when diff'ing the trees. Here comes the proper patch. You do not need to apply both patches but only this one.
Attached Files
File Type: gz ice-3.2.1_mingw_support_v2.patch.gz (19.8 KB, 158 views)
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error using Makefile with Eclipse with MinGW peter Help Center 1 04-30-2009 06:25 AM
Ice Embedded with mingw? tjorven Comments 6 12-08-2008 11:54 AM


All times are GMT -4. The time now is 04:47 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2009 ZeroC, Inc.