« first day (3 days earlier)    last day (15 days later) » 

10:04 AM
I tried. First I did "./configure -platform macx-g++-32 -developer-build -opensource -nomake examples -nomake tests" which ran fine. But then when I ran "make -j4 all install", it is terminating with error:

ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [../../../bin/moc] Error 1
make[1]: *** [sub-moc-install_subtargets] Error 2
make: *** [sub-src-install_subtargets] Error 2
 
 
7 hours later…
4:59 PM
this is what I told you; you need all the 32 bit dependencies.
It would be much simpler if you could grab a 32 bit Mac for this step and build the library on that.
 
SO how do I get them? What do I need to do?
Can't do that.. :(
Haven't got one anywhere near.. :(
 
but even if you do that, you will need to have the Qt dependencies.
 
Where do I get them from?
 
no idea :)
I would know it on Linux.
 
Oh okay then. Let's call it a day. If I did the entire thing on mac 32 bit, it will run smoothly you say?
 
5:02 PM
depends ... I still would not recommend 32 bit on 64 bit Mac when running it.
why do you need 32 bit Mac application if your machine is 64 bit anyway? Could you please clarify?
 
Yes, because we are using internal libraries (developed by other teams in my company) long back that are 32 bit. 64 bit Qt won't work with them.
I asked them whether it is possible to rewrite all of them as 64 bit.
It will be voluminous task, and no one will allow that if that is for such a trivial thing.
 
voluminous. :O
 
Can't we include Objective C source files (.mm) in the Qt app itself, along with the normal .cpp files, and build it?
 
they are not really careful programmers then, sorry.... either way
 
yes, that's what they said.. :(
Umm, I should say to some extent, yes.
 
5:04 PM
I would suggest to experiment in Virtualbox first.
with 32 bit installed.
 
But they were writeen like 7-8 years back when 32 bit was the main thing.
 
but of course you can go ahead and google for "32 bit chroot on Mac" or something.
 
After all we today don't write 128 bit apps in the hope that after 10 years 128 bit sytems will be popular, do we..
 
It is very simple to set up multilibs on my Archlinux as it comes for free with the package manager. I do not know if they do that in homebrew and other package obtaining solutions.
 
Yeah U can do that. But no. I have worked enough on it. Will tell my team let's wait for the next QT release and then we will fix it..
 
5:06 PM
even if you do not patch Qt, you would still need the dependencies.
"After all we today don't write 128 bit apps in the hope that after 10 years 128 bit sytems will be popular, do we.." -> I do :D
I write platform independent code.
 
That' why you are so awesome.. :D
Yeah we have the complete Qt 32 bit with us...
 
int pointer to the rescue; that will work anytime, either way...
ask a Mac developer, how they build 32 bit target on 64 bit host.
it is a general problem, not Qt issue.
 
Oh ok, will do..
 
if you are using homebrew, check whether they have 32 bit multilibs.
 
Good read. Thanks..
 
5:11 PM
btw, you could also add this to configure: -nomake demos
it will slightly speed the process up, not much though.
0
A: Building Qt 4.7.4 32 bit libraries on Mac

Nicholas SmithYou need to specify two things, one that it needs to use GCC, and the other that it's 32 bit. GCC is specified with -platform macx-g++42 and the other is just the simple -arch x86

try this answer, too.
seems he is using the old 4.2 gcc to me.
 
Yes, but no use, we will need the dependencies all the same won't we..So no use. Can't we include an Objective C source file, and include a function, say f in it, that accepts a NSString and return a NSString which can later be converted into QString? That way, after the drag and drop occurs and I get that bizarre file name, I can call that function in the Objective C class with that string and get the converted file path in return?
 
I have never seen the -arch option, and it is undocumented, too.
I do not know where the guy got that from.
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
that worries me.
you were using g++, so what is this clang thing?
if you want to use clang, you need macx-clang-32.
why are you mixing the toolchains?
 
Umm, those things we did not set up. When we set the qmake to the destination in the 32 bit Qt installation path, the flag was set automatically..
 
automatically in qtcreator, you mean.
 
Yep..
 
5:21 PM
anyhow, you need to investigate why you are mixing toolchains.
 
Will do. Will have a thorough discussion also, as to how long should we continue to use 32 bit libraries..
 
the easiest would be to install virtualbox with 32 bit mac inside.
and the steps would be the same as before.
but anyway, Qt was compiling, the error was coming from the linker.
 
Hmm, will check for a 32 bit Mac availability first, if not, then will try in Virt...
Yes, got tht..
 
for me, it would be trivial on Linux to guide through the 32 bit build process on 64, but I do not know Mac.
I always build 32 bit for arm target on 64 bit host.
what package manager are you using?
 
No problem, you already did so much to help us. Package manager as in?
 
5:24 PM
how do you install software on Mac?
if you need something?
 
Umm, personal software I use normal dmg files or App store directly. Others, for academic purpose, like Python libraries for example, I use easy_install. For office code, we use git..
 

« first day (3 days earlier)    last day (15 days later) »