bilke / conan-vtk Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
I admit right up front I am new to Conan.
My build platform: Win 10, MSVS 2015, 64 bit, Conan 1.4.3
qtcsv remote is defined as: qtcsv: https://api.bintray.com/conan/conan/conan-transit
So I tried the easy button ... let conan download and install it all:
conan install VTK/7.1.0@bilke/stable -r qtcsv --build VTK
VTK/7.1.0@bilke/stable: Installing package
Requirements
VTK/7.1.0@bilke/stable from 'qtcsv'
Packages
VTK/7.1.0@bilke/stable:6cc50b139b9c3d27b3e9042d5f5372d327b3a9f7
VTK/7.1.0@bilke/stable: WARN: Package is corrupted, removing folder: D:/.conan\1a4v2563\1
VTK/7.1.0@bilke/stable: WARN: Forced build from source
VTK/7.1.0@bilke/stable: Building your package in D:/.conan\qkt2zdr8\1
VTK/7.1.0@bilke/stable: Copying sources to build folder
VTK/7.1.0@bilke/stable: Generator cmake created conanbuildinfo.cmake
VTK/7.1.0@bilke/stable: Calling build()
VTK/7.1.0@bilke/stable:
VTK/7.1.0@bilke/stable: ERROR: Package '6cc50b139b9c3d27b3e9042d5f5372d327b3a9f7' build failed
VTK/7.1.0@bilke/stable: WARN: Build folder D:/.conan\qkt2zdr8\1
ERROR: VTK/7.1.0@bilke/stable: Error in build() method, line 65
cmake = CMake(self.settings)
ConanException: First argument of CMake() has to be ConanFile. Use CMake(self)
Now I tried to add --keep-source and --keep-build, but conan did not like that.
Plan B pull the project from github and work with that:
git clone https://github.com/bilke/conan-vtk.git
Cloning into 'conan-vtk'...
remote: Counting objects: 336, done.
remote: Total 336 (delta 0), reused 0 (delta 0), pack-reused 336 eceiving obje
Receiving objects: 100% (336/336), 48.22 KiB | 0 bytes/s, done.
Resolving deltas: 100% (198/198), done.
cd conan-vtk
mkdir build
cd build <- out-of-source build
conan install .. -g "visual_studio" --build
PROJECT: Installing D:\Users....\conan\conan-vtk\conanfile.py
Requirements
Packages
PROJECT: Generator cmake created conanbuildinfo.cmake
PROJECT: Generator txt created conanbuildinfo.txt
PROJECT: Generator visual_studio created conanbuildinfo.props
PROJECT: Generated conaninfo.txt
cmake .. -G "Visual Studio 14 2015 Win64" -DCMAKE_BUILD_TYPE=Release
-- The C compiler identification is MSVC 19.0.24225.1
-- The CXX compiler identification is MSVC 19.0.24225.1
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at CMakeLists.txt:3 (include):
include could not find load file:
conanbuildinfo.cmake
CMake Error at CMakeLists.txt:4 (CONAN_BASIC_SETUP):
Unknown CMake command "CONAN_BASIC_SETUP".
-- Configuring incomplete, errors occurred!
Ok I get around this error my modifying the path to conanbuildinfo.cmake, in the CMakelists.txt file.
re-run it and get:
-- Current conanbuildinfo.cmake directory: D:/Users/210008258/conan/conan-vtk/build
-- Conan: Using cmake global configuration
-- Conan: Adjusting default RPATHs Conan policies
-- Conan: Adjusting language standard
CMake Error at CMakeLists.txt:14 (add_subdirectory):
add_subdirectory given source "VTK-7.1.0" which is not an existing
directory.
Suggestions or ideas?
Regards
Carl
Hi, I'm not sure, if I'm right, but I had some compilation issues in my project, where I think they could/should be fixed in the conanfile.py of vtk.
The error was
libdl.so.2: error adding symbols: DSO missing from command line
I could fix this, when I linked my executable agains dl using target_link_libraries.
I guess, this could be fixed by changing package_info of vtk to include "dl" for linux.
EDIT: Perhaps it is comparable to this case with pthread?
Brunni/conan-g3log@37f8917
Hello, I am new to conan. I want to use conan to manager the 3rd library for C++ project. However I cannot find VTK8.2( compatible with qt5 ) package in conan-center, conan-transit, conan-community and bincrafters. There is only vtk7.1@bilke.
I also download your codes and have a try. I have tried conan install
or conan build
but failed. Could you please tell me how to get the vtk8.2( compatible with qt5 ) build using your conan codes? Many thanks.
Please clarify under which license you are sharing this Conan recipe and all it's related code within this repository.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.