[vtkusers] vtk static link in codeblocks

David E DeMarle dave.demarle at kitware.com
Tue Nov 1 06:38:33 EDT 2016


Unsure. Take a look at the verbose output of both cmake driven and code
blocks driven make process.
I suspect the code blocks one is missing one or more vtk's static libraries.

David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909

On Thu, Oct 27, 2016 at 8:08 AM, fabio riot <fabio.riot at gmail.com> wrote:

> Dear All,
>
> I have built vtk 7.0 successfully, both static and dynamic lib (.so and
> .a) in two different folders
>
> So I create a project in codeblocks, copy the example cone.cxx into the
> project.
> I set the include path  and the static library ( lib.a) path.
> But at the end of the project building i have a lot of:
> undefined reference errors....
>
> The problem doesn't occur when I set the linker path to the dynamic libs
> (.so).
>
> Furthermore, If I use cmake to generate a codeBlocks-unix makefile, it
> works both using static and dynamic linking,
>
> I would like to know why creating a project directly with codeblocks and
> using static linking the build fails? Do I miss some setting or linker
> option?
>
> Regards,
> Fabio
>
>
> _______________________________________________
> 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
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20161101/970f1e64/attachment.html>


More information about the vtkusers mailing list