<div dir="auto">VtkHybrid is gone. Instead of naming vtk libraries , use ${VTK_LIBRARIES}. </div><br><div class="gmail_quote"><div dir="ltr">On Sun, Sep 9, 2018, 6:11 PM pnt1614 <<a href="mailto:minpu.code@gmail.com">minpu.code@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I am using CMake 3.11.4, VTK 8.1.1, Visual studio 2015 on Windows 10 64 bits<br>
and I try to build the "Stratified Sampling" project<br>
(<a href="http://www.vtkjournal.org/browse/publication/719" rel="noreferrer noreferrer" target="_blank">http://www.vtkjournal.org/browse/publication/719</a>). It looks like there is a<br>
difference between the current VTK version (8.1.1) and the old VTK version<br>
used to make this project, there are the following errors.<br>
<br>
1. Old syntax<br>
2. Missing file (error.h)<br>
3. vtkHybrid.lib<br>
<br>
I can solve the first problem and skip the error.h file but I do not where<br>
to find the vtkHybrid.lib. I have searched the VTK versions 6.3 but there is<br>
no such library named vtkHybrid.lib.<br>
<br>
The CMakeLists.txt's content is:<br>
<br>
cmake_minimum_required(VERSION 2.6)<br>
<br>
Project(StratifiedSampling)<br>
ENABLE_TESTING()<br>
<br>
FIND_PACKAGE(VTK REQUIRED)<br>
INCLUDE(${VTK_USE_FILE})<br>
<br>
<br>
SET(BUILD_PARAVIEW_PLUGIN OFF CACHE BOOL "Build Paraview plugin?")<br>
<br>
SET(sources boxbox.cpp<br>
diffuse.cc<br>
edgeflip.cc<br>
faceflip.cc<br>
filter.cc<br>
ICP.cc<br>
KDtree.cc<br>
lmsmooth.cc<br>
pointsample.cpp<br>
remove.cc<br>
reorder_verts.cc<br>
sample.cpp<br>
stratify.cpp<br>
subdiv.cc<br>
tribox.cpp<br>
TriMesh.cc<br>
TriMesh_bounding.cc<br>
TriMesh_connectivity.cc<br>
TriMesh_curvature.cc<br>
TriMesh_grid.cc<br>
TriMesh_normals.cc<br>
TriMesh_pointareas.cc<br>
TriMesh_stats.cc<br>
TriMesh_tstrips.cc)<br>
<br>
if(BUILD_PARAVIEW_PLUGIN)<br>
FIND_PACKAGE(ParaView REQUIRED)<br>
INCLUDE(${PARAVIEW_USE_FILE})<br>
<br>
INCLUDE_DIRECTORIES(${INCLUDE_DIRECTORIES} ../)<br>
<br>
ADD_PARAVIEW_PLUGIN(StratifiedSamplingPlugin "1.0"<br>
  SERVER_MANAGER_XML vtkStratifiedSampling.xml<br>
SERVER_MANAGER_SOURCES vtkStratifiedSampling.cxx  <br>
SERVER_SOURCES boxbox.cpp diffuse.cc edgeflip.cc faceflip.cc filter.cc<br>
ICP.cc KDtree.cc lmsmooth.cc pointsample.cpp remove.cc reorder_verts.cc<br>
sample.cpp stratify.cpp subdiv.cc tribox.cpp TriMesh.cc TriMesh_bounding.cc<br>
TriMesh_connectivity.cc TriMesh_curvature.cc TriMesh_grid.cc<br>
TriMesh_normals.cc TriMesh_pointareas.cc TriMesh_stats.cc TriMesh_tstrips.cc<br>
)<br>
<br>
endif(BUILD_PARAVIEW_PLUGIN)<br>
<br>
ADD_EXECUTABLE(StratifiedSampling  vtkStratifiedSampling.cxx main.cpp<br>
${sources}<br>
)<br>
<br>
TARGET_LINK_LIBRARIES(StratifiedSampling vtkHybrid)<br>
<br>
##############<br>
ADD_EXECUTABLE(Test Test.cxx vtkStratifiedSampling.cxx <br>
${sources})<br>
TARGET_LINK_LIBRARIES(Test vtkHybrid)<br>
<br>
ADD_TEST(StratifiedSamplingTest Test)<br>
<br>
So how can I build this project and use the vtkStratiedSampling class in my<br>
own project?. Is there anyone experienced this problem? Please, help me. <br>
<br>
Thank you.<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html" rel="noreferrer noreferrer" target="_blank">http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html</a><br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://public.kitware.com/mailman/listinfo/vtkusers" rel="noreferrer noreferrer" target="_blank">https://public.kitware.com/mailman/listinfo/vtkusers</a><br>
</blockquote></div>