[vtkusers] Compiling VTK with Mingw64 ?
Blaine
frikker at gmail.com
Thu Sep 29 12:56:03 EDT 2011
Turns out it was my home-built QT... weird.
I installed the win64-vs2008 package and so far it's working (75%) although
you know what they say about counting your chickens...
http://code.google.com/p/qt-msvc-installer/
Thanks for all the help. Hopefully this works!
Blaine
On Wed, Sep 28, 2011 at 6:15 PM, Blaine <frikker at gmail.com> wrote:
>
> - Turned on VTK_USE_QT
> - Turned on BUILD_SHARED_LIBS
> - Turned off TESTING (TESTING on doesn't matter either)
>
> I get a linker error. Thoughts and/or suggestions? Can anyone else
> replicate this?
> Using the same compiler (mingw64) as I used to *successfully *build the
> vanilla QT, and it looks like I have a linker issue. Suggestions?
>
>
> CMakeFiles\vtkRendering.dir/objects.a(vtkQtTreeRingLabelMapper.cxx.obj):C:/work/VTK/Rendering/vtkQtTreeRingLab
> elMapper.cxx:482: undefined reference to `__imp__ZN13QTextDocumentD1Ev'
>
> CMakeFiles\vtkRendering.dir/objects.a(vtkQtTreeRingLabelMapper.cxx.obj):C:/work/VTK/Rendering/vtkQtTreeRingLab
> elMapper.cxx:359: undefined reference to `__imp__ZN13QFontMetricsFD1Ev'
>
> CMakeFiles\vtkRendering.dir/objects.a(vtkQtTreeRingLabelMapper.cxx.obj):C:/work/VTK/Rendering/vtkQtTreeRingLab
> elMapper.cxx:326: undefined reference to `__imp__ZN5QFontD1Ev'
>
> CMakeFiles\vtkRendering.dir/objects.a(vtkQtTreeRingLabelMapper.cxx.obj):C:/work/VTK/Rendering/vtkQtTreeRingLab
> elMapper.cxx:318: undefined reference to `__imp__ZN8QPainterD1Ev'
>
> CMakeFiles\vtkRendering.dir/objects.a(vtkQtTreeRingLabelMapper.cxx.obj):C:/work/VTK/Rendering/vtkQtTreeRingLab
> elMapper.cxx:386: undefined reference to `__imp__ZN11QTextStreamD1Ev'
>
> CMakeFiles\vtkRendering.dir/objects.a(vtkQtTreeRingLabelMapper.cxx.obj):C:/work/VTK/Rendering/vtkQtTreeRingLab
> elMapper.cxx:387: undefined reference to `__imp__ZN11QTextStreamD1Ev'
>
> CMakeFiles\vtkRendering.dir/objects.a(vtkQtTreeRingLabelMapper.cxx.obj):C:/work/VTK/Rendering/vtkQtTreeRingLab
> elMapper.cxx:469: undefined reference to `__imp__ZN11QTextStreamD1Ev'
>
> CMakeFiles\vtkRendering.dir/objects.a(vtkQtTreeRingLabelMapper.cxx.obj):C:/work/VTK/Rendering/vtkQtTreeRingLab
> elMapper.cxx:465: undefined reference to `__imp__ZN13QTextDocumentD1Ev'
>
> CMakeFiles\vtkRendering.dir/objects.a(vtkQtTreeRingLabelMapper.cxx.obj):C:/work/VTK/Rendering/vtkQtTreeRingLab
> elMapper.cxx:486: undefined reference to `__imp__ZN11QTextStreamD1Ev'
>
> CMakeFiles\vtkRendering.dir/objects.a(vtkQtTreeRingLabelMapper.cxx.obj):C:/work/VTK/Rendering/vtkQtTreeRingLab
> elMapper.cxx:482: undefined reference to `__imp__ZN13QTextDocumentD1Ev'
>
> CMakeFiles\vtkRendering.dir/objects.a(vtkQtTreeRingLabelMapper.cxx.obj):C:/work/VTK/Rendering/vtkQtTreeRingLab
> elMapper.cxx:359: undefined reference to `__imp__ZN13QFontMetricsFD1Ev'
>
> CMakeFiles\vtkRendering.dir/objects.a(vtkQtTreeRingLabelMapper.cxx.obj):C:/work/VTK/Rendering/vtkQtTreeRingLab
> elMapper.cxx:326: undefined reference to `__imp__ZN5QFontD1Ev'
>
> CMakeFiles\vtkRendering.dir/objects.a(vtkQtTreeRingLabelMapper.cxx.obj):C:/work/VTK/Rendering/vtkQtTreeRingLab
> elMapper.cxx:318: undefined reference to `__imp__ZN8QPainterD1Ev'
>
> CMakeFiles\vtkRendering.dir/objects.a(vtkQtTreeRingLabelMapper.cxx.obj):C:/Qt/4.7.4/include/QtGui/../../src/gu
> i/painting/qpainter.h:925: undefined reference to
> `__imp__ZN8QPainter9drawImageERK7QPointFRK6QImage'
>
> CMakeFiles\vtkRendering.dir/objects.a(vtkQtTreeRingLabelMapper.cxx.obj):C:/Qt/4.7.4/include/QtGui/../../src/gu
> i/painting/qpainter.h:927: undefined reference to
> `__imp__ZN8QPainter9drawImageERK6QRectFRK6QImageS2_6QFlagsIN
> 2Qt19ImageConversionFlagEE'
> collect2: ld returned 1 exit status
> mingw32-make[2]: *** [bin/libvtkRendering.dll] Error 1
> mingw32-make[1]: *** [Rendering/CMakeFiles/vtkRendering.dir/all] Error 2
> mingw32-make: *** [all] Error 2
>
> Blaine
>
>
>
> On Wed, Sep 28, 2011 at 3:59 PM, Blaine <frikker at gmail.com> wrote:
>
>> Thanks guys! I got it to compile. I'll try with QT next. :)
>>
>> If I can remember, I'll try a VS2008 build and send the output here. It
>> still takes quite awhile, but something like 17 / 50 of the "projects" fail
>> from inside VS. When I check the log, it typically has a problem finding
>> some file to link against in "../../bin/debug/something". I know that isn't
>> very helpful, but that's about what I remember. I'm not a VS2008 guru by any
>> means so I wasn't sure how to get more info and I had luck with mingw which
>> is why I went down this path.
>>
>> Thanks again,
>> Blaine
>>
>>
>>
>> On Wed, Sep 28, 2011 at 2:59 PM, Christian Lackas <lackas at invicro.com>wrote:
>>
>>> * Blaine <frikker at gmail.com> [110928 20:50]:
>>>
>>> Hi Blaine,
>>>
>>> > Maybe that's the problem. I don't think I have a mingw shell. Currently
>>> I'm
>>> > using the 'git' shell.
>>>
>>> I am using MSYS:
>>>
>>> http://www.mingw.org/wiki/MSYS
>>>
>>> However, you are probably already using msysgit, right? Then you should
>>> check your PATH to not include any MS products.
>>>
>>> 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/
>>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110929/9289f4b3/attachment.htm>
More information about the vtkusers
mailing list