[Paraview-developers] link error building examples on MSVC (was: vtkRenderingFreeType error)

David Lonie david.lonie at kitware.com
Mon Aug 22 09:38:02 EDT 2016


(Just updating the subject so the MSVC folks will see this -- the
problem is not related to freetype, so I want to make sure the right
eyes see it :) ).

On Sun, Aug 21, 2016 at 4:10 AM,  <thomasblome at startmail.com> wrote:
> Hi,
>
> I'm trying to build paraview from source. For this I'm using:
>
> Windows 10
> Visual Studio 2015
> CMake 3.6.1
> paraview 5.1.2
> Qt 5.7
> msmpi 7.1
>
> I downloaded the source code of paraview from
> http://www.paraview.org/download/ and generated the project in CMake.
> Every time I switch on BUILD_EXAMPLES, I get the following error messages in
> VS:
>
> Error    LNK2001    unresolved external symbol "void __cdecl
> vtkRenderingFreeType_AutoInit_Construct(void)"
> (?vtkRenderingFreeType_AutoInit_Construct@@YAXXZ)
> [C:\Kitware\ParaView-v5.1.0\bin\Examples\All\Plugins\Autostart\Autostart.vcxproj]
> ParaViewExamples    C:\Kitware\ParaView-v5.1.0\bin\Autostart_Plugin.obj    1
>
> Error    LNK2019    unresolved external symbol "void __cdecl
> vtkRenderingFreeType_AutoInit_Construct(void)"
> (?vtkRenderingFreeType_AutoInit_Construct@@YAXXZ) referenced in function
> "public: __cdecl vtkRenderingCore_AutoInit::vtkRenderingCore_AutoInit(void)"
> (??0vtkRenderingCore_AutoInit@@QEAA at XZ)
> [C:\Kitware\ParaView-v5.1.0\bin\Examples\All\Plugins\Autostart\Autostart.vcxproj]
> ParaViewExamples
> C:\Kitware\ParaView-v5.1.0\bin\pqMyApplicationStarterImplementation.obj    1
>
> I found the same problem already mentioned here:
> http://public.kitware.com/pipermail/paraview-developers/2015-November/004094.html,
> so I added the command "target_link_libraries(paraview LINK_PRIVATE
> vtkRenderingFreeType)" to the CMake file located in
> C:\Kitware\ParaView-v5.1.2\Applications\ParaView - right after the
> "build_paraview_client()" macro, but I keep running into the same error.
>
> I also tried the build on another system (windows 7, Visual Studio 2010, Qt
> 4.8.7), but to no avail.
> By the way, I wonder why the ParaviewExamples project in VS doesn't contain
> neither source nor header files. Is that project properly generated by
> CMake?
>
> Thanks in advance!
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Search the list archives at:
> http://markmail.org/search/?q=Paraview-developers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview-developers
>


More information about the Paraview-developers mailing list