- Index
- » Developer
- » OpenModelica development
- » Problems compiling qtclients
Problems compiling qtclients
Problems compiling qtclients
While compiling qtclients for 64 bit Kubuntu 11.10 per the instructions in README.Linux.txt from a svc from today I get the following error:
..-I. -I. -o main.o ../main.cpp
In file included from ../GUI/Tabs/TabProject.h:50:0,
from ../GUI/MainWindow.h:50,
from ../main.cpp:43:
../GUI/Plots/MOOptPlot.h:78:55: error: ‘QwtDoublePoint’ does not name a type
Adding:
#include <qwt_interval.h>
#include <qwt_point_3d.h>
#include <qwt_compat.h>
to MOOptPlot.h allows the compile to proceed until:
In file included from ../GUI/Tabs/TabProject.h:50:0,
from ../GUI/MainWindow.h:50,
from ../main.cpp:43:
../GUI/Plots/MOOptPlot.h:93:42: error: ‘QwtPlotPrintFilter’ does not name a type
Looking at the doc and in /usr/include/qwt/ I cannot find QwtPlotPrintFilter in version qwt 6.0.0
What version of qwt is qtclients compiled against
Some suggestions for this would be appreciated.
Paul
allows this compile tp proceed
Re: Problems compiling qtclients
The source-package (deb-src http://build.openmodelica.org/apt nightly contrib) lists all dependencies to compile OpenModelica:
Code:
Source: openmodelica
Section: math
Priority: optional
Maintainer: OpenModelica Build System <build@openmodelica.org>
Build-Depends: debhelper (>= 7.0.0),
libsqlite3-dev,
libssl-dev (>= 0.9.8g),
libreadline-dev,
libqt4-dev (>= 4.4.3),
libqwt5-qt4-dev (>= 5.1.1),
liblpsolve55-dev (>= 5.5.0.10),
rml-mmc (>= 204),
openjdk-6-jdk | sun-java6-jdk,
libomniorb4-dev,
omniidl4 | omniidl (>= 4.0.0),
gnuplot,
xsltproc,
flex,
paradiseo,
bison,
libf2c2-dev,
liblapack-dev,
autoconf,
zip,
libexpat1-dev,
libsoqt4-dev,
libcoin60-dev (>= 3.1.3)
Standards-Version: 3.8.4
It's a lot easier to use
Code:
apt-get build-dep openmodelica
than installing the packages by hand though.
- sjoelund.se
- 1700 Posts
Re: Problems compiling qtclients
Thank you for the help with configuring OM under Ubuntu 11.10
Compiling with the flags -g -O0 -fno-inline -fno-eliminate-unused-debug-types
I still get the seg fault in OMEdit when plotting Bubblesort.mo
running under gdb, a stack backtrace gives:
#0 0x00007ffff421c4f4 in QMetaObject::invokeMethod(QObject*, char const*, Qt::ConnectionType, QGenericReturnArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#1 0x00007ffff4606094 in QAbstractSocket::disconnectFromHost() () from /usr/lib/x86_64-linux-gnu/libQtNetwork.so.4
#2 0x00007ffff4609938 in ?? () from /usr/lib/x86_64-linux-gnu/libQtNetwork.so.4
#3 0x00007ffff45f8551 in ?? () from /usr/lib/x86_64-linux-gnu/libQtNetwork.so.4
#4 0x00007ffff4a83424 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#5 0x00007ffff4a88291 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#6 0x00007ffff4212afc in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#7 0x00007ffff423d5b7 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#8 0x00007ffff1c1da5d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#9 0x00007ffff1c1e258 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#10 0x00007ffff1c1e429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#11 0x00007ffff423ded6 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#12 0x00007ffff4b2b07e in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#13 0x00007ffff4211cf2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#14 0x00007ffff4211ef7 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#15 0x00007ffff4216789 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#16 0x000000000042e9e3 in main ()
Some suggestions where to look would speed things up and be seriously appreciated.
Again thanks for the help.
Paul
- Index
- » Developer
- » OpenModelica development
- » Problems compiling qtclients