[vtkusers] Compiling VTK with Mingw64 ?
Blaine
frikker at gmail.com
Wed Sep 28 14:27:58 EDT 2011
Yes I did. Built QT from source.
At this point I'm trying to only build VTK default from source without QT...
I'll get to QT once I confirm I can build VTK on its own. I have confidence
that this will work but I still have this (hopefully easy to solve) header
problem:
In file included from C:/Program Files/Microsoft
SDKs/Windows/v6.0A/Include/winn
t.h:28:0,
from C:/Program Files/Microsoft
SDKs/Windows/v6.0A/Include/wind
ef.h:177,
from C:/Program Files/Microsoft
SDKs/Windows/v6.0A/Include/wind
ows.h:155,
from C:/work/VTK/Common/vtkWindows.h:58,
from C:/work/VTK-build-vanilla2/Rendering/vtkgl.h:21,
from C:\work\VTK\Rendering\vtkColorMaterialHelper.cxx:22:
C:/Program Files/Microsoft SDKs/Windows/v6.0A/Include/specstrings.h:9:19:
fatal
*error: sal.h: No such file or directory*
compilation terminated.
mingw32-make[2]: ***
[Rendering/CMakeFiles/vtkRendering.dir/vtkColorMaterialHelp
er.cxx.obj] Error 1
mingw32-make[1]: *** [Rendering/CMakeFiles/vtkRendering.dir/all] Error 2
mingw32-make: *** [all] Error 2
Any tips on how to get cmake to find sal.h? I do have sal.h inside this
directory: C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include
but i can't figure out how to let cmake know it's there. I have that
directory added to my path but so far that doesn't do anything. Adding a
manual -IC:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include to
cmake's compiler options seems dirty.
... then again i'm not sure why it is depending on sal.h in a microsoft
visual studio folder if we're using mingw...
Blaine
On Tue, Sep 27, 2011 at 9:03 PM, Ashika Umanga Umagiliya <
aumanga at biggjapan.com> wrote:
> Just to confirm,
> You compiled QT 4.7.4 from the source using Mingw64 right?
> Because QT officially doesn't give a Mingw64 build.
>
>
> On 28 September 2011 07:14, Blaine <frikker at gmail.com> wrote:
> > Hi everyone. I've been trying for what seems like weeks to get VTK to
> > install. I really need help!
> > I used the exact same mingw64 install that Ashika used, and the latest
> git
> > pull from VTK.
> > I did the following in CMAKE (2.8.x):
> >
> > enabled shared libs
> > disabled testing
> > enabled QT
> > (reconfigure)
> > enabled QT openGL
> >
> > That's it! I have QT 4.7.4 installed and I think it works.
> > Now what happens is "ld.exe" apparently hangs and crashes during compile.
> > see this link: http://i.imgur.com/0m4hy.png
> > ----------- Vanilla Compile ------------
> > If I don't change CMAKE at all and use all default params, it does the
> same
> > thing (ld.exe hangs at 16%).
> > This is a new build computer and I'm not sure what's going on.
> > any suggestions?
> > Blaine
> >
> >
> > On Tue, Sep 27, 2011 at 12:26 AM, Ashika Umanga Umagiliya
> > <aumanga at biggjapan.com> wrote:
> >>
> >> Hi ,
> >> I used x86_64-w64-mingw32-gcc-4.6.1_rubenvb.zip
> >> And latest VTK source from the GIT.
> >> If you are compiling QT ,use official QT source . "NOT" the QT-Mingw64
> >> port (https://gitorious.org/+qt-mingw-w64/qt/qt-mingw-w64-qt).
> >>
> >>
> >>
> >>
> >>
> >> On 27 September 2011 11:50, Gib Bogle <g.bogle at auckland.ac.nz> wrote:
> >> > Hi Ashika,
> >> >
> >> > Which of those 9 builds did you use?
> >> >
> >> > Thanks
> >> > Gib
> >> >
> >> > On 27/09/2011 3:16 p.m., Ashika Umanga Umagiliya wrote:
> >> >>
> >> >> Hi all,
> >> >>
> >> >> Build was successful using the following Ming64 build :
> >> >>
> >> >>
> >> >>
> >> >>
> http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/rubenvb/
> >> >>
> >> >> Thanks everyone for the support.
> >> >>
> >> >>
> >> >>
> >> >>
> >> >> On 22 September 2011 13:48, Ashika Umanga Umagiliya
> >> >> <aumanga at biggjapan.com> wrote:
> >> >>>
> >> >>> Hi all,
> >> >>>
> >> >>> I tried building latest VTK (master from git) and build failed the
> >> >>> same place as before.
> >> >>> Seems the issue is with Mingw64 build ?
> >> >>> I will try another Mingw64.
> >> >>>
> >> >>> thanks
> >> >>>
> >> >>> -----------------------------
> >> >>> [ 79%] Building CXX object
> >> >>> VolumeRendering/CMakeFiles/vtkVolumeRendering.dir/vtk
> >> >>> ProjectedTetrahedraMapper.cxx.obj
> >> >>>
> C:\git-checkouts\VTK\VolumeRendering\vtkProjectedTetrahedraMapper.cxx:
> >> >>> In
> >> >>> functi
> >> >>> on 'void vtkProjectedTetrahedraMapperTransformPoints(const
> >> >>> point_type*,
> >> >>> vtkIdTyp
> >> >>> e, const float*, const float*, float*) [with point_type = long int,
> >> >>> vtkIdType =
> >> >>> long long int]':
> >> >>>
> >> >>>
> >> >>>
> C:\git-checkouts\VTK\VolumeRendering\vtkProjectedTetrahedraMapper.cxx:98:6:
> >> >>> inte
> >> >>> rnal compiler error: in ix86_vectorize_builtin_vec_perm_ok, at
> >> >>> config/i386/i386.
> >> >>> c:30247
> >> >>> Please submit a full bug report,
> >> >>> with preprocessed source if appropriate.
> >> >>> See<http://gcc.gnu.org/bugs.html> for instructions.
> >> >>> mingw32-make[2]: ***
> >> >>> [VolumeRendering/CMakeFiles/vtkVolumeRendering.dir/vtkProje
> >> >>> ctedTetrahedraMapper.cxx.obj] Error 1
> >> >>> mingw32-make[1]: ***
> >> >>> [VolumeRendering/CMakeFiles/vtkVolumeRendering.dir/all] Err
> >> >>> or 2
> >> >>> mingw32-make: *** [all] Error 2
> >> >>>
> >> >>>
> >> >>>
> >> >>> On 22 September 2011 10:06, Ashika Umanga Umagiliya
> >> >>> <aumanga at biggjapan.com> wrote:
> >> >>>>
> >> >>>> Hi David,Christian ,
> >> >>>>
> >> >>>> Thanks alot. I will give it a try and let you know how it went.
> >> >>>>
> >> >>>> best regards
> >> >>>>
> >> >>>>
> >> >>>> On 22 September 2011 04:13, Christian Lackas<christian at lackas.net>
> >> >>>> wrote:
> >> >>>>>
> >> >>>>> * David Partyka<david.partyka at kitware.com> [110921 15:55]:
> >> >>>>>
> >> >>>>> David,
> >> >>>>>
> >> >>>>>> I just pushed a number of fixes based off Christian's patch into
> >> >>>>>> the
> >> >>>>>> master
> >> >>>>>> and release branches on git. Please try them and let me know.
> >> >>>>>> Thanks!
> >> >>>>>
> >> >>>>> thanks also. Will give it a try.
> >> >>>>>
> >> >>>>> Christian
> >> >>>>>
> >> >>>>> --
> >> >>>>> Dr. Christian Lackas, Managing Partner
> >> >>>>> inviCRO, LLC -- In Imaging Yours
> >> >>>>> P: +1 617 933 8733, F: +49 2203 9034722, E: lackas at invicro.com
> >> >>>>> http://www.invicro.com/ http://www.spect-ct.com/
> >> >>>>>
> >> > 0
> >> >
> >> > _______________________________________________
> >> > 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
> >> >
> >> > Follow this link to subscribe/unsubscribe:
> >> > http://www.vtk.org/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
> >>
> >> Follow this link to subscribe/unsubscribe:
> >> http://www.vtk.org/mailman/listinfo/vtkusers
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110928/72d06690/attachment.htm>
More information about the vtkusers
mailing list