Re: [CMake] Weirdness with shared library, RPATH policy on MacOS

2010-08-16 Thread Martin Costabel
Chris Wolf wrote: [] It's interesting that you had a problem with this approach and python modules - I had a similar issue and ending up statically linking the module because I had two releases of the same shared library on the system. This is probably not a problem in cmake itself, but a prob

Re: [CMake] Weirdness with shared library, RPATH policy on MacOS

2010-08-13 Thread Martin Costabel
Chris Wolf wrote: [] Have you actually built shared libraries on MacOS with CMake? If so, maybe an example of yours would be more helpful. The following settings work for me when building vtk5.6 for Fink: -DCMAKE_INSTALL_NAME_DIR:STRING=/sw/lib/vtk56 \ -DCMAKE_BUILD_WITH_INSTALL_RPATH:BO

Re: [CMake] OSX framework include is not included

2010-07-10 Thread Martin Costabel
Gregory Sharp wrote: Hi, I can't seem to get OSX to include my framework directory. Here is what my cmake file looks like: MESSAGE (STATUS "OPENCL_INCLUDE_DIR = ${OPENCL_INCLUDE_DIR}") INCLUDE_DIRECTORIES (${OPENCL_INCLUDE_DIR}) ADD_EXECUTABLE(opencl_test opencl_test.cxx) TARGET_LINK_L

Re: [CMake] darwin, cmake-2.8, gfortran from fink: option "-arch" not recognized

2010-06-10 Thread Martin Costabel
Daniel Franke wrote: Hi all. I got gcc-4.4.4 for target i386-apple-darwin9.8.0 from fink. First I used cmake-2.6 (also from fink) and everything worked. Later, after an update to cmake-2.8 (again, from fink), and trying to rebuild my package, I got: f951: error: unrecognized command

Re: [CMake] Finding X11 fails under OS X...

2009-09-04 Thread Martin Costabel
Werner Smekal wrote: Hi, If you don't have /usr/X11/lib/libX11.dylib (which is a symbolic link to libX11.6.dylib), then your X11 installation is incomplete. You must have removed this symlink accidentally. Or maybe you can blame it on Apple's installer which is known to occasionally forget

Re: [CMake] Finding X11 fails under OS X...

2009-09-02 Thread Martin Costabel
Georgios Petasis wrote: O/H Martin Costabel έγραψε: Georgios Petasis wrote: Hi all, I am trying to compile something that uses X under OS X 10.5.5, but cmake is unable to locate the X11 libraries. The include path is located. The failure is while detecting libraries. For example. libX11

Re: [CMake] Finding X11 fails under OS X...

2009-09-02 Thread Martin Costabel
Georgios Petasis wrote: Hi all, I am trying to compile something that uses X under OS X 10.5.5, but cmake is unable to locate the X11 libraries. The include path is located. The failure is while detecting libraries. For example. libX11 exists in /usr/X11/lib/libX11.6.dylib. Cmake does not find

Re: [CMake] Need help with GLOB expression

2009-03-29 Thread Martin Costabel
The following seems to work: file(GLOB_RECURSE sources "*.h" "*.hpp" "*.ipp") -- Martin Carlson Daniel wrote: Ok, I thought that Cmake supported the standard regular expression used by most GNU projects. The |-sign is an or-operator so the standard regular expression for this would be: ^.*\

Re: [CMake] Regression between 2.4.8 and 2.6.2 for the macada version of the gcc compiler

2009-01-28 Thread Martin Costabel
Alan W. Irwin wrote: [] Is there a better gcc option then -v to find out the _actual_ linker being used? Use -Wl,-v :-) On 10.4, if you run gcc -dynamiclib, the linking is managed by /usr/bin/libtool which in turn calls /usr/bin/ld, and /usr/bin/libtool understands the -current_version flag.

Re: [CMake] Can't run Cocoa test application in CTest

2008-11-23 Thread Martin Costabel
Tron Thomas wrote: [] 1/ 1 Testing TestRunnerCould not find executable TestRunner.app/Content/MacOS/TestRunner Looked in the following places: TestRunner.app/Content/MacOS/TestRunner Perhaps writing "Contents" instead of "Content" might help? -- Martin _

Re: [CMake] cmake variables to control full path in shared lib on OSX

2008-09-19 Thread Martin Costabel
Darren Weber wrote: [] Gnu libtool has a mechanism to deal with this situation (creating temporary wrapper scripts for each executable), but if cmake has one, I haven't found it. I have a testing build that seems to create paths within the build tree that are specific to the build, but once t

Re: [CMake] cmake variables to control full path in shared lib on OSX

2008-09-18 Thread Martin Costabel
Darren Weber wrote: I'm exploring how to build and install VTK-5-2-0 on OSX. I'm trying to use shared libraries, but the default settings do not put full paths in the .dylib file links for the libvtk* libraries. I am using a non-standard install path (macports /opt/local), so I may need to set

Re: [CMake] [vtkusers] [vtk-developers] problems with VTK python module installation on OSX (after a custom build)

2008-09-05 Thread Martin Costabel
Darren Weber wrote: Using VTK_USE_RPATH=ON and building with that change resulted in full path specifications in the .so file, but the path is now specific to build directory, not the installation directory. So, how do we set CMAKE_BUILD_WITH_INSTALL_RPATH:BOOL=ON How do you start ccmake? If

Re: [CMake] problems with VTK python module installation on OSX (after a custom build)

2008-09-03 Thread Martin Costabel
Darren Weber wrote: [] ImportError: dlopen(/usr/local/lib/python2.5/site-packages/vtk/libvtkCommonPython.so, 10): Library not loaded: libvtkCommonPythonD.5.2.dylib Referenced from: /usr/local/lib/python2.5/site-packages/vtk/libvtkCommonPython.so Reason: image not found This is not a prob

Re: [CMake] qt3 simple application question

2008-09-02 Thread Martin Costabel
[EMAIL PROTECTED] wrote: [] The CMakeLists.txt is as following (I highly suspect something wrong here, I stitched the script but not sure what I am doing. And I can't find any example related to qt3 + cmake + ui anywhere) A (big) project using qt3 (recently also qt4) and cmake is scribus. If yo

Re: [CMake] How to make cmake-2.6 tell why it fails

2008-08-21 Thread Martin Costabel
Martin Costabel wrote: [] Now I only have to find out why another user gets the error "find_package cannot find package FREETYPE because FREETYPE_DIR is set to "/sw/lib/freetype219" which is not a directory containing a package configuration file (or it is not for the re

Re: [CMake] How to make cmake-2.6 tell why it fails

2008-08-21 Thread Martin Costabel
Bill Hoffman wrote: Martin Costabel wrote: [] QT_INCLUDE_DIR:PATH=QT_INCLUDE_DIR-NOTFOUND If I read the module correctly, cmake looks if the file $ENV{QTDIR}/include/qglobal.h exists, which should in principle be the case. I'll ask her if something is wrong with this file. Thanks

Re: [CMake] How to make cmake-2.6 tell why it fails

2008-08-19 Thread Martin Costabel
Bill Hoffman wrote: [] So, what are the values of QT_INCLUDE_DIR AND QT_QT_LIBRARY in the users CMakeCache.txt file? One of those must not be found. Indeed: QT_INCLUDE_DIR:PATH=QT_INCLUDE_DIR-NOTFOUND If I read the module correctly, cmake looks if the file $ENV{QTDIR}/include/qglobal.h exis

[CMake] How to make cmake-2.6 tell why it fails

2008-08-19 Thread Martin Costabel
I am trying to help a user whose effort to build scribus-1.3.3.12 with cmake-2.6.0 on MacOSX-10.4.11 always fail with the message CMake Error at CMakeLists.txt:234 (MESSAGE): No Qt3 With the exact same configuration(?), the build runs OK for me, and I am looking for clues on how to debug thi