Paraview Plugin based on Qt fails to link on Mac OS OX (10.6.8 Snow | gcc 4.2.1 | Qt 4.7 | CMake 2.8-2 | x86_64 is on)
-
I would recommend using a .pro file and qmake for building your pluging.
Anyways, make sure you add the following switches to the command line arguments of your C/C++ compiler and the linker:
@
-arch x86_64 -arch i386
@This will build 32bit and 64bit code for intel processors. You might want to add other archs as well (ppc, ppc64) if needed.
-
thanks Volker. is there any automatic script for converting my CMakeLists.txt of the plugin to a .pro file
(something more advanced than qmake -project)? or the converse of this report
http://developer.qt.nokia.com/quarterly/view/using_cmake_to_build_qt_projects ?
i guess Cmake works better for building Paraview (same family), but for Qt plug-ins i should use Qmake.. -
OK, sth is wrong indeed. in a hello directory consisting of hello.cpp and hello.pro i go with
@qmake -spec macx-g++@ and the little gui (hello.app) builds fine, whereas with
@qmake -spec macx-xcode@ i get a hello.pbproj and the related plist without any Xcode directory.
i 'll build qt from scratch, thanks