Problems with MAC (string.h: No such file or directory) [solved]
-
macdeployqt is a binary tool that has to be used after the compilation. This is not a build step specified in the makefile, and it does not matter whether you have compiled from terminal or Qt Creator. You just need to run the tool afterwards, from the terminal, and preferably with high verbosity level to make sure you spot errors (macdeployqt does not bail out on most errors).
-
wrote on 25 Mar 2013, 11:15 last edited by
Hi!!!!
I understand MAC manner each day.
I follow all the instructions in the web. When I execute the instructions, I have no problem.
But when I finish linking all the libraries that my program needs, and the same with the libraries including, both my program and my libraries doesn't change anything (with the otool -L instruction)
Thanks in advance!!!
-
wrote on 26 Mar 2013, 08:53 last edited by
Hi!!!!
Forget my last reply, my problem is before.
I don't know where I have to transform the Qt to a static library. The ./configure static instruction doesn't work in any place.
I have installed Qt5.0.1 and Qt4.8.4. I use Qt4.8.4 to compile.
The frameworks are in /Library/Frameworks and the plugins are in /Developer/Application/Qt/plugins.
When I installed I didn't change anything.
What I have to do???
Super Thanks in advance!!!
Muchas gracias por adelantado!!!
-
@
./configure -static
make sub-src
@ -
wrote on 26 Mar 2013, 09:00 last edited by
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!!!
-
wrote on 26 Mar 2013, 09:01 last edited by
Inside the Qt folder I have:
Assistant.app Linguist.app imports pixeltool.app qdbusviewer.app qtdemo.ap
Designer.app QMLViewer.app phrasebooks plugins qhelpconverter.app translations -
wrote on 26 Mar 2013, 11:00 last edited by
I have realized that I have Xcode 3.0 another time I don't know why... Can be the problem?
Ohh God I hate MAC...
-
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.
-
wrote on 26 Mar 2013, 11:17 last edited by
But, why it's possible that MAC unistall alone things??
-
Sorry, I don't understand that question, please rephrase.
-
wrote on 26 Mar 2013, 11:21 last edited by
Oh nothing, I thought that when I installed the new version, automatically remove the Xcode 3.0.
-
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.
-
wrote on 26 Mar 2013, 11:26 last edited by
And it's possible that I have problems with Qt? and with ./configure instruction???
Having both versions...
-
wrote on 26 Mar 2013, 12:23 last edited by
When I use ./configure -static, terminal answer me:
-bash: ./configure: No such file or directory.
Any idea??
-
Well, ss the script present in the directory you are in?
-
Hi, configure is found in the root directory of Qt's sources
-
wrote on 26 Mar 2013, 12:34 last edited by
Hi!!,
My Qt directory is in /Developer/Tools/Qt (and Qt5.0.1) and no one has configure...
-
wrote on 26 Mar 2013, 12:37 last edited by
I have installed qt-mac-opensource-4.8.4 and qt-mac-opensource-5-1.0.1-clang-offline
-
No need to configure, then. Your Qt is precompiled.
-
wrote on 26 Mar 2013, 12:42 last edited by
And then what is my problem?? Is problem with the linking the libraries??
27/74