Compiled errors using VS2013

General discussion about TexGen.

Moderators: Martin, Developers

Post Reply
lambert8809
Regular
Posts: 14
Joined: Fri Oct 07, 2016 5:09 pm

Compiled errors using VS2013

Post by lambert8809 »

Dear all,

I am trying to compile TexGen on 64 bits windows system. Here are the third-party products version:

swigwin: 2.0.10
vtk: 5.10.1
wxMSW: 2.8.12
Python: 2.7

Now I haven't add cascade export function yet, and want to compile other functions using VS2013. VTK and wxMSW are already compiled using VS2013, and I can compile texgen with only python and swig. When I added wxMSW and vtk into project, I got the following error messages:

Error 282 error LNK2019: unresolved external symbol vtk__H5DSget_num_scales referenced in function read_dataset C:\01-Work\13-TexGen\build3\Python\vtknetcdf.lib(nc4file.obj)
Error 283 error LNK2019: unresolved external symbol vtk__H5DSget_scale_name referenced in function read_scale C:\01-Work\13-TexGen\build3\Python\vtknetcdf.lib(nc4file.obj)
Error 284 error LNK2019: unresolved external symbol vtk__H5DSis_scale referenced in function read_dataset C:\01-Work\13-TexGen\build3\Python\vtknetcdf.lib(nc4file.obj)
......

The entire error messages can be found in the attachment. I searched the previous topics, and it seems this is not a new problem, but I cannot find a solution. I would really appreciate it if someone can give me a help.


Thanks
Attachments
error message
error message
error message.jpg (111.42 KiB) Viewed 5081 times
louisepb
Project Leader
Posts: 998
Joined: Tue Dec 08, 2009 2:27 pm
Location: Nottingham

Re: Compiled errors using VS2013

Post by louisepb »

Hi,

I haven't built TexGen using VS2013; I am using VS2012 at the moment. From the looks of the error messages it would seem that you maybe haven't built all the required components of VTK.
In CMake my VTK build looks like this
VTKOptions.PNG
VTKOptions.PNG (25.79 KiB) Viewed 5078 times
I think you probably need to check which VTK options you need to build in order to have the required functions available.

Hope that helps,
Louise
lambert8809
Regular
Posts: 14
Joined: Fri Oct 07, 2016 5:09 pm

Re: Compiled errors using VS2013

Post by lambert8809 »

Dear Louise,

Thank you for your reply.The problem is resolved.

The error is because that I didn't build install VTK, then all the required files are in the vtk-source folder/bin/release. While running cmake will give errors if you don't choose the vtk folder contains *.cmake, so the errors come due to choose the wrong folder. So there is a possible confusion that on Texgen website, it lets us to choose vtk folder which contains binary but we can do that only if we build install VTK and create CMAKE_PRFIX_PATH to point to the vtk install folder. I hope this would be helpful for the users who are facing the same problem.


Thanks
Xin
Post Reply