Problems with MAC (string.h: No such file or directory) [solved]
-
@
./configure -static
make sub-src
@ -
I have had an error in the last post, I use ./configure -static
In http://qt-project.org/doc/qt-4.8/deployment-mac.html#application-dependencies uses this instruction in the Qt path but in my /Developer/application/Qt/ doesn't work...
Thanks!!!
-
You are not alone :)
Yeah it would probably be better to upgrade to Xcode 4.x, although the compilation should work with 3.x, too.
-
Sorry, I don't understand that question, please rephrase.
-
Xcode 3 has a different unistallation procedure than 4.6. IIRC, you need to run /Developer/xcode_uninstall or something similar. Search the web, there are tutorials on that.
-
Well, ss the script present in the directory you are in?
-
Hi, configure is found in the root directory of Qt's sources
-
No need to configure, then. Your Qt is precompiled.
-
On the Mac a good alternative to using the Qt downloads from qt-project.org is to use the Brew package manager.
Follow these instructions to install brew http://mxcl.github.com/homebrew/
Then use it to install QT, brew install qt will install Qt4 and brew install qt5 will install Qt5.
The nice part about using brew is that you can actually have multiple versions of Qt installed and switch between them. brew switch qt <version>
I've also found that sometimes I had to run macdeployqt with sudo.
-
I gonna write step by step the instructions I use, in case I am confusing myself:
For example, to link the libraries to QtNetwork.
First of all I copy all the libraries that I need (There are in /Libraries/Frameworks) in example.app/Contents/Frameworks/...
* *otool -L example.app/Contents/Frameworks/QtNetwork.framework/Versions/4.0/QtNetwork* example.app/Contents/Frameworks/QtNetwork.framework/Versions/4.0/QtNetwork: @executable_path/../Frameworks/QtNetwork.framework/Versions/4.0/QtNetwork (compatibility version 4.8.0, current version 4.8.4) QtCore.framework/Versions/4/QtCore (compatibility version 4.8.0, current version 4.8.4) /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3) ....... **install_name_tool -id @executable_path/../Frameworks/QtCore.framework/Versions/4.0/QtCore plugandpaint.app/Contents/Frameworks/QtCore.framework/Versions/4.0/QtCore* **install_name_tool -change /Library/Frameworks/QtCore.framework/Versions/4.0/QtCore @executable_path/../Frameworks/QtCore.framework/Versions/4.0/QtCore example.app/Contents/Frameworks/QtNetwork.framework/Versions/4.0/QtNetwork* * *otool -L example.app/Contents/Frameworks/QtNetwork.framework/Versions/4.0/QtNetwork* example.app/Contents/Frameworks/QtNetwork.framework/Versions/4.0/QtNetwork: @executable_path/../Frameworks/QtNetwork.framework/Versions/4.0/QtNetwork (compatibility version 4.8.0, current version 4.8.4) QtCore.framework/Versions/4/QtCore (compatibility version 4.8.0, current version 4.8.4) /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3) .......
Any idea???