[Moved] Installation Problems on Mac
-
Hello, I'm trying to install Qt on a Mac running OSX 10.6.2
First I tried the online installer, and when I started the installation and opened a project, I got a compiler error as follows:
Error while building project test (target: Desktop)
When executing build step ''and I have no idea what build step """ is.
After this, I tried to build it from source by first uninstalling this and then building it as per the instructions on this website.
However, then it would not start at all from the command line.I then tried the "Qt SDK Installer" but I get the same compiler errors as I did before. So I'm lost as to what is going wrong, and also the include paths are not correctly linked.
-
I may sound a bit strange, but have you installed XCode beforehand?
-
I've personally had the best luck installing Qt and its SDK using MacPorts, rather than using the official distribution.
-
Yes, I've had XCode for about a year and a half now, so that's not it.
And Chris, can you explain more in depth how one would go about doing this in MacPorts?
-
Sure: first off you start by installing "Macports":http://www.macports.org/ following their normal instructions. Once you've got that, you simply run (on the command line):
@sudo port install qt4-mac@ and then probably also @sudo port install qt4-creator-mac@ The apps themselves will wind up installed in /Applications/MacPorts/Qt4/* and the libraries in /opt/local/. -
Well I tried it with MacPorts, and It couldn't find QMake, and I tried again with the command line build from source and I get this error:
@
ld: in .obj/debug-shared/AccessibilityListBoxOption.o, file too small
collect2: ld returned 1 exit status
make[2]: *** [../../../../lib/QtWebKit.framework/QtWebKit_debug] Error 1
make[1]: *** [debug-install] Error 2
make: *** [sub-webkit-install_subtargets-ordered] Error 2
bash-3.2$@