[vtk-developers] cannot link QVTKWidgetPlugin.dylib

Jean-Christophe Fillion-Robin jchris.fillionr at kitware.com
Fri Jan 25 10:43:04 EST 2013


Hi Aaron,

Glad, you are making some progress,

It would probably help if you could share the associated code. What about
using github.com ?

Hth
Jc


On Fri, Jan 25, 2013 at 10:28 AM, Aaron Knoll <knolla at tacc.utexas.edu>wrote:

>  Thank you Jean-Christophe,
>
>  This helped, but now I get a linker error:
>
>  [wireless-128-62-222-46:~/work/PanFluExercise-knolla/build] knolla% make
> -j12
> Linking CXX executable exercise.app/Contents/MacOS/exercise
> ld: can't open file, errno=13 for architecture x86_64
> clang: error: linker command failed with exit code 1 (use -v to see
> invocation)
>
>  It's not more specific than that, but it's missing something. I still
> suspect an issue with QVTKWidgetPlugin.
>
>  Thanks if you have suggestions,
>
>  Aaron
>
>   From: Jean-Christophe Fillion-Robin <jchris.fillionr at kitware.com>
> Date: Thu, 24 Jan 2013 19:07:59 -0500
> To: knolla Knoll <knolla at tacc.utexas.edu>
> Cc: "vtk-developers at vtk.org" <vtk-developers at vtk.org>
> Subject: Re: [vtk-developers] cannot link QVTKWidgetPlugin.dylib
>
>  Hi Aaron,
>
>  What about using directly the variable VTK_LIBRARIES.
>
>  Instead of:
>
>  find_package(VTK REQUIRED)
> include(${VTK_USE_FILE})
> set(LIBS ${LIBS} QVTKWidgetPlugin vtkRenderingFreeTypeOpenGL
> vtkRenderingVolumeOpenGL vtkInteractionStyle vtkChartsCore )
>
>  try:
>
>  find_package(VTK REQUIRED)
> include(${VTK_USE_FILE})
> list(APPEND LIBS ${VTK_LIBRARIES})
>
>  Hth
> Jc
>
>
> On Thu, Jan 24, 2013 at 2:51 PM, Aaron Knoll <knolla at tacc.utexas.edu>wrote:
>
>>  This is odd, and I suspect it has to do with some Cmake settings.
>>
>>  I'm compiling a project that depends on QVTKWidgetPlugin. In CMakeLists
>> I have the following:
>>
>>  find_package(VTK REQUIRED)
>> include(${VTK_USE_FILE})
>> set(LIBS ${LIBS} QVTKWidgetPlugin vtkRenderingFreeTypeOpenGL
>> vtkRenderingVolumeOpenGL vtkInteractionStyle vtkChartsCore )
>>
>>  ld: library not found for -lQVTKWidgetPlugin
>> clang: error: linker command failed with exit code 1 (use -v to see
>> invocation)
>>
>>  The only difference I've noticed is in VTK/lib, all other libraries
>> have version numbering, e.g.
>>
>>  libvtkzlib-6.0.1.dylib
>> libvtkzlib-6.0.dylib
>>
>>  And QVTKWidgetPlugin does not:
>>
>>  libQVTKWidgetPlugin.dylib
>>
>>  But even when I manually create symbolic links, linking fails with
>> exactly the same error!
>>
>>  Any ideas? Thanks!
>>
>>  -Aaron
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtk-developers
>>
>>
>>
>
>
>  --
> +1 919 869 8849
>



-- 
+1 919 869 8849
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20130125/b5fd31bd/attachment.html>


More information about the vtk-developers mailing list