[QScintilla] examples-Qt4 on OSX 10.4 link errors: multiple symbol
.objc_class_name_QNS
Bob Tanner
tanner at real-time.com
Thu Aug 23 05:51:49 BST 2007
Build Qt-4.3.1 like this:
|$ tar -xvzf qt-mac-opensource-src-4.3.1.tar.gz
$ cd qt-mac-opensource-src-4.3.1
$ ./configure -prefix /Developer/qt -qt-zlib -qt-libpng -qt-libjpeg
-universal -sdk /Developer/SDKs/MacOSX10.4u.sdk
$ make
$ ./configure -prefix /Developer/qt -qt-zlib -qt-libpng -qt-libjpeg
-universal -sdk /Developer/SDKs/MacOSX10.4u.sdk -static -release
$ make sub-src
$ sudo make install
Build QScintilla like this:
||$ tar -xvzf QScintilla-1.73-gpl-2.1.tar.gz
$ cd QScintilla-1.73-gpl-2.1/Qt4/
$ qmake qscintilla.pro
$ make
$ sudo make install
|
Trying to make the Qt4 examples:
$ cd ../example-Qt4/
$ qmake
$ make
<snip>
c++ -headerpad_max_install_names -o
application.app/Contents/MacOS/application main.o mainwindow.o
moc_mainwindow.o qrc_application.o -L/Developer/qt/lib -lqscintilla2
-lQtGui -L/Developer/qt/lib -framework Carbon -framework AppKit -lQtCore
-lz -lm -liconv -framework ApplicationServices
/usr/bin/ld: multiple definitions of symbol
.objc_class_name_QMacSoundDelegate
/Developer/qt/lib/libqscintilla2.dylib(single module) definition of
.objc_class_name_QMacSoundDelegate
/Developer/qt/lib/libQtGui.a(qsound_mac.o) definition of absolute
.objc_class_name_QMacSoundDelegate (value 0x0)
/usr/bin/ld: multiple definitions of symbol
.objc_category_name_NSStatusItem_Qt
/Developer/qt/lib/libqscintilla2.dylib(single module) definition of
.objc_category_name_NSStatusItem_Qt
/Developer/qt/lib/libQtGui.a(qsystemtrayicon_mac.o) definition of
absolute .objc_category_name_NSStatusItem_Qt (value 0x0)
/usr/bin/ld: multiple definitions of symbol .objc_class_name_QNSImageView
/Developer/qt/lib/libqscintilla2.dylib(single module) definition of
.objc_class_name_QNSImageView
/Developer/qt/lib/libQtGui.a(qsystemtrayicon_mac.o) definition of
absolute .objc_class_name_QNSImageView (value 0x0)
/usr/bin/ld: multiple definitions of symbol .objc_class_name_QNSMenu
/Developer/qt/lib/libqscintilla2.dylib(single module) definition of
.objc_class_name_QNSMenu
/Developer/qt/lib/libQtGui.a(qsystemtrayicon_mac.o) definition of
absolute .objc_class_name_QNSMenu (value 0x0)
/usr/bin/ld: multiple definitions of symbol .objc_class_name_QNSStatusItem
/Developer/qt/lib/libqscintilla2.dylib(single module) definition of
.objc_class_name_QNSStatusItem
/Developer/qt/lib/libQtGui.a(qsystemtrayicon_mac.o) definition of
absolute .objc_class_name_QNSStatusItem (value 0x0)
collect2: ld returned 1 exit status
make: *** [application.app/Contents/MacOS/application] Error 1
More information about the QScintilla
mailing list