[vtkusers] X11 CMake Errors on Mac

Bill Lorensen bill.lorensen at gmail.com
Fri Jan 4 15:40:36 EST 2013


Ben,

How did you get the wiki example. Did you download the tarball from
here: http://itk.org/Wiki/VTK/Examples/Cxx/Qt/EventQtSlotConnect#Download_and_Build_EventQtSlotConnect

Bill

On Fri, Jan 4, 2013 at 3:36 PM, Bill Lorensen <bill.lorensen at gmail.com> wrote:
> David,
>
> The wiki examples are very well maintained. I just downloaded the
> tarball for EventQtSlotConnect and it built fine for VTK6.
>
> I'll have to try it with VTK5.
>
> Bill
>
> On Fri, Jan 4, 2013 at 3:11 PM, David Gobbi <david.gobbi at gmail.com> wrote:
>> So VTK itself built fine?  It's just an example that fails to build?
>> The problem is most likely with the example.  Those wiki
>> examples are provided by the community (anyone can edit the
>> wiki) so I'm not sure how well-maintained they are.
>>
>> From the error that you are seeing, which says that the
>> symbol vtkEventQtSlotConnect::New cannot be found,
>> I can say that the target_link_libraries in the example's
>> CMakeLists.txt must be missing the QVTK library.  That's
>> the library that defines the missing function.
>>
>>  - David
>>
>>
>> On Fri, Jan 4, 2013 at 12:48 PM, Berkowitz, Benjamin M
>> <benjamin-berkowitz at uiowa.edu> wrote:
>>> Hi David,
>>>
>>> I uninstalled and reinstalled both Qt and VTK.  I tried building the EventQtSlotConnect example, and I'm getting this error:
>>>
>>> Linking CXX executable EventQtSlotConnect.app/Contents/MacOS/EventQtSlotConnect
>>> Undefined symbols for architecture x86_64:
>>>   "QVTKWidget::QVTKWidget(QWidget*, QFlags<Qt::WindowType>)", referenced from:
>>>       Ui_EventQtSlotConnect::setupUi(QMainWindow*) in EventQtSlotConnect.cxx.o
>>>   "vtkEventQtSlotConnect::New()", referenced from:
>>>       vtkSmartPointer<vtkEventQtSlotConnect>::New() in EventQtSlotConnect.cxx.o
>>> ld: symbol(s) not found for architecture x86_64
>>> clang: error: linker command failed with exit code 1 (use -v to see invocation)
>>> make[2]: *** [EventQtSlotConnect.app/Contents/MacOS/EventQtSlotConnect] Error 1
>>> make[1]: *** [CMakeFiles/EventQtSlotConnect.dir/all] Error 2
>>> make: *** [all] Error 2
>>>
>>>
>>> Do you have any ideas?
>>>
>>> Thanks,
>>> Ben
>>>
>>>
>>>
>>> On Jan 4, 2013, at 12:10 PM, David Gobbi <david.gobbi at gmail.com>
>>>  wrote:
>>>
>>>> I should also mention: if you are using OS X 10.8, then you should
>>>> be using VTK 5.10.1 rather than VTK 5.10.  The .1 release included
>>>> some small fixes for OS X 10.8.
>>>>
>>>> - David
>>>>
>>>>
>>>> On Fri, Jan 4, 2013 at 11:00 AM, David Gobbi <david.gobbi at gmail.com> wrote:
>>>>> Hi Ben,
>>>>>
>>>>> Go with Qt 4.8.  Qt is what most people use with VTK.  Install the dmg
>>>>> file from digia (qt-mac-opensource-4.8.4.dmg) and then build your VTK
>>>>> with these CMake options:
>>>>>
>>>>> BUILD_SHARED=ON
>>>>> VTK_USE_COCOA=ON
>>>>> VTK_USE_QT=ON
>>>>>
>>>>> That's all that I do when I build VTK with Qt.  The VTK build on OS X
>>>>> 10.6 through 10.8 is x86_64 by default, which works fine with the Qt
>>>>> binary package that I mentioned above.  If you have build/link issues
>>>>> related to Qt, check the QT-related variables in VTK's CMakeCache.txt
>>>>> to make sure that it is finding the right versions of all the Qt
>>>>> libraries (if you have multiple versions of Qt installed on your
>>>>> system, this could be an issue).
>>>>>
>>>>> - David
>>>>>
>>>>>
>>>>>
>>>>> On Fri, Jan 4, 2013 at 10:38 AM, bberkowi <benjamin-berkowitz at uiowa.edu> wrote:
>>>>>> Thanks, that makes sense.  I was hoping that I would be able to use KWWidgets
>>>>>> to build a simple GUI, but it seems like that may not be the case.  I also
>>>>>> haven't had luck with VTK for use with either Qt 4.8 or 5.0.  Do you know of
>>>>>> any alternatives?
>>>
>> _______________________________________________
>> 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
>
>
>
> --
> Unpaid intern in BillsBasement at noware dot com



-- 
Unpaid intern in BillsBasement at noware dot com



More information about the vtkusers mailing list