Results 1 to 6 of 6

Thread: problem with building a GUI project in QT Creator

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2013
    Posts
    3
    Platforms
    Windows

    Smile problem with building a GUI project in QT Creator

    I downloaded QT 5.0.1 with QT Creator and MinGW. When I try to bulid a project there is an error:

    cc1plus.exe:-1: błąd:error: unrecognized command line option "-fno-keep-inline-dllexport"
    I managed to find out that it can be a problem with a MinGW but I don't know hot to solve it. I have also a Code::Blocks with MinGW and QT Creator detected both compilers. My OS is Windows 7 64-bit. Anyone can help?
    Last edited by Aver; 12th March 2013 at 21:06.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: problem with building a GUI project in QT Creator

    So which compiler is it trying to compile with? What version of GCC is it? The bundled version should be GCC 4.7.
    "We can't solve problems by using the same kind of thinking we used when we created them." -- Einstein
    If you are posting code then please use [code] [/code] tags around it - makes addressing the problem easier.

  3. #3
    Join Date
    Mar 2013
    Posts
    3
    Platforms
    Windows

    Default Re: problem with building a GUI project in QT Creator

    I don't know which compiler is used. Here is the screen:

    LINK

    I can't remove any of auto-detected copilers and I don't know how to choose which compiler should be used.

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: problem with building a GUI project in QT Creator

    Take a look at the Kits tab of that dialog. Then look at the Build configuration of your Project.

    Failing that read the Compile Output pane after a rebuild to see what commands are actually run

  5. #5
    Join Date
    Mar 2013
    Posts
    3
    Platforms
    Windows

    Default Re: problem with building a GUI project in QT Creator

    17:06:38: Running steps for project untitled2...
    17:06:38: Starting: "C:\Qt\Qt5.0.1\5.0.1\mingw47_32\bin\qmake.exe" C:\Users\Adrian\Desktop\untitled2\untitled2.pro -r -spec win32-g++ "CONFIG+=debug" "CONFIG+=declarative_debug" "CONFIG+=qml_debug"
    17:06:39: The process "C:\Qt\Qt5.0.1\5.0.1\mingw47_32\bin\qmake.exe" exited normally.
    17:06:39: Starting: "C:\Program Files (x86)\CodeBlocks\MinGW\bin\mingw32-make.exe"
    C:/Program Files (x86)/CodeBlocks/MinGW/bin/mingw32-make -f Makefile.Debug
    mingw32-make[1]: Entering directory `C:/Users/Adrian/Desktop/untitled2-build-Desktop_Qt_5_0_1_MinGW_32bit-Debug'
    C:\Qt\Qt5.0.1\5.0.1\mingw47_32\bin\uic.exe ..\untitled2\mainwindow.ui -o ui_mainwindow.h
    g++ -c -pipe -fno-keep-inline-dllexport -g -frtti -Wall -Wextra -fexceptions -mthreads -DUNICODE -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_OPENGL_ES_2 -DQT_OPENGL_ES_2_ANGLE -DQT_NEEDS_QMAIN -I..\untitled2 -I"..\..\..\..\Qt\Qt5.0.1\5.0.1\mingw47_32\inclu de" -I"..\..\..\..\Qt\Qt5.0.1\5.0.1\mingw47_32\include\ QtWidgets" -I"..\..\..\..\Qt\Qt5.0.1\5.0.1\mingw47_32\include\ QtGui" -I"..\..\..\..\Qt\Qt5.0.1\5.0.1\mingw47_32\include\ QtCore" -I"debug" -I"." -I"." -I"..\..\..\..\Qt\Qt5.0.1\5.0.1\mingw47_32\mkspecs\ win32-g++" -o debug\main.o ..\untitled2\main.cpp
    cc1plus.exe: error: unrecognized command line option "-fno-keep-inline-dllexport"
    mingw32-make[1]: *** [debug/main.o] Error 1
    mingw32-make[1]: Leaving directory `C:/Users/Adrian/Desktop/untitled2-build-Desktop_Qt_5_0_1_MinGW_32bit-Debug'
    mingw32-make: *** [debug] Error 2
    17:06:40: The process "C:\Program Files (x86)\CodeBlocks\MinGW\bin\mingw32-make.exe" exited with code 2.
    Error while building/deploying project untitled2 (kit: Desktop Qt 5.0.1 MinGW 32bit)
    When executing step 'Make'
    I suppose the problem must be caused by the second compiler from Code::Blocks. I don't know how to fix it. I'll try to install QT on another computer where no MinGw is installed. I'll see then if any problem occurs.

    EDIT:

    I checked it, on the another computer everything went well. Can I delete the compiler from Code::Blocks in QT somehow?
    Last edited by Aver; 14th March 2013 at 16:59.

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: problem with building a GUI project in QT Creator

    You can remove it from your %PATH%
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. QT4.8.3+Windows Static Libs Building Project problem
    By sa in forum Installation and Deployment
    Replies: 0
    Last Post: 22nd January 2013, 10:57
  2. Problem building Qt project
    By almo in forum Newbie
    Replies: 3
    Last Post: 10th August 2012, 04:37
  3. Replies: 11
    Last Post: 25th April 2012, 12:24
  4. Replies: 2
    Last Post: 10th February 2011, 16:03
  5. Qt Creator - problem loading project
    By Ferric in forum Newbie
    Replies: 1
    Last Post: 7th January 2010, 22:25

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.