[vtkusers] build VTK in windows 10, msys2 mingw64 no success so far

Michael Jackson mike.jackson at bluequartz.net
Sun Aug 19 21:42:17 EDT 2018


If you _want_ to use QtCreator to write your programs that is no problem to use QtCreator and have it use the Visual Studio Tool Chain to compile your codes and dependent library. If you google “QtCreator Visual Studio” there is a link to a QtCreator Wiki article that describes in detail how to setup QtCreator to use the Visual Studio toolchain (compilers, linkers…). It is probably easier to use the Visual Studio tool chain if you are trying to create a program that uses VTK and Qt.

 

--

Mike Jackson

 

 

On 8/18/18, 5:17 AM, "vtkusers on behalf of Talal Albader" <vtkusers-bounces at public.kitware.com on behalf of badertalal at gmail.com> wrote:

 

Hi ,

thanks for the informations,

actually i am using msys 2  and mingw-64, the workflow i followed is by installing msys2 ,then adding mingw-w64 toolchain followed by qt 64 installation (all inside msys2)

then i downloaded vtk-8.1.1

the good news that i managed to compile it at the end , by trial and error work and iterations, just remove everything and try to do fresh build everytime.

the latest error i face was comming from segy module which i disabled and the library compiled and built  with only wornings 

 

that is for msys and mingw-w64 branch 

for visualstudio branch i found that qt creator is combiled to be 32 bit and it has only mingw 32 bit compiler so i droped the hole idea 

 

last but not least  , i think this is a pure VTK issue  not related to qt or mingw ,because other libraries are just going smooth and easy, why vtk build system not like other libraries (sorry to say that but really a greate library like this with too many use cases for visualization)  it should be easy to install 

 

P.S.

after successfuly compiling VTK i found in msys  pacman -Ss vtk  that there is vtk library there but no  VTK with Qt  , if it could be added to msys2 libraries will be great

 

thanks for all and sorry for the too many words 

 

regards

 

 

On Fri, Aug 17, 2018 at 3:36 PM Fcs <ftpronk at engits.com> wrote:

Ok.  This is clearly the wrong place for Qt/mingw support as it is not VTK
related.

However, it sounds like you are mixing up the mingw toolchain instructions.
Make sure you only use MSYS2 and mingw-w64, and only follow the instructions
related to those tools. If you are trying to compile with mingw32-make, you
are doing something wrong, it's an obsolete tool. MSYS is unrelated to
MSYS2, and mingw is not the same as mingw-w64.  The instructions are a bit
confusing on that one. Also, make sure you are using mingw-w64  with the
correct thread and error model, and in 64 bits. (Unless you need 32 bit
software..)

Using QtCreator with native VS code shouldn't be an issue, you are not
linking to QtCreator so it shouldn't matter what it is compiled with, as
long as it runs.

The Qt libraries from the Qt installer are compiled with Visual Studio, as
is Python (if you need Python support with VTK), so you shouldn't have an
issue compiling VTK with Qt support.

Kind regards.



--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html
_______________________________________________
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:
https://public.kitware.com/mailman/listinfo/vtkusers

_______________________________________________ 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: https://public.kitware.com/mailman/listinfo/vtkusers 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20180819/7a07bdea/attachment.html>


More information about the vtkusers mailing list