[QScintilla] Building QScintilla-gpl-2-snapshot-20070812 on OSX 10.4

PPK-Webprogramm ciz at ciz.ch
Tue Aug 14 09:07:16 BST 2007


Bob Tanner ha scritto:
> Attempting to build QScintilla-gpl-2-snapshot-20070812 under OSX 10.4
>   

I dont know, how you build QT4 ?

I have successful build QScintilla-gpl-2-snapshot +  QT4 -static: ( i 
dont like relink libs inside mac bundle )
http://wiki.qtcentre.org/index.php?title=Installing_Qt4_on_Mac_OS_X

from 
http://www.riverbankcomputing.com/Downloads/Snapshots/QScintilla2/QScintilla-gpl-2-snapshot-20070812.tar.gz

after i change Qt4.pro

TEMPLATE = lib
TARGET = qscintilla2
CONFIG += qt warn_off release staticlib thread
INCLUDEPATH = . ../include ../src
DEFINES =  QT SCI_LEXER

# Handle both Qt v4 and v3.
### my own target from static lib
### DESTDIR = ../../all_os_libs
DESTDIR = lib
### to build on all mac arch
macx {
QMAKE_MAC_SDK=/Developer/SDKs/MacOSX10.4u.sdk
CONFIG+=x86 ppc
}


HEADERS ............
SOURCES ............

and i have fix a  small bug from the new XCode 2.4   compile error

on File src/Editor.cpp   line 5106

#ifdef __APPLE__
            // we need to additionaly check if the mouse moved before we
            // decide that we can in fact start a drag session.  Currently
            // only OSX will return anything but true.
            ////////////if (inDragDrop == ddInitial && 
!Platform::WaitMouseMoved(pt)) {
                /////////////inDragDrop = ddNone;
            //////////////}
#endif

on qviscintilla.h on public section i append only :
inline QString TextUnderCursor(int &pos) {
    return getWord(pos);
    }
to use autocompleter from QT4   QCompleter


and i can use qscintilla on PPC or Intel Mac


qmake -v
QMake version 2.01a
Using Qt version 4.4.0-snapshot-20070608 in 
/usr/local/Trolltech/Qt-4.4.0-snapshot-20070608/lib
 gcc --version
powerpc-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 
5363)
Copyright (C) 2005 Free Software Foundation, Inc.

My config.status   on /Developer/qt
#!/bin/sh
if [ "$#" -gt 0 ]; then
  CFLAGS='-arch ppc -arch i386 -g -Os -fno-omit-frame-pointer 
-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk' /Developer/qt/configure 
-qt-zlib -qt-libtiff -no-qt3support -qt-sql-mysql -qt-sql-odbc 
-qt-sql-sqlite -qt-gif -qt-libpng -qt-libjpeg -I 
/usr/local/mysql2arch/include/mysql -L /usr/local/mysql2arch/lib/mysql 
-lmysqlclient_r -universal -sdk /Developer/SDKs/MacOSX10.4u.sdk -static 
-release -confirm-license "$@"
else
  CFLAGS='-arch ppc -arch i386 -g -Os -fno-omit-frame-pointer 
-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk' /Developer/qt/configure 
-qt-zlib -qt-libtiff -no-qt3support -qt-sql-mysql -qt-sql-odbc 
-qt-sql-sqlite -qt-gif -qt-libpng -qt-libjpeg -I 
/usr/local/mysql2arch/include/mysql -L /usr/local/mysql2arch/lib/mysql 
-lmysqlclient_r -universal -sdk /Developer/SDKs/MacOSX10.4u.sdk -static 
-release -confirm-license
fi





> $ make
> <snip>
>
> rm -f libqscintilla2.3.0.0.dylib libqscintilla2.dylib
> libqscintilla2.3.dylib libqscintilla2.3.0.dylib
> c++ -headerpad_max_install_names -single_module -dynamiclib
> -compatibility_version      3.0 -current_version    3.0.0
> -install_name     libqscintilla2.3.dylib -o libqscintilla2.3.0.0.dylib
>  <snip>
>
> ld: warning -L: directory name
> (/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_qt4-mac/work/qt-mac-opensource-src-4.2.2/lib)
> does not exist
> ld: Undefined symbols:
> __ZN8Platform14WaitMouseMovedE5Point
> /usr/bin/libtool: internal link edit command failed
> make: *** [libqscintilla2.3.0.0.dylib] Error 1
>
> $ gcc --version
> i686-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5367)
>
> $ qmake --version
> QMake version 2.01a
> Using Qt version 4.2.2 in /opt/local/lib
>
> $ uname -a
> Darwin mage.local 8.10.1 Darwin Kernel Version 8.10.1: Wed May 23
> 16:33:00 PDT 2007; root:xnu-792.22.5~1/RELEASE_I386 i386 i386
>
> Not sure if these are necessary to build, but listing them anyways.
>
> sip-4.7
> pyqt-4.3
>
>
>
> _______________________________________________
> QScintilla mailing list
> QScintilla at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/qscintilla
>   



More information about the QScintilla mailing list