-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VTK X.X warning: UseVTK.cmake is not a directory #12
Comments
Hi Victor, |
After that warning, the process failed and I got this error; |
Can you share your Here's my configuration: BUILD_DOCUMENTATION OFF
BUILD_EXAMPLES OFF
BUILD_SHARED_LIBS ON
BUILD_TESTING ON
BUILD_USER_DEFINED_LIBS OFF
CMAKE_BUILD_TYPE Release
CMAKE_INSTALL_PREFIX /usr/local
CTEST_TEST_TIMEOUT 3600
RMANTREE RMANTREE-NOTFOUND
VTK_ANDROID_BUILD OFF
VTK_EXTRA_COMPILER_WARNINGS OFF
VTK_Group_Imaging ON
VTK_Group_MPI ON
VTK_Group_Qt ON
VTK_Group_Rendering ON
VTK_Group_StandAlone ON
VTK_Group_Tk ON
VTK_Group_Views ON
VTK_Group_Web OFF
VTK_IOS_BUILD OFF
VTK_PYTHON_VERSION 2
VTK_QT_VERSION 4
VTK_RENDERING_BACKEND OpenGL
VTK_SMP_IMPLEMENTATION_TYPE Sequential
VTK_USE_LARGE_DATA OFF
VTK_USE_SYSTEM_GLEW OFF
VTK_WRAP_JAVA OFF
VTK_WRAP_PYTHON OFF
VTK_WRAP_TCL OFF |
Thanks a lot Victor. I would appreciate your help.
|
I am not sure if it is related to your comment on Bezier CMakeLists.txt. |
I've updated the instructions on the README.md.
Then compile and install VTK again, the compilation error will be gone! |
After trying both suggested solutions in above, now I get the same warning as the first time and different errors. Any suggestion is appreciated.
|
Seems like you're trying to compile VTK with It should work with OpenGL2 but I think the CMakeLists.txt has to be modified. |
Good Point. I have slightly modified the CMakeLists.txt of bezier_application and now the previous errors are gone. However, still I am not able to run the package. cmake_minimum_required(VERSION 2.8.3)
project(bezier_application)
find_package(catkin REQUIRED COMPONENTS roscpp bezier_library tf tf_conversions moveit_ros_planning_interface visualization_msgs)
find_package(PCL 1.8.0 REQUIRED)
find_package(VTK 6.3 REQUIRED COMPONENTS vtkFiltersHybrid NO_MODULE)
catkin_package(CATKIN_DEPENDS bezier_library)
include_directories(${VTK_USE_FILE} ${PCL_INCLUDE_DIRS} ${catkin_INCLUDE_DIRS})
add_definitions(${PCL_DEFINITIONS} ${VTK_DEFINITIONS})
if(TARGET vtkRenderingOpenGL2)
message(STATUS "Building optional volume renderingOpenGL2 component")
find_package(VTK 6.3 COMPONENTS vtkFiltersHybrid vtkRenderingOpenGL2 vtkRenderingFreeType vtkIOMPIParallel vtkIOMPIImage vtkInteractionStyle NO_MODULE)
endif()
add_executable (bezier_application src/bezier_application.cpp)
if(VTK_LIBRARIES) # May never happen because we expect VTK 6.3 minimum
target_link_libraries (bezier_application ${catkin_LIBRARIES} ${VTK_LIBRARIES} ${PCL_LIBRARIES} bezier_library)
else()
target_link_libraries (bezier_application ${catkin_LIBRARIES} vtkHybrid vtkWidgets ${PCL_LIBRARIES} bezier_library)
endif() |
Now, after running the roslaunch, everything start fine but the bezier_application is died immediately.
|
You should have provided the logs 😉 I think that PCL has to be compiled/installed against the same VTK version you're using to build the Bezier library otherwise conflicts may rise. As PCL cannot be compiled against VTK using OpenGL2 (see PointCloudLibrary/pcl#1275) I'd suggest compiling with OpenGL for the moment; I'm not sure it's ever going to work with OpenGL2 as is. (but this can be fixed) |
I was worried about having my PCL compiled against different version of VTK, but I was hopping that it may work this way since I use other packages depending on the PCL and they work fine. On the other note, for installing PCL and VTK if it is necessary to downgrade my OpneGL2, already have, to OpenGL or it is only needed to set the VTK configuration VTK_RENDERING_BACKEND = OpenGL. |
Then you will be able to build and run the Bezier library fine. |
Thanks Victor. I will follow your instruction. |
@ehsan-asadi Did you get it working? |
Tomorrow, I am going to reinstall the VTK and PCL and I will let you know about the result. |
I'm having problem compiling PCL (master, clone from github) against the VTK (master, clone from github) . I get a file not found for vtkImageReader2.h |
After changing the VTK path from /user/local to my /home/.../VTK/build address, finally I have managed to compile the PCL and Bezier against VTK 6.3. Now the package works . I am wondering if there is any instruction or document about the Bezier more than the given information in the Github. Thanks Victor. |
Great! No there is nothing more than what's on the repository (see doc/REAMDE.md) The warning |
Fix Travis with latest rviz_visual_tools
Hello, /usr/bin/ld: cannot find -lvtkRenderingGL2PSOpenGL2 Any help would be greatly appreciated. |
Try after a |
Thank you for the timely response, After running sudo ldconfig after compiling and installing VTK under this configuration, I am still getting the same error when compiling PCL. BUILD_DOCUMENTATION OFF |
Ok let's try with a newer version of VTK and PCL from sources. I have tested these instructions on Ubuntu 16.04 and Kubuntu 18.04. Visualisation ToolKitsudo apt install -y libglew-dev libxt-dev libqt5x11extras5
mkdir -p $HOME/libraries/VTK-8.1/build_release
cd $HOME/libraries/VTK-8.1/
wget http://www.vtk.org/files/release/8.1/VTK-8.1.0.zip
unzip VTK-8.1.0.zip
mv VTK-8.1.0 src
cd build_release
cmake ../src -DCMAKE_BUILD_TYPE=Release
make -j4
sudo make -j4 install
sudo ldconfig Point Cloud Library
|
VTK and PCL were compiled and installed correctly, but when I clone and compile the bezier project, this error comes up: CMake Error at bezier/bezier_library/CMakeLists.txt:15 (find_package): The following configuration files were considered but not accepted:
-- Configuring incomplete, errors occurred! How can I resolve this error? |
It seems like VTK is not installed properly beceause CMake doesn't find it. What is the output of sudo On my machine:
You should have the last line in your result, if not: make sure to do |
I ran sudo make install inside the build release directory of VTK, ran find / -name "VTKConfig.cmake" and this was the result.
After that, I ran catkin_make inside my catkin_ws and it successfully compiled, but I got this warning near the end of it
I believe I was getting this error earlier, so I ran the fanuc_m20ia_surfacing.launch file and the application died on me. |
The compilation warning is ok. With a gdb trace you should be able to understand what's wrong. Check the issues on the repository you will probably find similar cases. I do not have time to maintain this repository so it is not up to date and there are bugs. |
When compiling:
This is probably VTK related.
The text was updated successfully, but these errors were encountered: