It is currently Mon Feb 06, 2012 3:46 am



Welcome
Welcome to RHAPSODY4YOU

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, respond to polls, upload and download content, and access many other special features. Registration is fast, simple, and absolutely free, so please, register to join our community today.





 Page 1 of 1 [ 8 posts ] 
Author Message
 Post subject: Rhapsody74 MinGW Adapter
PostPosted: Tue Dec 02, 2008 11:43 pm 

Joined: Thu Aug 30, 2007 4:31 pm
Posts: 152
Location: Germany
+=======================================================+
| MinGW Adapter for RiC and RiCpp 7.4 on Windows |
+=======================================================+

Steps to build a model for MinGW on Windows:
===============================================

1) Download and launch MinGW- Installer to install MinGW
http://prdownloads.sourceforge.net/ming ... -5.1.3.exe

Make sure that MinGW base Tools, g++ and MinGW Make is checked

Install MinGW to C:\mingw !!!!

2) The MinGW package does not include core utils like rm (=remove, needed for example to perform a rebuild in Rhapsody) or cp (=copy, needed during Framework Compilation) nor a debugger.

In order to have a full support download and install:
MSYS: http://prdownloads.sf.net/mingw/MSYS-1. ... e?download

Install it to c:\mingw\msys (not c:\mingw\msys\1.0)
Run post install process -if you want- by pointing to your MinGW install path (c:/mingw) – ignore the recommendation message and the end of the process

3) Extract the zip file Rhapsody74MinGWShare.zip onto your Rhapsody installation folder

(if you have installed mingw into a different folder then c:\mingw you have to adapt the files MinGWMake.bat MinGWRun.bat, Rebuild_MinGW_Libraries.bat)

4) From the "LangC" and "LangCpp" folders launch:
Rebuild_MinGW_Libraries.bat to build the OXF framework libraries for RiC and RiCpp

5) You can now build C and C++ model in Rhapsody for the "MinGW" environment


Attachments:
File comment: Rhapsody Share4MinGW
Rhapsody74MinGWShare.zip [68.98 KiB]
Downloaded 134 times
Offline
 Profile  
 
 Post subject:
PostPosted: Wed Dec 03, 2008 8:53 am 
User avatar

Joined: Thu Sep 13, 2007 7:34 pm
Posts: 397
Location: London
Mickey, I followed your instructions but when I tried to build a simple RiC++ model, I got this error. Is it something you've seen before?

Building ------------ DefaultComponent.exe ------------
Executing: "C:\Rhapsody7.4\Share\etc\mingwmake.bat" DefaultComponent.mak build
Setting environment for MinGW
Compiling class_0.cpp
AllocationBase 0x0, BaseAddress 0x715B0000, RegionSize 0x130000, State 0x10000
C:\mingw\msys\bin\sh.exe: *** Couldn't reserve space for cygwin's heap, Win32 error 487
mingw32-make: *** [class_0.o] Error 1

Build Done


Offline
 Profile  
 
 Post subject:
PostPosted: Thu Dec 04, 2008 9:09 am 

Joined: Thu Aug 30, 2007 4:31 pm
Posts: 152
Location: Germany
Do you have Vista ? ....

I found an article related to your problem under the following webpage http://www.madwizard.org/electronics/ar ... inavrvista

So one thing that might help is to rebase the msys1.0.dll or to use the attached msys-1.0.dll instead. If you have VISTA64 follow the instructions on the provided webpage...

Please let me know if this helps .. I don't have vista :->


Attachments:
msys-rebased.zip [333.33 KiB]
Downloaded 49 times
Offline
 Profile  
 
 Post subject:
PostPosted: Thu Dec 04, 2008 2:07 pm 
User avatar

Joined: Thu Sep 13, 2007 7:34 pm
Posts: 397
Location: London
Thanks, yes that did the trick.

I'm using XP and not Vista.


Offline
 Profile  
 
 Post subject:
PostPosted: Sun Mar 29, 2009 9:29 am 

Joined: Tue Jan 06, 2009 1:03 pm
Posts: 1
Thank you Mickey, it works fine. At the moment I try to include Qt4 but have big problems with the two makefiles. Do you have same Ideas how I can Include Qt4 with mingw in Rhapsody?
Thanks a lot


Offline
 Profile  
 
 Post subject:
PostPosted: Tue Mar 31, 2009 8:18 pm 

Joined: Thu Aug 30, 2007 4:31 pm
Posts: 152
Location: Germany
I think this question is a new thread ... but .. ok ;-)

Here what I would propose:
QT has an eclipse plugin which is pretty cool .. so the easiest way is to install eclipse, qt mingw to run inside eclipse and then in Rhapsody... you generate an eclipse consfiguration ... sounds complicated but it's easy ...

If you have more questions on this then please create a new thread

Thanks


Offline
 Profile  
 
 Post subject:
PostPosted: Sun May 10, 2009 2:44 pm 

Joined: Wed Dec 10, 2008 10:51 pm
Posts: 138
Thanks for the MinGW adaptor. I got it to work with plain vanilla Rhapsody, but I'm having problems with using it when Rhapsody is integrated with Eclipse.

First, whenever I create the IDE project, Rhapsody keeps changing Environment back to Cygwin. Its either reverting back to default, automatically selecting the first environment in the list, or just remembering what I had it set at yesterday.

I select MinGW in the Create IDE Project dialog, but all the animation libraries are still set to Cygwin, so I have to manually change those.

When I try to build, MinGW complains that it can't find the animation libraries. Below is the error.

**** Internal Builder is used for build ****
g++ -oTest3.exe MainDefaultComponent.o Default.o ClassB.o ClassA.o ..\$(OMROOT)\LangCpp\lib\mingwaomanim.a ..\$(OMROOT)\LangCpp\lib\mingwoxfinst.a ..\$(OMROOT)\LangCpp\lib\mingwomcomappl.a ..\$(OMROOT)\LangCpp\lib\mingwaomanim.a -lws2_32
g++: ..\$(OMROOT)\LangCpp\lib\mingwaomanim.a: No such file or directory
g++: ..\$(OMROOT)\LangCpp\lib\mingwoxfinst.a: No such file or directory
g++: ..\$(OMROOT)\LangCpp\lib\mingwomcomappl.a: No such file or directory
g++: ..\$(OMROOT)\LangCpp\lib\mingwaomanim.a: No such file or directory
Build error occurred, build is stopped
Time consumed: 78 ms.


I verified that the files do exist. I think its having a problem with the "..\", but I can't find the root of where this is defined. If I try to change the mak file, it just overwrites it when it generates a new one.


Offline
 Profile  
 
 Post subject:
PostPosted: Sun May 10, 2009 8:30 pm 

Joined: Thu Aug 30, 2007 4:31 pm
Posts: 152
Location: Germany
good point .. probably I have to extend the adpater for Eclipse usage ... in the meanwhile ... you have to add the path for the libraries in your eclipse project environment ...


Attachments:
Path.jpg
Path.jpg [ 41.21 KiB | Viewed 1287 times ]
Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 8 posts ] 


Who is online

Users browsing this forum: No registered users and 0 guests


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 post attachments in this forum

Search for:

cron

suspicion-preferred