mingw-cross-env-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-cross-env-list] vtk libraries can't be found with cmake-find_


From: Luis Saavedra
Subject: Re: [Mingw-cross-env-list] vtk libraries can't be found with cmake-find_library
Date: Tue, 20 Mar 2012 21:08:26 -0400

2012/3/20 Luis Saavedra <address@hidden>
Hi,

attached a patch and a simple example with find_package and find_library, in a unix platform cmake find cmake-modules[1] in

1) <prefix>/(share|lib)/cmake/<name>*/
2) <prefix>/(share|lib)/<name>*/
3) <prefix>/(share|lib)/<name>*/(cmake|CMake)/

in mingw-cross-env, vtk is in case 3, but fails to find the libraries.

Also, build vtk outside source files, this because is more simple to rebuild in a debug process.

To run the example:

$ tar xzf FindVtkExample.tar.gz
$ cd FindVtkExample/
$ cmake -DCMAKE_TOOLCHAIN_FILE='.../usr/i686-pc-mingw32/share/cmake/mingw-cross-env-conf.cmake'

regards,
Luis 

[1] http://www.cmake.org/cmake/help/cmake2.6docs.html#command:find_package

ups! sorry for the error, I do not know the reason for putting CMAKE_INSTALL_PREFIX or VTK_INSTALL_PREFIX to VTK_INSTALL_LIB_DIR and VTK_INSTALL_PACKAGE_DIR,

regards,
Luis

Attachment: find_library_vtk.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]