[vtkusers] X11 CMake Errors on Mac

Bill Lorensen bill.lorensen at gmail.com
Fri Jan 4 16:59:14 EST 2013


David,

Looks like VTK5.10 does not include QVTK in its list of libraries.

I will have to work out a solution that works for both VTK5 and VTK6.

Ben,

for the time being add QVTK to ythe list of target_link_libraries.

Bill

On Fri, Jan 4, 2013 at 4:51 PM, Bill Lorensen <bill.lorensen at gmail.com> wrote:
> Hmmm. VTK_LIBRARIES should include that.
>
> I'll verify on my linux build with VTK5. It's very easy to fix all the
> qt examples on the wiki since they use a wiki template.
>
> Thanks David.
>
> Bill
>
>
> On Fri, Jan 4, 2013 at 4:31 PM, David Gobbi <david.gobbi at gmail.com> wrote:
>> I just tried building that example against my own VTK 5.10.1,
>> which is built with VTK_USE_QT, and Qt4.8.3.  I saw exactly
>> the same error that Ben reported:
>>
>> Undefined symbols:
>>   "QVTKWidget::QVTKWidget(QWidget*, QFlags<Qt::WindowType>)"
>>
>> When built against VTK 5.10 (or VTK 5.10.1), this example is not
>> linking to the QVTK library.  Its CMakeLists.txt has to be fixed.
>>
>>  - David
>>
>>
>> On Fri, Jan 4, 2013 at 2:21 PM, Bill Lorensen <bill.lorensen at gmail.com> wrote:
>>> I'm builid a VTK5 QT 4.7.4 on linux right now. Later I'll try my Mac,
>>> but I don't think I use Qt 4.8.
>>>
>>> David may be correct that the CMakeLists.txt file is broken.
>>> Unfortunately, we can only test so many combinations of VTK/Qt
>>> versions.
>>>
>>> Bill
>>>
>>> On Fri, Jan 4, 2013 at 4:19 PM, Berkowitz, Benjamin M
>>> <benjamin-berkowitz at uiowa.edu> wrote:
>>>> VTK 5.10.1 and Qt 4.8.4
>>>>
>>>> The options that I changed from default were:
>>>> VTK_USE_QT = ON
>>>> VTK_USE_GUISUPPORT = ON
>>>> BUILD_SHARED_LIBS = ON
>>>>
>>>> and as a side note, I've tried using CMAKE_BUILD_TYPE as both Debug and Release mode with the same result.  For now I left it as the default Debug.
>>>>
>>>>
>>>> On Jan 4, 2013, at 3:11 PM, Bill Lorensen <bill.lorensen at gmail.com> wrote:
>>>>
>>>>> And VTK 5.10?
>>>>>
>>>>>
>>>>> On Fri, Jan 4, 2013 at 4:09 PM, Berkowitz, Benjamin M
>>>>> <benjamin-berkowitz at uiowa.edu> wrote:
>>>>>> Yes
>>>>>>
>>>>>>
>>>>>> On Jan 4, 2013, at 3:02 PM, Bill Lorensen <bill.lorensen at gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>>> Is your VTK built with QT turned on?
>>>>>>>
>>>>>>> On Fri, Jan 4, 2013 at 3:57 PM, Berkowitz, Benjamin M
>>>>>>> <benjamin-berkowitz at uiowa.edu> wrote:
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Unpaid intern in BillsBasement at noware dot com
>>>>
>>>
>>>
>>>
>>> --
>>> Unpaid intern in BillsBasement at noware dot com
>
>
>
> --
> Unpaid intern in BillsBasement at noware dot com



-- 
Unpaid intern in BillsBasement at noware dot com



More information about the vtkusers mailing list