[vtkusers] Compiling PCL with VTK on fedora

Dženan Zukić dzenanz at gmail.com
Mon May 5 08:43:45 EDT 2014


Perhaps your compiled libraries on Fedora are somehow corrupted? Can you
try rebuilding them?

BTW, I am a Windows guy, not a Linux expert.


On Mon, May 5, 2014 at 2:13 PM, Malcolm Mielle <malcolm.mielle at gmail.com>wrote:

> Hm yes, it was missing this but I still have the same error.
>
> The CMake executable like looks like this
>
> add_executable(hough src/Test/hough.cpp)
> target_link_libraries(hough ${catkin_LIBRARIES} ${PCL_LIBRARIES}
> ${VTK_LIBRARIES} -lboost_unit_test_framework)
>
> It may be worth mentioning that I'm working in ROS Hydro. and with VTK6.
>
> Thanks a lot for your help !
>
>
> 2014-05-05 18:38 GMT+08:00 Dženan Zukić <dzenanz at gmail.com>:
>
> Your CMakeLists is maybe missing this:
>> TARGET_LINK_LIBRARIES(ProjectName ${VTK_LIBRARIES})
>>
>>
>> 2014-05-03 10:46 GMT+02:00 Malcolm Mielle <malcolm.mielle at gmail.com>:
>>
>>> Hello,
>>>
>>> I'm having this error when trying to compile a PCL example using VTK
>>> under fedora 20 :
>>>
>>> Linking CXX executable /home/malcolm/catkin_hydro/devel/lib/stalker/hough
>>> /usr/bin/ld: CMakeFiles/maint.dir/src/Test/main.cpp.o: référence au
>>> symbole non défini «_Z38vtkInteractionStyle_AutoInit_Constructv»
>>> /usr/bin/ld: note: «_Z38vtkInteractionStyle_AutoInit_Constructv» est
>>> défini dans le DSO /usr/lib64/vtk/libvtkInteractionStyle.so.1 donc essayez
>>> de l'ajouter à la ligne de commande du lieur
>>> /usr/lib64/vtk/libvtkInteractionStyle.so.1: could not read symbols:
>>> Opération invalide
>>> collect2: erreur: ld a retourné 1 code d'état d'exécution
>>> make[2]: *** [/home/malcolm/catkin_hydro/devel/lib/stalker/maint] Erreur
>>> 1
>>> /usr/bin/ld: CMakeFiles/hough.dir/src/Test/hough.cpp.o: référence au
>>> symbole non défini «_Z38vtkInteractionStyle_AutoInit_Constructv»
>>> /usr/bin/ld: note: «_Z38vtkInteractionStyle_AutoInit_Constructv» est
>>> défini dans le DSO /usr/lib64/vtk/libvtkInteractionStyle.so.1 donc essayez
>>> de l'ajouter à la ligne de commande du lieur
>>> /usr/lib64/vtk/libvtkInteractionStyle.so.1: could not read symbols:
>>> Opération invalide
>>> collect2: erreur: ld a retourné 1 code d'état d'exécution
>>> make[2]: *** [/home/malcolm/catkin_hydro/devel/lib/stalker/hough] Erreur
>>> 1
>>> make[1]: *** [Stalker/CMakeFiles/maint.dir/all] Erreur 2
>>> make[1]: *** Attente des tâches non terminées....
>>> make[1]: *** [Stalker/CMakeFiles/hough.dir/all] Erreur 2
>>> make: *** [all] Erreur 2
>>>
>>>
>>> I tried adding vtkHybrid and vtkRendering in the Cmake file but then, I
>>> have :
>>>
>>> /usr/bin didn't find -lvtkHybrid
>>> /usr/bin didn't find -lvtkRedndering
>>>
>>> In the end, this is the only line concerning Vtk that I have in the
>>> CMAKE :
>>>
>>> find_package(VTK REQUIRED)
>>> include( ${VTK_USE_FILE} )
>>>
>>> I don't know what I've been doing wrong, any help will be super super
>>> appreciated =). The package compile fine on Ubuntu, the problem is only on
>>> fedora.
>>>
>>> Thanks a lot !
>>> --
>>> Malcolm Mielle
>>> Élève ingénieur à Polytech Paris UPMC spécialité Robotique.
>>> Étudiant élu au Conseil des Études et de la Vie de l'École 2013-2014.
>>> Tel : +33698503870
>>>
>>> _______________________________________________
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Please keep messages on-topic and check the VTK FAQ at:
>>> http://www.vtk.org/Wiki/VTK_FAQ
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://www.vtk.org/mailman/listinfo/vtkusers
>>>
>>>
>>
>
>
> --
> Malcolm Mielle
> Élève ingénieur à Polytech Paris UPMC spécialité Robotique.
> Étudiant élu au Conseil des Études et de la Vie de l'École 2013-2014.
> Tel : +33698503870
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20140505/06583776/attachment.html>


More information about the vtkusers mailing list