Results 1 to 7 of 7

Thread: Qt4 + Eclipse problems

  1. #1
    Join Date
    May 2008
    Posts
    4

    Default Qt4 + Eclipse problems

    I have problems integrating Qt4 in Eclipse (on Windows).

    Qt4 installed fine, and I am able to compile a test project using qmake + make. This all works fine.

    I followed the steps on How to use Eclipse with QT4 in 10 steps.

    So, I end up with 2 'custom' build targets for my project: "all" and "qmake". "qmake" is defined as (just like in the tutorial):

    Target name: qmake
    Make target: test.pro
    Build command: qmake

    However, when I double-click "qmake" Eclipse does not execute qmake, but the internal builder instead.. and of course this results in errors. I just cannot let Eclipse to use the external tool "qmake" I defined. Unticking the box "Run all project builders" in the make target dialog does not help.

    What am I doing wrong?


    Versions:
    QT 4.4.0
    Eclipse 3.3.2
    Last edited by Bug80; 29th May 2008 at 09:41.

  2. #2
    Join Date
    Jan 2006
    Location
    Napoli, Italy
    Posts
    621
    Thanks
    5
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt4 + Eclipse problems

    If you want use Eclipse, use the Qt Eclipse Integration plugin released by Trolltech

    http://trolltech.com/developer/downl...ation-download
    A camel can go 14 days without drink,
    I can't!!!

  3. #3
    Join Date
    May 2008
    Posts
    4

    Default Re: Qt4 + Eclipse problems

    Ok, it works now.

    Turns out I had to start a "C++ project --> Makefile project" (apparently in previous versions of Eclipse you could start a new "C/C++ Makefile project" directly, like described in the tutorial).

    I now have a different problem though. I can compile Debug versions of QT4 projects without problems, but when I try to execute a compiled Release I get the following error:

    "The procedure enty point _Z5qFreePv could not be located in the dynamic link library QtCore4.dll"

    Any ideas? I compiled Qt4 manually using "configure + make".

  4. #4
    Join Date
    May 2008
    Location
    Kyiv, Ukraine
    Posts
    418
    Thanks
    1
    Thanked 29 Times in 27 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Qt4 + Eclipse problems

    Quote Originally Posted by Bug80 View Post
    Ok, it works now.

    Turns out I had to start a "C++ project --> Makefile project" (apparently in previous versions of Eclipse you could start a new "C/C++ Makefile project" directly, like described in the tutorial).

    I now have a different problem though. I can compile Debug versions of QT4 projects without problems, but when I try to execute a compiled Release I get the following error:

    "The procedure enty point _Z5qFreePv could not be located in the dynamic link library QtCore4.dll"

    Any ideas? I compiled Qt4 manually using "configure + make".
    Is Qt's bin directory in your PATH variable?
    I'm a rebel in the S.D.G.

  5. #5
    Join Date
    May 2008
    Posts
    4

    Default Re: Qt4 + Eclipse problems

    Quote Originally Posted by lyuts View Post
    Is Qt's bin directory in your PATH variable?
    Yes, it is.

    I just re-compiled Qt using the installation package (.exe), and now it works.

    I can think of two possible reasons for this:

    1) The installation package warned that my MinGW version is too new, which may lead to problems. Therefore I let the installer download the proper (older) MinGW.

    2) It turned out I have some other versions of QtCore4.dll, for example in the MikTeX\bin directory, which was *also* in my PATH. This time I've put the path to Qt\bin in front of all the other directories in the PATH string, so that the correct dll will be found first.

    I think one of these two options solved my problem.

  6. #6
    Join Date
    May 2008
    Location
    Kyiv, Ukraine
    Posts
    418
    Thanks
    1
    Thanked 29 Times in 27 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Qt4 + Eclipse problems

    Bug80, what version you MinGW did you use for the first time?
    I'm a rebel in the S.D.G.

  7. #7
    Join Date
    May 2008
    Posts
    4

    Default Re: Qt4 + Eclipse problems

    Quote Originally Posted by lyuts View Post
    Bug80, what version you MinGW did you use for the first time?
    The latest version (5.1.4). I believe this comes with GCC 3.4.5

    I don't know which version of MinGW comes with Qt (any ideas as to how to find that out?). The GCC version is 3.4.2.

    I remember the installer of Qt complaining about an incorrect version of w32_api.h with the newer GCC version.

Similar Threads

  1. Replies: 7
    Last Post: 22nd December 2010, 08:13
  2. A Guide to Install MinGW, Qt4 and Eclipse Integration on Windows XP
    By shiyutang in forum Installation and Deployment
    Replies: 10
    Last Post: 5th August 2009, 04:03
  3. Qt integration with Eclipse
    By Dougie1610 in forum Newbie
    Replies: 8
    Last Post: 2nd April 2008, 23:37
  4. Qt Eclipse integration problem!!!!
    By mismael85 in forum Installation and Deployment
    Replies: 4
    Last Post: 13th March 2008, 14:45
  5. Howto use Eclipse with QT4 in 10 steps
    By the_bis in forum Newbie
    Replies: 3
    Last Post: 28th January 2007, 20:21

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.