← Back to team overview

dolfin team mailing list archive

Re: Qt interface

 

cd demo/undocumented/csg/3D/cpp/
cmake .
make
Linking CXX executable demo_csg_3D
/home/hake/local/lib/libdolfin.so: error: undefined reference to
'QCoreApplication::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)'
/home/hake/local/lib/libdolfin.so: error: undefined reference to
'QString::free(QString::Data*)'
/home/hake/local/lib/libdolfin.so: error: undefined reference to
'QWidget::resize(QSize const&)'
/home/hake/local/lib/libdolfin.so: error: undefined reference to
'QCoreApplication::self'
/home/hake/local/lib/libdolfin.so: error: undefined reference to
'qt_assert(char const*, char const*, int)'
/home/hake/local/lib/libdolfin.so: error: undefined reference to
'QApplication::QApplication(int&, char**, int)'
/home/hake/local/lib/libdolfin.so: error: undefined reference to
'QString::fromAscii_helper(char const*, int)'
/home/hake/local/lib/libdolfin.so: error: undefined reference to
'QWidget::setWindowTitle(QString const&)'
/home/hake/local/lib/libdolfin.so: error: undefined reference to
'QWidget::windowTitle() const'
/home/hake/local/lib/libdolfin.so: error: undefined reference to
'QString::toAscii() const'
/home/hake/local/lib/libdolfin.so: error: undefined reference to
'qFree(void*)'
/home/hake/local/lib/libdolfin.so: error: undefined reference to
'QWidget::close()'
/home/hake/local/lib/libdolfin.so: error: undefined reference to
'QCoreApplication::quit()'
/home/hake/local/lib/libdolfin.so: error: undefined reference to
'QApplication::exec()'
/home/hake/local/lib/libdolfin.so: error: undefined reference to
'QWidget::frameSize() const'
/home/hake/local/lib/libdolfin.so: error: undefined reference to
'QApplication::desktop()'
/home/hake/local/lib/libdolfin.so: error: undefined reference to
'QDesktopWidget::availableGeometry(int) const'
/home/hake/local/lib/libdolfin.so: error: undefined reference to
'QWidget::move(QPoint const&)'
collect2: error: ld returned 1 exit status


On 11/21/2012 12:34 PM, Joachim Berdal Haga wrote:
> If you remember any details, please share. I'd like it to work, naturally.
> 
> On 21 November 2012 12:27, Johan Hake <hake.dev@xxxxxxxxx> wrote:
>> On 11/21/2012 12:14 PM, Garth N. Wells wrote:
>>> On Wed, Nov 21, 2012 at 11:01 AM, Anders Logg <logg@xxxxxxxxx> wrote:
>>>> The problem seems to be I have QT installed but not QVTK. How should
>>>> QVTK be installed? I have built VTK myself using Dorsal. Does it help
>>>> to rebuild VTK now that I have the libqt4-dev package installed, which
>>>> I didn't have at the time when I built VTK.
>>>>
>>>
>>> You need to tell VTK to build the VTK-QT interface library. Use
>>> cmake-gui to find the option.
>>
>> Exactly and it works fine.
>>
>> But I had some problems with compile-time linking to some QT libraries
>> when compiling an ordinary demo (not plot-qt). I did not bother looking
>> into it, and just disabled QT :/
>>
>> Johan
>>
>>> Garth
>>>
>>>> --
>>>> Anders
>>>>
>>>>
>>>> On Tue, Nov 20, 2012 at 07:17:41AM +0100, Joachim Berdal Haga wrote:
>>>>>    Ok. To be certain qt is used with dolfin, you can check the presence of
>>>>>    f.x. ctrl-w in the help text - or just try it.
>>>>>
>>>>>    Den 19. nov. 2012 23:49 skrev "Anders Logg" <[1]logg@xxxxxxxxx>
>>>>>    følgende:
>>>>>
>>>>>      Thanks for the clarification. The plot-qt demo does not seem to
>>>>>      build
>>>>>      for me even if DOLFIN itself is built with Qt support, but I might
>>>>>      have messed up my environment. Will check again tomorrow.
>>>>>
>>>>> Referenser
>>>>>
>>>>>    1. mailto:logg@xxxxxxxxx
>>>>>    2. mailto:logg@xxxxxxxxx
>>>>>    3. mailto:logg@xxxxxxxxx
>>>>>    4. https://launchpad.net/~dolfin
>>>>>    5. mailto:dolfin@xxxxxxxxxxxxxxxxxxx
>>>>>    6. https://launchpad.net/~dolfin
>>>>>    7. https://help.launchpad.net/ListHelp
>>>>
>>>> _______________________________________________
>>>> Mailing list: https://launchpad.net/~dolfin
>>>> Post to     : dolfin@xxxxxxxxxxxxxxxxxxx
>>>> Unsubscribe : https://launchpad.net/~dolfin
>>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>> _______________________________________________
>>> Mailing list: https://launchpad.net/~dolfin
>>> Post to     : dolfin@xxxxxxxxxxxxxxxxxxx
>>> Unsubscribe : https://launchpad.net/~dolfin
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~dolfin
>> Post to     : dolfin@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~dolfin
>> More help   : https://help.launchpad.net/ListHelp



Follow ups

References