Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Qt Creator changes compiler mid build
Qt 6.11 is out! See what's new in the release blog

Qt Creator changes compiler mid build

Scheduled Pinned Locked Moved Installation and Deployment
3 Posts 2 Posters 974 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    J Henzel
    wrote on last edited by J Henzel
    #1

    I am experimenting with Qt Creator 3.4.1 on OS X 10.0.3. I have MacPorts and GCC5 installed in the default location (/opt/local.....) The above path is in my .bash_profile. I can build this project in both Eclipse and Netbeans with GCC5 but am having issues with Creator. In Creator I have added a kit and set the compiler and debugger and it works mostly. When I build I get the correct compiler for all but 1 line (see below) Then it defaults to using g++ and my build fails (am using shared_ptr and C++11). Notice how it uses g++-mp-5 everywhere except the last line.

    Anyone with any ideas of how to fix this or what I am missing. It has to be something small and simple

    /Applications/Xcode.app/Contents/Developer/usr/bin/make"  -f nbproject/Makefile-Debug.mk dist/Debug/MP_GCC5-MacOSX/davisproad2tool
    mkdir -p build/Debug/MP_GCC5-MacOSX
    rm -f "build/Debug/MP_GCC5-MacOSX/DavisRecordParser.o.d"
    g++-mp-5    -c -g -I/opt/local/include/gcc5/c++/ -std=c++11 -MMD -MP -MF "build/Debug/MP_GCC5-MacOSX/DavisRecordParser.o.d" -o build/Debug/MP_GCC5-MacOSX/DavisRecordParser.o DavisRecordParser.cpp
    mkdir -p build/Debug/MP_GCC5-MacOSX
    rm -f "build/Debug/MP_GCC5-MacOSX/DavisWeatherRecord.o.d"
    g++-mp-5    -c -g -I/opt/local/include/gcc5/c++/ -std=c++11 -MMD -MP -MF "build/Debug/MP_GCC5-MacOSX/DavisWeatherRecord.o.d" -o build/Debug/MP_GCC5-MacOSX/DavisWeatherRecord.o DavisWeatherRecord.cpp
    mkdir -p build/Debug/MP_GCC5-MacOSX
    rm -f "build/Debug/MP_GCC5-MacOSX/DavisWeatherRecordRevA.o.d"
    g++-mp-5    -c -g -I/opt/local/include/gcc5/c++/ -std=c++11 -MMD -MP -MF "build/Debug/MP_GCC5-MacOSX/DavisWeatherRecordRevA.o.d" -o build/Debug/MP_GCC5-MacOSX/DavisWeatherRecordRevA.o DavisWeatherRecordRevA.cpp
    mkdir -p build/Debug/MP_GCC5-MacOSX
    rm -f "build/Debug/MP_GCC5-MacOSX/DavisWeatherRecordRevB.o.d"
    g++-mp-5    -c -g -I/opt/local/include/gcc5/c++/ -std=c++11 -MMD -MP -MF "build/Debug/MP_GCC5-MacOSX/DavisWeatherRecordRevB.o.d" -o build/Debug/MP_GCC5-MacOSX/DavisWeatherRecordRevB.o DavisWeatherRecordRevB.cpp
    mkdir -p build/Debug/MP_GCC5-MacOSX
    rm -f "build/Debug/MP_GCC5-MacOSX/EndianReader.o.d"
    g++-mp-5    -c -g -I/opt/local/include/gcc5/c++/ -std=c++11 -MMD -MP -MF "build/Debug/MP_GCC5-MacOSX/EndianReader.o.d" -o build/Debug/MP_GCC5-MacOSX/EndianReader.o EndianReader.cpp
    mkdir -p build/Debug/MP_GCC5-MacOSX
    rm -f "build/Debug/MP_GCC5-MacOSX/main.o.d"
    g++-mp-5    -c -g -I/opt/local/include/gcc5/c++/ -std=c++11 -MMD -MP -MF "build/Debug/MP_GCC5-MacOSX/main.o.d" -o build/Debug/MP_GCC5-MacOSX/main.o main.cpp
    mkdir -p dist/Debug/MP_GCC5-MacOSX
    g++-mp-5     -o dist/Debug/MP_GCC5-MacOSX/davisproad2tool build/Debug/MP_GCC5-MacOSX/DavisRecordParser.o build/Debug/MP_GCC5-MacOSX/DavisWeatherRecord.o build/Debug/MP_GCC5-MacOSX/DavisWeatherRecordRevA.o build/Debug/MP_GCC5-MacOSX/DavisWeatherRecordRevB.o build/Debug/MP_GCC5-MacOSX/EndianReader.o build/Debug/MP_GCC5-MacOSX/main.o 
    "/Applications/Xcode.app/Contents/Developer/usr/bin/make"  -f nbproject/Makefile-Release.mk dist/Release/GNU-MacOSX/davisproad2tool
    mkdir -p build/Release/GNU-MacOSX
    rm -f "build/Release/GNU-MacOSX/DavisRecordParser.o.d"
    g++    -c -O2 -MMD -MP -MF "build/Release/GNU-MacOSX/DavisRecordParser.o.d" -o build/Release/GNU-MacOSX/DavisRecordParser.o DavisRecordParser.cpp
    In file included from DavisRecordParser.cpp:10:0:
    DavisRecordParser.h:33:5: error: 'shared_ptr' does not name a type
         shared_ptr<DavisWeatherRecordRevB> record = make_shared<DavisWeatherRecordRevB>();
    

    PS - I am using a generic Qt setup as per docs and not a .pro file

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      The other thing that is strange is that you switch from a debug to a release build. Do you do something like that in your project somewhere ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • J Offline
        J Offline
        J Henzel
        wrote on last edited by
        #3

        Thank you. Not that I have found or know of. I imported the original project from Netbeans. I will poke around and see if I see anything

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved