Assistance with setting up Qt with my Mac?
-
[quote author="SGaist" date="1415656599"]If you downloaded the latest Qt version it should be something like 5.3.X or 5.4 if you got the beta.
You are following the 4.8 documentation, which is not completely valid for the 5.X series.
Anyway, you can use Spotlight to find the exact position of qmake[/quote]
I have the 5.3 so what do i need to do? What do i personally need to follow to make sure that Qt is fully installed and ready to be used?
Also i opened a terminal and "cd" to the folder that contains the main.cpp for the projects i want to use with Qt.
When i do the qmake, i get the problem that its supposibly not working!
What can i do?
-
What I already wrote: call qmake with the absolute path to it e.g.
@/usr/local/Qt/5.3.1/bin/qmake@
Or something like that. You can easily find qmake using spotlight
-
[quote author="SGaist" date="1415752681"]What I already wrote: call qmake with the absolute path to it e.g.
@/usr/local/Qt/5.3.1/bin/qmake@
Or something like that. You can easily find qmake using spotlight[/quote]
i get tons of qmake lol literally, i hate the Qt folder which has this:
Qt > 5.3 >
android_armv7
clang_64
ios
SrcThen each one of those folder have theyre own qmake, so in reality which one do i choose? i know i dont use ios or android since im building for desktop, so would i get clang or Src? Also if i choose src, what folder in Src do i choose? I have a bunch of folders starting with Qt....
Sorry for all the dumb questions, i dont know about this and what might be simple for you guys might be a bit confusing for me! I appreciate all the help !
So to clarify, i open up Terminal, then "sudo cd" into the directory were qmake is found in, correct? Once in there, i run the codes:
qmake -project
qmake -spec macx-xcode
makeHowever, my other question is, would i need to also insert the location of the folder were i'll be creating the program?
-
No need to use sudo. And you should cd into your project directory, not qmake dir. You should use qmake from clang_64 folder, like this:
@
cd /your/project/directory
/Qt/5.3/clang_64/bin/qmake -project
/Qt/5.3/clang_64/bin/qmake -spec macx-xcode
make
@ -
[quote author="sierdzio" date="1415775064"]No need to use sudo. And you should cd into your project directory, not qmake dir. You should use qmake from clang_64 folder, like this:
@
cd /your/project/directory
/Qt/5.3/clang_64/bin/qmake -project
/Qt/5.3/clang_64/bin/qmake -spec macx-xcode
make
@[/quote]Wow thats remarkably really straightforward lol, never knew that it was that simple! I guess i was simply been overwelmed by the tons of files!
anyways when i call the qmake -project i get this error:
Project ERROR: Could not resolve SDK path for 'macosx10.8'
I'm guessing that Qt SDK is not properly linked to the macosx10.8, or what could it be specifically?
-
[quote author="sierdzio" date="1415775064"]No need to use sudo. And you should cd into your project directory, not qmake dir. You should use qmake from clang_64 folder, like this:
@
cd /your/project/directory
/Qt/5.3/clang_64/bin/qmake -project
/Qt/5.3/clang_64/bin/qmake -spec macx-xcode
make
@[/quote]Wow thats remarkably really straightforward lol, never knew that it was that simple! I guess i was simply been overwelmed by the tons of files!
anyways when i call the qmake -project i get this error:
Project ERROR: Could not resolve SDK path for 'macosx10.8'
I'm guessing that Qt SDK is not properly linked to the macosx10.8, or what could it be specifically?
-
You're on Qt 4.8.6, right? It does not know about OS X 10.10, so I guess that is the problem. Check in Xcode, whether that SDK version is installed (and if it is still available at all).
-
Qt's properly linked, the thing is that the latest version of Xcode doesn't provide that SDK anymore.
IIRC, you only need to update the macx-clang mkspec to use the one you get with your version of Xcode
-
[quote author="SGaist" date="1415830510"]Qt's properly linked, the thing is that the latest version of Xcode doesn't provide that SDK anymore.
IIRC, you only need to update the macx-clang mkspec to use the one you get with your version of Xcode[/quote]
What do you mean? i have the latest Qt 5.3 sdk and xCode 6 so is there something i need to do specifically to be able to get what i need working already?
-
SGaist means you may need to modify macx-clang mkspecs (it's a folder inside Qt installation, which holds build configurations for different platforms) so that Qt knows about this new SDK.