Page 1 of 2 1 2 LastLast
Results 1 to 15 of 28

Thread: Does ice support MinGW?

  1. #1
    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!

  2. #2
    marc's Avatar
    marc is offline ZeroC Staff
    Name: Marc Laukien
    Organization: ZeroC, Inc.
    Project: The Internet Communications Engine
    Join Date
    Feb 2003
    Location
    Florida
    Posts
    1,858
    Sorry, but what is MiniGW?

  3. #3
    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.

  4. #4
    marc's Avatar
    marc is offline ZeroC Staff
    Name: Marc Laukien
    Organization: ZeroC, Inc.
    Project: The Internet Communications Engine
    Join Date
    Feb 2003
    Location
    Florida
    Posts
    1,858
    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.

  5. #5
    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

  6. #6
    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 05:29 AM.

  7. #7
    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?
    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.

  8. #8
    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

  9. #9
    matthew's Avatar
    matthew is offline ZeroC Staff
    Name: Matthew Newhook
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Feb 2003
    Location
    NL, Canada
    Posts
    1,458
    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.

  10. #10
    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.

  11. #11
    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.

  12. #12
    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.

  13. #13
    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.

  14. #14
    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 Attached Files

  15. #15
    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 Attached Files

Page 1 of 2 1 2 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. SSL support in Ice-E
    By luke in forum Help Center
    Replies: 0
    Last Post: 02-08-2010, 09:37 AM
  2. Error using Makefile with Eclipse with MinGW
    By peter in forum Help Center
    Replies: 1
    Last Post: 04-30-2009, 07:25 AM
  3. Ice Embedded with mingw?
    By tjorven in forum Comments
    Replies: 6
    Last Post: 12-08-2008, 12:54 PM
  4. SCTP support in ICE?
    By luke in forum Comments
    Replies: 1
    Last Post: 09-01-2008, 12:27 PM
  5. can ice support asp?
    By huhz1979 in forum Help Center
    Replies: 1
    Last Post: 06-22-2006, 03:51 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •