Qt Mac binary installs won't run on PowerPC/G5 - qt

I installed the 32 bit Cocoa binary for mac on a G5, none of the Qt apps would run, so I uninstalled it, installed the Carbon binary, & none of those apps would run. What am I doing wrong? I get error messages saying the "application is not supported on this platform".
Mac 10.5.8
Xcode 3.1.2
Qt 4.7.3
1.8 GHz G5 with 2.5 GB RAM.

You want qt-mac-opensource-X.Y.Z.dmg (where X.Y.Z <= 4.6.4, as I understand it; newer versions can be built from source), not qt-mac-cocoa-opensource-X.Y.Z.dmg or qt-mac-cocoa-carbon-X.Y.Z.dmg.
(I believe 4.7 changed the default from carbon to cocoa, and that this is also when Trolltech/Nokia stopped building ppc/i386 universal – I have no clue why, and they don't seem to have made any official announcement of this.)
Anyway, you can grab it at ftp://ftp.qt.nokia.com/qt/source/qt-mac-opensource-4.6.4.dmg.

Related

Deployment of statically linked Qt application backward compatibility

This is my first attempt at making a Qt Application work on different systems.
I have opted for static linking method.I have already compiled the sources of Qt 5.5 and compiled my application with the static Qt. The executable is working fine on my computer.
My operating system is Ubuntu 15.04. But when I tried to run the same executable on Ubuntu 14.04 then I ran into trouble. The key details of the error message are given below.
libstdc++.so.6 cxxabi_1.3.8 not found
I did a standard Google search and realised it was because I had a newer version of it on my machine, the machine where I had created the executable. There were so many different approaches to handle this problem. One of the solutions I saw involved shipping your own copy of libstdc++.so with the executable. But when I tried to copy the .so file to a pen drive, there was a warning saying that the file system does not support such files.
My question is , what am I doing wrong ? Also if I wanted to make the executable target Ubuntu 10.04, what would be the correct procedure handling the backward compatibility issues. I know that one method would be to install the same OS on my machine and then create the executable , is there any other way?
libstd++ is backward compatible but not forward compatible, which means you can run a program with a newer version of libstdc++ than the one you compiled it with but not vice-versa. This is what you experienced.
One way to deal with this issue is using older OS versions as the build machine. When you for example use Ubuntu 14.04 LTS, you'll get this list of compatible target systems.
The build system you're using will probably limit available compilers. On Ubuntu 14.04 you get GCC 4.8, which is good for most C++11 and packages for clang 3.6 are available, which will give you full C++14 support.
Targeting Ubuntu 10.04 will be challenging if you do not want to use a stone age compiler.
The idea of shipping libstdc++ will not help you much because you'll run into the same problem with libc.

Deploying Qt application on Mac OS X Snow Leopard

I am developing a C++ application on Mac OS X 10.8 with Xcode/Qt 4.8.4. I would like it to run on Mac OS X 10.6 and higher. In order to do that I set Xcode deployment target to 10.6, also I use macdeployqt. It works fine on Mac OS X 10.8, but on 10.6 there are lots and lots of issues.
The application crashes because of missing frameworks which are located in different places on 10.6 and 10.8:
Dyld Error Message: Library not loaded:
/System/Library/Frameworks/CoreText.framework/Versions/A/CoreText
Referenced from:
/Volumes/deploy/MyApp.app/Contents/MacOS/../Frameworks/QtGui.framework/Versions/4/QtGui
Library not loaded:
/System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO
Referenced from:
/Applications/MyApp.app/Contents/MacOS/../Frameworks/QtGui.framework/Versions/4/QtGui
...Similar QtWebKit, QtNetwork issues etc etc...
And there are trickier issues are about missing symbols in some system libraries, like libobjc.A.dylib, libSystem.B.dylib, libc++abi.dylib, libc++.1.dylib etc:
Dyld Error Message: Symbol not found:
__dispatch_queue_attr_concurrent Referenced from: /tmp/MyApp.app/Contents/MacOS/../Frameworks/libobjc.A.dylib Expected
in: /usr/lib/libSystem.B.dylib in
/tmp/MyApp.app/Contents/MacOS/../Frameworks/libobjc.A.dylib
Could somebody explain how to fix this? Is it possible at all to target Mac OS X 10.6 when using Qt 4.8.4? Perhaps, Qt 4.8.4 is not fully compatible with 10.6? I have tried to set QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.6 in the .pro file, I am using macdeployqt just passing MyApp.app as the only argument. Any help is appreciated.
In my experience, you are far better off just installing 10.6 on a partition and doing you builds there. I've been building on Mac OS 10.6 against Qt 4.8.4 and using macdeployqt, my application happily works on 10.5 through to 10.8 with no problems

How to run and use Xcode 3 and Xcode 4 under OS X 10.7 Lion?

I am looking for a full guide on how to trick Xcode3 to run under Lion.
I am aware that Apple does not support this, but this doesn't meant it's impossible, it's just not supported.
This is how I upgraded my dev environment to Lion. I am only doing it this way because I'm in a crunch and have some issues with Xcode 4.
I'm just sharing what I did and the issues I encountered, not recommending anything:
I made sure I could build & launch my Apps in 10.6.8 using Xcode 3.2.x.
I upgraded my development machine to Lion 10.7.1.
I can build all my SW products with Xcode 3.2.x.
BUT, the debugger seems unhappy with some things... Though I can step and break, I can't evaluate some expressions. For example, the twist pane won't display contents of complex structures.
I'm wondering if others have debugger issues with the 3.2.x Xcode (GDB) on Lion?
Thanks,
Rick
First you have to obtain the Xcode 3.2.6 install to work. The installer is not going to work on Lion so you have two alternatives:
Run it from another partition where you have 10.6
Path the installer in order to make it run on Lion by following this guide
Also here are some other things you may have to clean inside the xcode projects:
Remove lines like ARCHS = arm7 because it will fail to build for Simulator. Best is to let Xcode use defaults (all supported archs).
Check for SDKROOT = ..., it should be only iphoneos, macosx or undefined (not ""). Keep in mind that the SDK you are building against is not necessary the minimum required SDK for running the application. It's ok if SDKROOT is missing from Xcode project files but it's not ok if it does contain a path or "".
Remove any GCC_VERSION = ...

Mac Qt4: PyQt 4.8 installation error (Need help)

hope someone of you can help me. I'm new to mac and qt, so please forgive me if I ask some dumb questions. So to the problem. I want to install PyQt 4.8 on the macbook (Mac OS X 10.6.4).
First I installed Qt 4.7 like in this description http://doc.trolltech.com/4.7/install-mac.html. Then I installed sip 4.11.2 (without --arch=i386), here the how-to page (http://www.expobrain.net/2010/06/22/install-pyqt4-in-snow-leopard). After that I tried to install PyQt 4.8 (without --use-arch=i386), but I get an error. I googled it, no success. I don't know what to do. I try to build it from source, because I need to install a lot more packages, like qimage2ndarray. And I heard that with the .dmg (binary) you can have some trouble. May be someone can help me. Hope I don't need to reinstall the whole OS.
Here the error.
Olis-MacBook-Pro:PyQt-mac-gpl-4.8 opetra$ python configure.py build
Determining the layout of your Qt installation...
Error: Failed to determine the layout of your Qt installation. Try again using
the --verbose flag to see more detail about the problem.
OK guys, I solved the problem. I had to set the arch, in my case to x86_64, for all three. Not only for sip and PyQt. Without it, qt was compiling PowerPC arch as default. Don't know why, I have a macbook pro 2010 with an i5. Thought the configuration would automatic recognize that.

QT IDE and SDK won't install on Mac OS X

Not sure if this is SO appropriate so feel free to move. It is an IDE though. :)
I want to try the QT IDE on my Snow Leopard machine but for some reason it's not wanting to install. It freezes even (the installer I mean).
I am downloading the 442 meg file from this page: http://qt.nokia.com/downloads
Anyone know why I can't get this to install? Thanks! :)
I'm pretty sure you can't install that on Snow Leopard. Try downloading the 4.6 RC and installing that. You can get the RC here.
More Update;
I have success to install Nokia Qt on my MBP - run pretty good. You can get it here
http://www.forum.nokia.com/Develop/Qt/
Only Simulator is allow, No news on Device deployment support yet.

Resources