Qt Creator Kits Option
Qt Creator Compilers
Qt Versions: 5.5 x86.i have added QTDIR to PATH.Qt Creator cannot detect GCC?
Related
This is related to Object file was built for newer OSX version than being linked
Here on macOS Monterey M1 macbook, I'm using Qt5.15.6 from vcpkg. On qmake project I add
CONFIG+=sdk_no_version_check
QMAKE_MACOSX_DEPLOYMENT_TARGET = 12.0
And it seems I can build/run a Qt project. There is a minor issue though, at the end of build it prints
ld: warning: directory not found for option 'L/Users/user/vcpkg/installed/arm64-osx/debug/lib/manual-link'
What is this warning about? How can I fix it?
CONFIG += sdk_no_version_check
QMAKE_MACOSX_DEPLOYMENT_TARGET = 12.0
#QMAKE_APPLE_DEVICE_ARCHS = arm64
CONFIG -= debug_and_release debug_and_release_target
And remember to use Qt kit from vcpkg, not Qt kit installed with Qt online installer.
I am using Qt Creator (Qt 5.0.3 on Ubuntu 14) for a normal c++ project where I am using FLTK libraries. i want to link FLTK statically to my executable. How do I do that using Qt Creator( I am not using any of Qt libraries, just a normal c++ project with FLTK)
You can add suitable LIBS += -l... and INCLUDEPATH += /usr/... to your .pro
Screen-shot from Tools > Options > Build & Run > Compilers
Screen-shot from Tools > Options > Build & Run > Qt versions
Screen-shot from Tools > Options > Build & Run > Kits
Installed Qt creator 2.7.0 on my Windows 7.
Build a test Qt GUI Project - made it run, but encountered the following error:
:-1: error: Qt Creator needs a compiler set up to build. Configure a compiler in the kit options.
Installed MinGW and tried level best to configure at QT's Tools > Options > Build & Run > Compilers, but failed.
Performed various combinations on PATH variable in Environment, but failed.
Nothings working! Not finding any solution.
Does anyone have any resolution for this?
P.S.: No default compiler configured on QT creator.
I notice in screenshot that you have Qt libraries compiled for MSVC2010, but you are trying to use them with MinGW compiler.
On Qt project "downloads" page you will see that there are different binary packages for different compilers. For windows there are 4 packages:
MinGW 4.7.2 32-bit
MSVC 2010 32-bit
MSVC 2010 32-bit with OpenGL
MSVC 2012 64-bit
You must choose package that is binary compatible with your compiler (runtime C library).
Iam not able to select gcc 32bit as the tool chain to compile my qt application.
the following are the details.
QtCreator - 2.4.1 (64bit)
QtSDK - 4.8.0 (64bit)
Platform - OS X Mountain Lion 10.8.2
Xcode - 4.6.2
i wanted to compile my application with 32bit tool chain only. I can able to compile in
windows but in mac it is not. So please help me on this.
List of available tool chains as shown in Qt creator->Preferences->Build&Run are
GCC (x86 32bit)
GCC (x86 64bit)
GCC (ppc 32bit)
GCC (ppc 64bit)
But when i am trying to set tool chain under build settings of the project, it is listing only
as follows
GCC (x86 64bit)
GCC (ppc 64bit)
what i have to do to get 32 bit as well. Thanks in advance.
Create a Kit for this in Creator's settings. It's in Tools->Options->Build & Run. Then add that Kit in the settings of your project.
Unless of course the Qt libraries you've installed are 64-bit only. In that case, you obviously can't build 32-bit applications with them. If that's the case, you need to build Qt on your own for 32-bit.
I try to build the latest source of the Qt 4.8 beta with gcc 4.6.1 configure fails with the following:
cc1plus: error: unrecognized command line option ‘-fconstant-cfstrings’
It seems to be working with the g++ version (i686-apple-darwin11-llvm-g++-4.2) shipped with XCode 4.1
The reason for this combo of gcc and qt is that i want to try out the new C++11 features available in the latest version of Qt.
I have a same problem but with gcc 4.8.1
but i manually erase it in root project dir configure file and corelib/configure[released|debug]
for now i cant find where is generated.