On Thursday 01 April 2010 11:17:29 Stuart McNicholas wrote:
> Dear All,
>  I am trying to build pyside-qt4.6+0.3.0 on OS X 10.6 against the Qt 4.6.2
> SDK. I have the following problem. The Qt SDK is 32-bit only, but cmake
> uses default compiler flags and tries to build 64-bit.
> 
> I can  build apiextractor-0.4.0, generatorrunner-0.4.0 and shiboken-0.2.0
> by adding the following lines to CMakeLists.txt
> 
> set(CMAKE_EXE_LINKER_FLAGS ${CMAKE_EXE_LINKER_FLAGS} "-arch i386")
> set(CMAKE_SHARED_LINKER_FLAGS ${CMAKE_SHARED_LINKER_FLAGS} "-arch i386")
> set(CMAKE_MODULE_LINKER_FLAGS ${CMAKE_MODULE_LINKER_FLAGS} "-arch i386")
> 
> add_definitions(-arch i386)
> 
> However, this seems not to be enough for pyside, I get the following output
> from cmake:
> 
> brennan:pyside-qt4.6+0.3.0 stuart$ cmake .
> -- 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
> -- Checking whether C compiler supports OSX deployment target flag
> -- Checking whether C compiler supports OSX deployment target flag - 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
> -- Checking whether CXX compiler supports OSX deployment target flag
> -- Checking whether CXX compiler supports OSX deployment target flag - 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
> -- Found PythonLibs: -framework Python
> -- Found PythonInterp:
> /Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6 -- 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 - not found.
> -- Found Qt-Version 4.6.2 (using /usr/bin/qmake)
> CMake Error at PySide/QtGui/CMakeLists.txt:48 (message):
>  OS not supported
> 
> 
> -- Configuring incomplete, errors occurred!
> 
> 
> Is what I am trying to do reasonable or not?

Qt was found on your computer but the Q_WS_MAC macro wasn't, this is weird.

We use the Q_WS_* variables to select the correct files for each OS, anyway I 
don't known if the Q_WS_* cmake variables are the best variables to use, maybe 
we should just use the normal cmake variables to detect the OS.

About the i386 flags, if you just remove the lines:
set(CMAKE_CXX_FLAGS_RELEASE...
set(CMAKE_CXX_FLAGS_DEBUG...

from the main CMakeLists.txt file, it works?
 
> Best Wishes,
> Stuart McNicholas
> 
> _______________________________________________
> PySide mailing list
> [email protected]
> http://lists.openbossa.org/listinfo/pyside

-- 
Hugo Parente Lima
INdT - Instituto Nokia de Tecnologia

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
PySide mailing list
[email protected]
http://lists.openbossa.org/listinfo/pyside

Reply via email to