[Ipe-discuss] install pb , mac osx

Sherif Ghali sherif.ghali at yahoo.com
Fri Nov 19 05:51:23 CET 2010


The main trouble with Snow Leopard is that the link errors resulting from mixing 
32- and 64-bit libraries are quite cryptic.

If you choose on Nokia's website "Qt SDK for Mac" under "Qt SDK: complete 
development environment", what you get is a 32-bit library.

But if you install MacPorts through the dmg file, what you get are 64-bit 
libraries and applications.

You have the choice of installing a 64-bit Qt or downgrading MacPorts to 32 
bits.

The nice folks at Nokia make it easy. Qt is also provided as a precompiled 
64-bit library for Cocoa. 
   http://labs.qt.nokia.com/2008/03/03/qtmac-cocoa-port-alpha-released/
Look for "4.x.x for Mac" under "Qt Framework Only".

The alternative, recompiling MacPorts as a 32-bit library, is messy.
See
    http://superuser.com/questions/63198/install-32-bits-ports-on-snow-leopard
before you dive into solving the errors. To start, you'll need to replace 
"build_arch x86_64" with "build_arch i386" in 
/opt/local/etc/macports/macports.conf.

Also, because Ipe 6 used qmake, it would have been a simple matter to switch 
between 32 and 64 bits by modifying just one line. Out of the box Ipe 7 will 
compile in 64 bits. To switch down to 32 bits, you will need to insert "CXXFLAGS 
+= -m32" wherever you see "ifdefMACOS" in a Makefile.

The short story is this: install a 64-bit version of Qt. Since MacPorts is 
compiled in 64 bits, it only remains to follow install.txt.

Of course the mileage of your cryptic message may vary.

Sherif





----- Original Message ----
From: Olivier Devillers <olivier.devillers at sophia.inria.fr>
To: ipe-discuss at cs.uu.nl
Sent: Thu, November 18, 2010 4:28:24 AM
Subject: [Ipe-discuss] install pb , mac osx


Hi,

I do not succeed to compile ipe on mac os x 10.6   (even if I already compile it 
succesfully on other machine)

If anybody have an idea of what is missing on my machine.

Thanks in advance
Olivier

(I got different errors for ipe 7.0.10 and 7.0.11)


g++  -dynamiclib   -o ../../build/lib/libipe.so.7.0.11 
../../build/obj/ipelib/ipebase.o ../../build/obj/ipelib/ipeplatform.o 
../../build/obj/ipelib/ipegeo.o ../../build/obj/ipelib/ipexml.o 
../../build/obj/ipelib/ipeattributes.o ../../build/obj/ipelib/ipebitmap.o 
../../build/obj/ipelib/ipedct.o ../../build/obj/ipelib/ipeshape.o 
../../build/obj/ipelib/ipegroup.o ../../build/obj/ipelib/ipeimage.o 
../../build/obj/ipelib/ipetext.o ../../build/obj/ipelib/ipepath.o 
../../build/obj/ipelib/ipereference.o ../../build/obj/ipelib/ipeobject.o 
../../build/obj/ipelib/ipefactory.o ../../build/obj/ipelib/ipestdstyles.o 
../../build/obj/ipelib/ipeiml.o ../../build/obj/ipelib/ipepage.o 
../../build/obj/ipelib/ipepainter.o ../../build/obj/ipelib/ipepdfparser.o 
../../build/obj/ipelib/ipepdfwriter.o ../../build/obj/ipelib/ipepswriter.o 
../../build/obj/ipelib/ipestyle.o ../../build/obj/ipelib/ipesnap.o 
../../build/obj/ipelib/ipeutils.o ../../build/obj/ipelib/ipelatex.o 
../../build/obj/ipelib/ipedoc.o -lz
Undefined symbols:
"_iconv_close", referenced from:
     ipe::Document::runLatex(ipe::String&)   in ipedoc.o
     ipe::Document::runLatex(ipe::String&)   in ipedoc.o
"_iconv", referenced from:
     ipe::Document::runLatex(ipe::String&)   in ipedoc.o
"_iconv_open", referenced from:
     ipe::Document::runLatex(ipe::String&)   in ipedoc.o
ld: symbol(s) not found



g++  -dynamiclib   -o ../../build/lib/libipeui.so.7.0.10 
../../build/obj/ipeui/ipeui.o ../../build/obj/ipeui/moc_ipeui.o 
-F/Library/Frameworks -L/Library/Frameworks -framework QtCore -framework 
ApplicationServices -framework QtGui -framework AppKit -framework Cocoa -lz -lm 
-L/opt/local/lib -llua -lm
Undefined symbols:
"QListData::detach(int)", referenced from:
    QList<QString>::detach_helper(int)    in ipeui.o
"QListData::detach_grow(int*, int)", referenced from:
    QList<QString>::detach_helper_grow(int, int)in ipeui.o
ld: symbol(s) not found
_______________________________________________
Ipe-discuss mailing list
Ipe-discuss at cs.uu.nl
https://mail.cs.uu.nl/mailman/listinfo/ipe-discuss



      



More information about the Ipe-discuss mailing list