[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Mingw-cross-env-list] vtk libraries can't be found with cmake-find_libr
From: |
Luis Saavedra |
Subject: |
[Mingw-cross-env-list] vtk libraries can't be found with cmake-find_library |
Date: |
Tue, 20 Mar 2012 18:02:32 -0400 |
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
FindVtkExample.tar.gz
Description: GNU Zip compressed data
find_library_vtk.patch
Description: Text Data
- [Mingw-cross-env-list] vtk libraries can't be found with cmake-find_library,
Luis Saavedra <=