[Paraview-developers] building paraview with examples - getting LNK2019 & LNK2001 errors - vtkRenderingFreeType
Joachim Pouderoux
joachim.pouderoux at kitware.com
Tue Nov 10 11:31:46 EST 2015
I have the same problem here on VS2012 (don't think it is related to the VS
version anyway).
As a quick fix you can add, in the CMakeLists.txt file, just after the call
to build_paraview_client() macro:
target_link_libraries(*paraview_application_target_name*
vtkRenderingFreeType)
Joachim
*Joachim Pouderoux*
*PhD, Technical Expert*
*Kitware SAS <http://www.kitware.fr>*
2015-10-23 16:48 GMT+02:00 Cory Quammen <cory.quammen at kitware.com>:
> Hi Michael,
>
> I just wanted to let you know that I can confirm the same error with
> Visual Studio 2008. I don't have a fix for it at the moment, though.
>
> Cory
>
> On Fri, Oct 16, 2015 at 12:40 PM, Hillier, Michael (NRCan/RNCan) <
> michael.hillier at canada.ca> wrote:
>
>> Hello,
>>
>>
>>
>> I am having trouble building paraview from source whenever I toggle
>> ‘BUILD_EXAMPLES’ in cmake. I use Visual Studio to compile the source code.
>> Here are examples of the compiler errors :
>>
>>
>>
>> Error 14389 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:\Development\ParaView\ParaView-v4.4.0-source\ParaView-v4.4.0-source\_build\Examples\All\Plugins\Autostart\Autostart.vcxproj]
>> C:\Development\ParaView\ParaView-v4.4.0-source\ParaView-v4.4.0-source\_build\pqMyApplicationStarterImplementation.obj
>> ParaViewExamples
>>
>>
>>
>> Error 14390 error LNK2001: unresolved external symbol "void
>> __cdecl vtkRenderingFreeType_AutoInit_Construct(void)"
>> (?vtkRenderingFreeType_AutoInit_Construct@@YAXXZ)
>> [C:\Development\ParaView\ParaView-v4.4.0-source\ParaView-v4.4.0-source\_build\Examples\All\Plugins\Autostart\Autostart.vcxproj]
>> C:\Development\ParaView\ParaView-v4.4.0-source\ParaView-v4.4.0-source\_build\moc_pqMyApplicationStarterImplementation.obj
>> ParaViewExamples
>>
>>
>>
>> All the compile errors are related to vtkRenderingFreeType. These errors
>> are producing when generating debug and release builds. I have also tried
>> compiling on different computers with different versions of visual studio
>> and I always get the same results. Whenever, I disable the ‘BUILD_EXAMPLES’
>> in cmake it builds successfully.
>>
>>
>>
>> It’s very clear that the vtkRenderingFreeType library is not being linked
>> in the ‘ParaViewExamples’ project in the ParaView.sln. Normally I would
>> just include the library in linker for that project, but looking at the
>> properties of the ‘ParaViewExamples’ project there is no ‘Linker’ tab in
>> the property page. Obviously, the project did not get properly generated
>> via cmake.
>>
>>
>>
>> Does anyone know how to fix this?
>>
>>
>>
>> Thanks
>>
>>
>>
>> Michael Hillier
>>
>>
>>
>> _______________________________________________
>> 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
>>
>>
>
>
> --
> Cory Quammen
> R&D Engineer
> Kitware, Inc.
>
> _______________________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20151110/229d5681/attachment.html>
More information about the Paraview-developers
mailing list