[KDE/Mac] qt4-mac from macports

Andreas Heider andreas at meetr.de
Mon Apr 13 13:55:14 CEST 2009


SetStrech was introduced with qt 4.5 and you probably have some older  
qt version installed. Try removing the old qt with /Developer/Tools/ 
uninstall-qt.py.

Am 13.04.2009 um 11:12 schrieb jolz:

> On my mac, i installed (in pre-macports ages *g*) a Qt-SDK from http://www.qtsoftware.com/downloads
> ... so a "/usr/bin/qmake" with this (outdated) version existed (is a  
> symlink to /usr/bin/qmake-<version>).
>
> I've tried
>
>  sudo ln -vnsf /opt/local/bin/qmake-kde /usr/bin/qmake
>
> but kdelibs4 still don't compile... any hints? is qmake-kde4 a good  
> choice or should i try qmake-mac ??
>
> $ sudo port -vuR upgrade kdelibs4
>
> [...]
>
> [ 36%] Built target kdeui
> make: *** [all] Error 2
> Error: Target org.macports.build returned: shell command " cd "/opt/ 
> local/var/macports/build/ 
> _opt_local_var_macports_sources_rsync 
> .macports.org_release_ports_kde_kdelibs4/work/build" && make -j2 all  
> " returned error 2
> Command output: ld warning:  
> QList<QString>::free(QListData::Data*)       has different  
> visibility (default) in /usr/lib/libQtUiTools.a(ui4.o) and (hidden)  
> in CMakeFiles/kjsembed.dir/variant_binding.o
> ld warning: QList<QString>::detach_helper()       has different  
> visibility (default) in /usr/lib/libQtUiTools.a(ui4.o) and (hidden)  
> in CMakeFiles/kjsembed.dir/variant_binding.o
> ld warning: QList<QString>::append(QString const&)has different  
> visibility (default) in /usr/lib/libQtUiTools.a(ui4.o) and (hidden)  
> in CMakeFiles/kjsembed.dir/variant_binding.o
> ld warning: QList<QString>::~QList() has different visibility  
> (default) in /usr/lib/libQtUiTools.a(ui4.o) and (hidden) in  
> CMakeFiles/kjsembed.dir/variant_binding.o
> ld warning: QString::~QString()has different visibility (default)  
> in /usr/lib/libQtUiTools.a(properties.o) and (hidden) in CMakeFiles/ 
> kjsembed.dir/jseventmapper.o
> ld warning: QList<QString>::free(QListData::Data*)       has  
> different visibility (default) in /usr/lib/ 
> libQtUiTools.a(properties.o) and (hidden) in CMakeFiles/kjsembed.dir/ 
> variant_binding.o
> ld warning: QList<QString>::detach_helper()       has different  
> visibility (default) in /usr/lib/libQtUiTools.a(properties.o) and  
> (hidden) in CMakeFiles/kjsembed.dir/variant_binding.o
> ld warning: QList<QString>::~QList() has different visibility  
> (default) in /usr/lib/libQtUiTools.a(properties.o) and (hidden) in  
> CMakeFiles/kjsembed.dir/variant_binding.o
> ld warning: QColor qvariant_cast<QColor>(QVariant const&)has  
> different visibility (default) in /usr/lib/ 
> libQtUiTools.a(properties.o) and (hidden) in CMakeFiles/kjsembed.dir/ 
> qobject_binding.o
> ld warning: QBrush qvariant_cast<QBrush>(QVariant const&)has  
> different visibility (default) in /usr/lib/ 
> libQtUiTools.a(properties.o) and (hidden) in CMakeFiles/kjsembed.dir/ 
> pen.o
> ld warning: QStringList qvariant_cast<QStringList>(QVariant  
> const&)has different visibility (default) in /usr/lib/ 
> libQtUiTools.a(properties.o) and (hidden) in CMakeFiles/kjsembed.dir/ 
> variant_binding.o
> ld warning: QFont qvariant_cast<QFont>(QVariant const&)has different  
> visibility (default) in /usr/lib/libQtUiTools.a(properties.o) and  
> (hidden) in CMakeFiles/kjsembed.dir/font.o
> Undefined symbols:
>   "QBoxLayout::stretch(int) const", referenced from:
>       __ZNK10QBoxLayout7stretchEi$non_lazy_ptr in  
> libQtUiTools.a(formbuilderextra.o)
>   "QBoxLayout::setStretch(int, int)", referenced from:
>       __ZN10QBoxLayout10setStretchEii$non_lazy_ptr in  
> libQtUiTools.a(formbuilderextra.o)
>   "QString::compare_helper(QChar const*, int, QChar const*, int,  
> Qt::CaseSensitivity)", referenced from:
>       QStringRef::compare(QString const&, Qt::CaseSensitivity)  
> constin libQtUiTools.a(abstractformbuilder.o)
> ld: symbol(s) not found
> collect2: ld returned 1 exit status
>
>
>
>
> 2009/4/6 Craig Bradney <cbradney at zip.com.au>
> Its a hack, but edit the FindQt4.cmake file and find the FIND_PROGRAM
> line where it is like so:
> FIND_PROGRAM(QT_QMAKE_EXECUTABLE NAMES qmake qmake4 qmake-qt4 PATHS
>
> and change to:
>
> FIND_PROGRAM(QT_QMAKE_EXECUTABLE NAMES qmake qmake4 qmake-qt4 qmake-
> mac PATHS
>
> I dont really understand how this could go unnoticed... given KDE4 is
> somewhat working already..... surely there is a patch already out
> there that some people with commit rights for CMake on OSX via
> macports are using.
>
> Craig
>
> On Apr 6, 2009, at 2:43 PM, Flavio Castelli wrote:
>
> > I have upgraded qt4-mac to latest version and now qmake (and other
> > qt tools)
> > is called qmake-mac.
> > At the same time cmake isn't able to find Qt libraries, making hard
> > to build
> > kde and other qt-based projects.
> >
> > Any hint?
> >
> > Flavio
> > _______________________________________________
> > kde-mac at kde.org
> > List Information: https://mail.kde.org/mailman/listinfo/kde-mac
> > KDE/Mac Information: http://techbase.kde.org/index.php?title=Projects/KDE_on_Mac_OS_X
> >
>
> _______________________________________________
> kde-mac at kde.org
> List Information: https://mail.kde.org/mailman/listinfo/kde-mac
> KDE/Mac Information: http://techbase.kde.org/index.php?title=Projects/KDE_on_Mac_OS_X
>
>
> _______________________________________________
> kde-mac at kde.org
> List Information: https://mail.kde.org/mailman/listinfo/kde-mac
> KDE/Mac Information: http://techbase.kde.org/index.php?title=Projects/KDE_on_Mac_OS_X



More information about the kde-mac mailing list