[vtk-developers] Compiling VTK7 with VS2015 and Qt5.6

Joachim Pouderoux joachim.pouderoux at kitware.com
Thu Apr 7 10:19:15 EDT 2016


Hi,

Thanks, you are right. There is actually a pending merge request to fix the
problem:
https://gitlab.kitware.com/vtk/vtk/merge_requests/1358

Best,

*Joachim Pouderoux*

*PhD, Technical Expert*
*Kitware SAS <http://www.kitware.fr>*


2016-03-18 0:36 GMT+01:00 Thales Luis Rodrigues Sabino <tluisrs at gmail.com>:

> Today I was able to successfully compile VTK7.0 with VS2015 and Qt5.6.
> Since Qt5.6 has binaries available for VS2015 I decided to give it a try.
>
> The first error that appears was the error that 'unistd.h' was not defined
> (it is also a unix file). Looking at the source code for the file
> '\IO\LSDyna\private\LSDynaFamily.h (45)' one can note that the macro WIN32
> is not being defined. The reason is that in VS2015, as can been seen in
> this page https://msdn.microsoft.com/en-us/library/b0084kay.aspx, the
> correct macro to detect Windows is _WIN32. To fix this, I simply change my
> cmake command line with the following
>
> cmake -DCMAKE_CXX_FLAGS="/DWIN32=1 /EHsc"
>
> The EHsc is to solve some warning about the exception handling system.
>
> Hope this can help.
>
> --
> Thales Luis Rodrigues Sabino
>
> PhD Student at PGMC-UFJF <http://www.ufjf.br/pgmc/>
> Lattes <http://lattes.cnpq.br/0601030410417146> | LinkedIn
> <https://br.linkedin.com/in/tluisrs> | ResearchGate
> <https://www.researchgate.net/profile/Thales_Luis_Sabino>
>
> _______________________________________________
> 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=vtk-developers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtk-developers
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20160407/c812f40f/attachment.html>


More information about the vtk-developers mailing list