|
|
| Re: GUI with Qt [message #527388 is a reply to message #527187] |
Thu, 15 April 2010 02:58   |
Axel Mueller Messages: 1830 Registered: July 2009 |
Senior Member |
|
|
Undefined references to internal run-time library functions, such as __gxx_personality_v0, are also a symptom of linking C++ object files with gcc instead of g++. Linking the same object file with g++ supplies all the necessary C++ libraries and will produce a working executable.
Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
|
|
|
|
|
| Re: GUI with Qt [message #529817 is a reply to message #529778] |
Tue, 27 April 2010 07:12   |
Axel Mueller Messages: 1830 Registered: July 2009 |
Senior Member |
|
|
The message you posted indicates that you used gcc (i.e. the C compiler) to link C++ libraries. You must use the g++ (C++ compiler) for linking. Usually when you setup a C++ project Eclipse will choose the correct linker. Did you change anything in the project properies?
Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
|
|
|
|
|
|
|
|
|
| Re: GUI with Qt [message #531461 is a reply to message #531422] |
Wed, 05 May 2010 02:17   |
Axel Mueller Messages: 1830 Registered: July 2009 |
Senior Member |
|
|
| Stefan Hansen wrote on Tue, 04 May 2010 16:03 | | Axel Mueller wrote on Mon, 03 May 2010 02:17 | Hmm, g++ is used for linking.
Did you use MinGW from the Qt SDK installation or did you install it yourselves? Or did you recently updgrade Qt? There might be a problem if the gcc versions differ.Qt 4.6.0 uses gcc 4.x and older releases used gcc 3.x. These two versions have a different C++ API (see http://bugreports.qt.nokia.com/browse/QTCREATORBUG-426).
|
For my first steps with eclipse I used gcc 3.x. Then I installed Qt with MinGW. Both in one Package from Nokia. What I have suspected was that there are some path settings I did not found. So that the old Version is used. I have no Idea how I could be sure or verrify that the right gcc is used.
Best Regards
Stefan
|
Do you still have gcc 3.x installed? Could you please type in the Windows console window:
gcc --version
and then
g++ --version
Then add a Make Target in Eclipse:
- in context menu of your project select Make Target->Create
- Name: gcc
- Make Target: --version
- Build Command: gcc
- uncheck "Run all builders"
- build the target: in context menu of your project select Make Target->Build
You should see then in the Build Console the output of the command "gcc --version".
Repeat the same procedure for g++ (you can edit the make target in the make target view). Please post all the results.
Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
|
|
|
|
| Re: GUI with Qt [message #532455 is a reply to message #532326] |
Mon, 10 May 2010 03:08   |
Axel Mueller Messages: 1830 Registered: July 2009 |
Senior Member |
|
|
OK, Eclipse is using the wrong gcc version. The way Eclipse looks for the correct MinGW path is a bit complicated.
This is what I got from the CDT source:
1. Try the mingw directory in the platform install directory: e.g. C:\eclipse\mingw\bin
2. Try the directory above the install dir
3. Look in PATH values. Look for mingw32-gcc.exe
4. Try looking if the mingw installer ran (examine registry)
5. Try the default MinGW install dir (C:\mingw\bin)
I suppose you used the MinGW installer for version 3.4.5 and version 4.4.0 is in your Qt directory. In your case item no. 4 seems to be the winner. Is there no file "mingw32-gcc.exe" in your PATH?
As a workaround you can copy the MinGW folder from your Qt folder into the Eclipse installation folder (or in parallel, i..e C:\Programs\MinGW if Eclipse resides in C:\Programs\Eclipse)
Before you ask
- search this forum
- see the FAQ http://wiki.eclipse.org/CDT/User/FAQ
- google
|
|
|
|
|
|
| Re: GUI with Qt [message #716109 is a reply to message #526490] |
Tue, 16 August 2011 09:25  |
Rajat Messages: 1 Registered: August 2011 |
Junior Member |
|
|
Dear
I am new to QT.I have integrate Eclipse with QT but i am not able to do required setting for my Freescale I.mx35 processor. Please anyone can help me in setting the toolchain for cross compiling ARM projects.
Regards
Rajat
|
|
|
Powered by
FUDForum. Page generated in 0.02161 seconds