Help needed: any Apple users around ?

View: New views
8 Messages — Rating Filter:   Alert me  

Help needed: any Apple users around ?

by Alexander Neundorf :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I need the help from somebody who has an Apple running OSX.

In our FindQt4.cmake in kdelibs/cmake/modules/ there was code for special
handling when Qt is installed as frameworks on OSX.
This code was there since beginning of 2006, and I am quite sure it is not
necessary anymore, so I removed it and committed the modified version to
kdelibs trunk.

So, if you have an Apple machine running OSX and you have Qt installed as a
framework, please try to build kdelibs fresh from an empty build dir and let
me know whether it could successfully find the Qt frameworks.

If this is too much work, there is a simpler way to check that.
Just unpack the attached file and run cmake on it. At the end it should say
which QtCore it found. On my Linux machine this looks like:

~/src/tests/findqt4-test/b$ /opt/cmake-2.6.2-Linux-i386/bin/cmake ..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
...
-- QT_QTCORE_LIBRARY is : "/opt/qt-4.5/qt/lib/libQtCore.so;-lpthread"
-- Configuring done
-- Generating done
-- Build files have been written to: /home/alex/src/tests/findqt4-test/b
~/src/tests/findqt4-test/b$ cd ..


On your Mac with frameworks it should show that it found the framework.
Please let me know whether it still works for you.

Thanks
Alex


findqt4-test.tar.gz (22K) Download Attachment

Re: Help needed: any Apple users around ?

by Bugzilla from michael_zanetti@gmx.net :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Alexander,

I'm getting this on Mac OS X 10.5 having Qt-4.5.2 (and KDE 4.3.0) installed
through MacPorts.

Sonic:build heike$ cmake ../
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at FindQt4.cmake:1695 (MESSAGE):
  Qt qmake not found!
Call Stack (most recent call first):
  CMakeLists.txt:5 (find_package)


-- Configuring incomplete, errors occurred!

Hope this helps... I haven't too much knowledge about how this works on MacOS.

Cheers,
Michael


On Tuesday 10 November 2009 22:18:00 Alexander Neundorf wrote:

> Hi,
>
> I need the help from somebody who has an Apple running OSX.
>
> In our FindQt4.cmake in kdelibs/cmake/modules/ there was code for special
> handling when Qt is installed as frameworks on OSX.
> This code was there since beginning of 2006, and I am quite sure it is not
> necessary anymore, so I removed it and committed the modified version to
> kdelibs trunk.
>
> So, if you have an Apple machine running OSX and you have Qt installed as a
> framework, please try to build kdelibs fresh from an empty build dir and
>  let me know whether it could successfully find the Qt frameworks.
>
> If this is too much work, there is a simpler way to check that.
> Just unpack the attached file and run cmake on it. At the end it should say
> which QtCore it found. On my Linux machine this looks like:
>
> ~/src/tests/findqt4-test/b$ /opt/cmake-2.6.2-Linux-i386/bin/cmake ..
> -- The C compiler identification is GNU
> -- The CXX compiler identification is GNU
> ...
> -- QT_QTCORE_LIBRARY is : "/opt/qt-4.5/qt/lib/libQtCore.so;-lpthread"
> -- Configuring done
> -- Generating done
> -- Build files have been written to: /home/alex/src/tests/findqt4-test/b
> ~/src/tests/findqt4-test/b$ cd ..
>
>
> On your Mac with frameworks it should show that it found the framework.
> Please let me know whether it still works for you.
>
> Thanks
> Alex
>


signature.asc (205 bytes) Download Attachment

Re: Help needed: any Apple users around ?

by Pau Garcia i Quiles :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

2009/11/10 Alexander Neundorf <neundorf@...>:

> Hi,
>
> I need the help from somebody who has an Apple running OSX.
>
> In our FindQt4.cmake in kdelibs/cmake/modules/ there was code for special
> handling when Qt is installed as frameworks on OSX.
> This code was there since beginning of 2006, and I am quite sure it is not
> necessary anymore, so I removed it and committed the modified version to
> kdelibs trunk.
>
> So, if you have an Apple machine running OSX and you have Qt installed as a
> framework, please try to build kdelibs fresh from an empty build dir and let
> me know whether it could successfully find the Qt frameworks.
>
> If this is too much work, there is a simpler way to check that.
> Just unpack the attached file and run cmake on it. At the end it should say
> which QtCore it found. On my Linux machine this looks like:
>
> ~/src/tests/findqt4-test/b$ /opt/cmake-2.6.2-Linux-i386/bin/cmake ..
> -- The C compiler identification is GNU
> -- The CXX compiler identification is GNU
> ...
> -- QT_QTCORE_LIBRARY is : "/opt/qt-4.5/qt/lib/libQtCore.so;-lpthread"
> -- Configuring done
> -- Generating done
> -- Build files have been written to: /home/alex/src/tests/findqt4-test/b
> ~/src/tests/findqt4-test/b$ cd ..
>
>
> On your Mac with frameworks it should show that it found the framework.
> Please let me know whether it still works for you.
I'm attaching the output of CMake 2.6.4 + Qt 4.6 beta 1 on Mac OS X
10.6.2, and the output of CMake 2.8.0rc6 + Qt 4.6 beta 1 on Mac OS X
10.6.2. Qt4 was installed using the installer provided by Trolltech.

--
Pau Garcia i Quiles
http://www.elpauer.org
(Due to my workload, I may need 10 days to answer)

-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - not found.
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - found
-- Looking for QT_MAC_USE_COCOA
-- Looking for QT_MAC_USE_COCOA - found
-- Found Qt-Version 4.6.0 (using /usr/bin/qmake)
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- QT_QTCORE_LIBRARY is : "/Library/Frameworks/QtCore.framework;-lpthread"
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/pgquiles/Downloads/testqt4/findqt4-test/build

-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - not found.
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - found
-- Looking for QT_MAC_USE_COCOA
-- Looking for QT_MAC_USE_COCOA - found
-- Found Qt-Version 4.6.0 (using /usr/bin/qmake)
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- QT_QTCORE_LIBRARY is : "/Library/Frameworks/QtCore.framework;-lpthread"
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/pgquiles/Downloads/testqt4/findqt4-test/build2

Re: Help needed: any Apple users around ?

by Alexander Neundorf :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wednesday 11 November 2009, Michael Zanetti wrote:
> Hi Alexander,
>
> I'm getting this on Mac OS X 10.5 having Qt-4.5.2 (and KDE 4.3.0) installed
> through MacPorts.

This probably means it's not installed as a framework.
Does e.g. the directoy QtCore.framework exist under /Library/Frameworks/
(or in any other place) ?

Alex

Re: Help needed: any Apple users around ?

by Bugzilla from michael_zanetti@gmx.net :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wednesday 11 November 2009 22:40:32 Alexander Neundorf wrote:
> On Wednesday 11 November 2009, Michael Zanetti wrote:
> > I'm getting this on Mac OS X 10.5 having Qt-4.5.2 (and KDE 4.3.0)
> > installed through MacPorts.
>
> This probably means it's not installed as a framework.
> Does e.g. the directoy QtCore.framework exist under /Library/Frameworks/
> (or in any other place) ?
>

They are installed in /opt/local/libexec/qt4-mac/lib/ and symlinked from
various places such as /opt/local/Library/Frameworks/ or
/opt/local/var/macports/software/qt4-mac/4.5.2_1/opt/local/Library/Frameworks/

Sonic:~ heike$ ls -l /opt/local/Library/Frameworks/
total 152
drwxr-xr-x  6 root  wheel  204 Sep  1 12:08 MacPorts.framework
lrwxr-xr-x  1 root  wheel   51 Sep  6 13:32 Qt3Support.framework ->
/opt/local/libexec/qt4-mac/lib/Qt3Support.framework
lrwxr-xr-x  1 root  wheel   52 Sep  6 13:32 QtAssistant.framework ->
/opt/local/libexec/qt4-mac/lib/QtAssistant.framework
lrwxr-xr-x  1 root  wheel   47 Sep  6 13:32 QtCore.framework ->
/opt/local/libexec/qt4-mac/lib/QtCore.framework
lrwxr-xr-x  1 root  wheel   47 Sep  6 13:32 QtDBus.framework ->
/opt/local/libexec/qt4-mac/lib/QtDBus.framework
lrwxr-xr-x  1 root  wheel   51 Sep  6 13:32 QtDesigner.framework ->
/opt/local/libexec/qt4-mac/lib/QtDesigner.framework
lrwxr-xr-x  1 root  wheel   61 Sep  6 13:32 QtDesignerComponents.framework ->
/opt/local/libexec/qt4-mac/lib/QtDesignerComponents.framework
lrwxr-xr-x  1 root  wheel   46 Sep  6 13:32 QtGui.framework ->
/opt/local/libexec/qt4-mac/lib/QtGui.framework
lrwxr-xr-x  1 root  wheel   47 Sep  6 13:32 QtHelp.framework ->
/opt/local/libexec/qt4-mac/lib/QtHelp.framework
lrwxr-xr-x  1 root  wheel   50 Sep  6 13:32 QtNetwork.framework ->
/opt/local/libexec/qt4-mac/lib/QtNetwork.framework
lrwxr-xr-x  1 root  wheel   49 Sep  6 13:32 QtOpenGL.framework ->
/opt/local/libexec/qt4-mac/lib/QtOpenGL.framework
lrwxr-xr-x  1 root  wheel   49 Sep  6 13:32 QtScript.framework ->
/opt/local/libexec/qt4-mac/lib/QtScript.framework
lrwxr-xr-x  1 root  wheel   54 Sep  6 13:32 QtScriptTools.framework ->
/opt/local/libexec/qt4-mac/lib/QtScriptTools.framework
lrwxr-xr-x  1 root  wheel   46 Sep  6 13:32 QtSql.framework ->
/opt/local/libexec/qt4-mac/lib/QtSql.framework
lrwxr-xr-x  1 root  wheel   46 Sep  6 13:32 QtSvg.framework ->
/opt/local/libexec/qt4-mac/lib/QtSvg.framework
lrwxr-xr-x  1 root  wheel   47 Sep  6 13:32 QtTest.framework ->
/opt/local/libexec/qt4-mac/lib/QtTest.framework
lrwxr-xr-x  1 root  wheel   49 Sep  6 13:32 QtWebKit.framework ->
/opt/local/libexec/qt4-mac/lib/QtWebKit.framework
lrwxr-xr-x  1 root  wheel   46 Sep  6 13:32 QtXml.framework ->
/opt/local/libexec/qt4-mac/lib/QtXml.framework
lrwxr-xr-x  1 root  wheel   54 Sep  6 13:32 QtXmlPatterns.framework ->
/opt/local/libexec/qt4-mac/lib/QtXmlPatterns.framework
lrwxr-xr-x  1 root  wheel   47 Sep  6 13:32 phonon.framework ->
/opt/local/libexec/qt4-mac/lib/phonon.framework

Cheers,
Michael


signature.asc (205 bytes) Download Attachment

Re: Help needed: any Apple users around ?

by Till Adam :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wednesday 11 November 2009 23:06:57 Michael Zanetti wrote:
> On Wednesday 11 November 2009 22:40:32 Alexander Neundorf wrote:
> > On Wednesday 11 November 2009, Michael Zanetti wrote:
> > > I'm getting this on Mac OS X 10.5 having Qt-4.5.2 (and KDE 4.3.0)
> > > installed through MacPorts.
> >

macports' Qt installed /opt/local/bin/qmake-mac, not qmake, for the binary
name, so you'll have to symlink it to qmake, for it to be found by standard
mechanisms.

Till

Re: Help needed: any Apple users around ?

by Bugzilla from michael_zanetti@gmx.net :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wednesday 11 November 2009 23:11:32 Till Adam wrote:

> On Wednesday 11 November 2009 23:06:57 Michael Zanetti wrote:
> > On Wednesday 11 November 2009 22:40:32 Alexander Neundorf wrote:
> > > On Wednesday 11 November 2009, Michael Zanetti wrote:
> > > > I'm getting this on Mac OS X 10.5 having Qt-4.5.2 (and KDE 4.3.0)
> > > > installed through MacPorts.
>
> macports' Qt installed /opt/local/bin/qmake-mac, not qmake, for the binary
> name, so you'll have to symlink it to qmake, for it to be found by standard
> mechanisms.
>
After symlinking qmake-mac to qmake everything worked fine. Here is the
output:

...
-- Found Qt-Version 4.5.2 (using /opt/local/bin/qmake)
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- QT_QTCORE_LIBRARY is : "/opt/local/libexec/qt4-mac/lib/QtCore.framework;-
lpthread"
-- Configuring done
-- Generating done
-- Build files have been written to: ...

Cheers,
Michael


signature.asc (205 bytes) Download Attachment

Re: Help needed: any Apple users around ?

by Alexander Neundorf :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wednesday 11 November 2009, Michael Zanetti wrote:

> On Wednesday 11 November 2009 23:11:32 Till Adam wrote:
> > On Wednesday 11 November 2009 23:06:57 Michael Zanetti wrote:
> > > On Wednesday 11 November 2009 22:40:32 Alexander Neundorf wrote:
> > > > On Wednesday 11 November 2009, Michael Zanetti wrote:
> > > > > I'm getting this on Mac OS X 10.5 having Qt-4.5.2 (and KDE 4.3.0)
> > > > > installed through MacPorts.
> >
> > macports' Qt installed /opt/local/bin/qmake-mac, not qmake, for the
> > binary name, so you'll have to symlink it to qmake, for it to be found by
> > standard mechanisms.
>
> After symlinking qmake-mac to qmake everything worked fine. Here is the
> output:
>
> ...
> -- Found Qt-Version 4.5.2 (using /opt/local/bin/qmake)
> -- Looking for include files CMAKE_HAVE_PTHREAD_H
> -- Looking for include files CMAKE_HAVE_PTHREAD_H - found
> -- Looking for pthread_create in pthreads
> -- Looking for pthread_create in pthreads - not found
> -- Looking for pthread_create in pthread
> -- Looking for pthread_create in pthread - found
> -- Found Threads: TRUE
> -- QT_QTCORE_LIBRARY is :
> "/opt/local/libexec/qt4-mac/lib/QtCore.framework;- lpthread"

Thanks for the testing :-)

Alex