Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Fatal: Cannot mix incompatible Qt library (version 0x40805) with this library (version 0x40803)

Hi,

We have binded 4.8.3 version of qt with 0.25 klayout version. On system we have 4.8.5 libraries.
When running klayout, we get the above error. Does klayout looks into local libraries as well?

Thanks,
Sunil

Comments

  • Hi Sunil,

    You mean Linux I assume. Linux resolves libraries depending on the built-in RPATH or the LD_LIBRARY_PATH variable or predefined locations. Try setting LD_LIBRARY_PATH to the place where you keep the 4.8.3 libs.

    That's not the preferred way to doing that, but it's a workaround. Ideally you would make sure, Qt 4.8.3 is available on all systems (e.g. /opt/qt_4.8.3). If you have built it properly, building against this location will make qmake emit the linker options which set the RPATH to /opt/qt_4.8.3/lib or whatever). A binary built this way will ignore LD_LIBRARY_PATH and will work on every system that has /opt/qt_4.8.3).

    Matthias

  • Hi Matthias,

    The interesting part is, the klayout binded with qt (4.8.3)is same on all 3 systems we have.
    But, centOS6.9 has qt 6 version, where klayout runs properly and CentOS7.4 has qt 4.8.5, where klayout doesn't work, ends up with the error.

    So, the qt version can be >= to the binded qt version?

    Thanks,
    Sunil

  • Hi Sunil,

    hard to say .. that may be the case (and often is), but the message you get indicates that some mixing happens (i.e. plugins may be pulled from a different installation that the host installation happened on).

    Building and deployment on Linux is art, specifically on heterogeneous installations. The issues you get are not related to KLayout but to Qt. For out-of-the box systems I am providing packages, but beyond this I cannot give much support.

    Matthias

  • Hi Matthias,

    I get the following backtrace, when I use 0.25 on Centos7. Is there any bug?

    Signal number: 6
    Address: 0x9c520001c142
    Program Version: KLayout 0.25 (2018-01-04 r)

    Backtrace:
    /home/sunil.poshala/.caddata/klayout/build-release/libklayout_lay.so.0 +0x293fc6 lay::SaltDownloadManager::~SaltDownloadManager() [??:?]
    /lib64/libpthread.so.0 +0xf5e0 __restore_rt [sigaction.c:?]
    /lib64/libc.so.6 +0x351f7 __GI_raise [:?]
    /lib64/libc.so.6 +0x368e8 __GI_abort [:?]
    /home/sunil.poshala/.caddata/klayout/build-release/klayout +0x205b ?? [??:0]
    ictools/qt/4.8.3/lib/libQtCore.so.4 +0x83e8e qt_message_output(QtMsgType, char const) [??:?]
    /cadappl_sde/ictools/qt/4.8.3/lib/libQtCore.so.4 +0x8408c qt_message_output(QtMsgType, char const
    ) [??:?]
    ictools/qt/4.8.3/lib/libQtCore.so.4 +0x84245 qFatal(char const*, ...) [??:?]
    /ictools/qt/4.8.3/lib/libQtCore.so.4 +0x1bd363 QObjectPrivate::QObjectPrivate(int) [??:?]
    /lib64/libQtDBus.so.4 +0x31762 QDBusAbstractInterface::qt_metacast(char const) [??:?]
    /lib64/libQtDBus.so.4 +0x34c93 QDBusAbstractInterface::QDBusAbstractInterface(QString const&, QString const&, char const
    , QDBusConnection const&, QObject) [??:?]
    /lib64/libQtDBus.so.4 +0x18508 QDBusConnectionInterface::QDBusConnectionInterface(QDBusConnection const&, QObject
    ) [??:?]
    /lib64/libQtDBus.so.4 +0x15095 QDBusConnection::unregisterService(QString const&) [??:?]
    /lib64/libQtDBus.so.4 +0x1620f QDBusConnection::connectToBus(QDBusConnection::BusType, QString const&) [??:?]
    /lib64/libQtDBus.so.4 +0x1644a QDBusConnection::sessionBus() [??:?]
    /lib64/libkdecore.so.5 +0x1f4847 KSycoca::KSycoca() [??:?]
    /lib64/libkdecore.so.5 +0x1f4c8d KSycoca::self() [??:?]
    /lib64/libkdecore.so.5 +0x1f92b3 KSycocaFactory::KSycocaFactory(KSycocaFactoryId) [??:?]
    /lib64/libkdecore.so.5 +0x17bf87 KServiceFactory::KServiceFactory() [??:?]
    /lib64/libkdecore.so.5 +0x17c2f2 KServiceFactory::self() [??:?]
    /lib64/libkdecore.so.5 +0x174285 KService::serviceByDesktopName(QString const&) [??:?]
    /lib64/libkio.so.5 +0x1dbcbb non-virtual thunk to KFileDialog::~KFileDialog() [??:?]
    /lib64/libkio.so.5 +0x1dbf47 non-virtual thunk to KFileDialog::~KFileDialog() [??:?]
    /lib64/libkio.so.5 +0x1dfd26 KFileDialog::qt_metacall(QMetaObject::Call, int, void**) [??:?]
    /ictools/qt/4.8.3/lib/libQtGui.so.4 +0x744f6b QFileDialog::getOpenFileNames(QWidget*, QString const&, QString const&, QString const&, QString*, QFlags) [??:?]
    /home/sunil.poshala/.caddata/klayout/build-release/libklayout_laybasic.so.0 +0x27c154 lay::FileDialog::get_open(std::vector<std::string, std::allocator >&, std::string const&, std::string const&) [??:?]
    /home/sunil.poshala/.caddata/klayout/build-release/libklayout_lay.so.0 +0x1be63f lay::MainWindow::open(int) [??:?]
    /cadappl_sde/ictools/qt/4.8.3/lib/libQtCore.so.4 +0x1be218 QMetaObject::activate(QObject*, QMetaObject const*, int, void**) [??:?]
    /ictools/qt/4.8.3/lib/libQtGui.so.4 +0x1fe352 QAction::triggered(bool) [??:?]
    /ictools/qt/4.8.3/lib/libQtGui.so.4 +0x1ff700 QAction::activate(QAction::ActionEvent) [??:?]
    /cadappl_sde/ictools/qt/4.8.3/lib/libQtGui.so.4 +0x69b2bb QMenu::setDefaultAction(QAction) [??:?]
    /ictools/qt/4.8.3/lib/libQtGui.so.4 +0x6a0ca2 QMenu::event(QEvent
    ) [??:?]
    /ictools/qt/4.8.3/lib/libQtGui.so.4 +0x2627a4 QWidget::event(QEvent) [??:?]
    /ictools/qt/4.8.3/lib/libQtGui.so.4 +0x6a07cb QMenu::event(QEvent
    ) [??:?]
    /ictools/qt/4.8.3/lib/libQtGui.so.4 +0x20568f QApplicationPrivate::notify_helper(QObject*, QEvent) [??:?]
    /ictools/qt/4.8.3/lib/libQtGui.so.4 +0x20c642 QApplication::notify(QObject
    , QEvent) [??:?]
    /home/sunil.poshala/.caddata/klayout/build-release/libklayout_lay.so.0 +0xc4849 lay::Application::notify(QObject
    , QEvent) [??:?]
    /ictools/qt/4.8.3/lib/libQtCore.so.4 +0x1a61c4 QCoreApplication::notifyInternal(QObject
    , QEvent) [??:?]
    /ictools/qt/4.8.3/lib/libQtGui.so.4 +0x208366 QApplicationPrivate::sendMouseEvent(QWidget
    , QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer&, bool) [??:?]
    /ictools/qt/4.8.3/lib/libQtGui.so.4 +0x28c175 QApplication::x11ProcessEvent(_XEvent*) [??:?]
    /ictools/qt/4.8.3/lib/libQtGui.so.4 +0x28b083 QApplication::x11ProcessEvent(_XEvent*) [??:?]
    /ictools/qt/4.8.3/lib/libQtGui.so.4 +0x2b6552 QX11Info::copyX11Data(QPaintDevice const*) [??:?]
    /lib64/libglib-2.0.so.0 +0x4a4c9 g_main_context_dispatch [??:?]
    /lib64/libglib-2.0.so.0 +0x4a818 g_main_context_dispatch [??:?]
    /lib64/libglib-2.0.so.0 +0x4a8cc g_main_context_iteration [??:?]
    /ictools/qt/4.8.3/lib/libQtCore.so.4 +0x1d8a15 QEventDispatcherGlib::processEvents(QFlags) [??:?]
    /cadappl_sde/ictools/qt/4.8.3/lib/libQtGui.so.4 +0x2b609f QX11Info::copyX11Data(QPaintDevice const*) [??:?]
    /ictools/qt/4.8.3/lib/libQtCore.so.4 +0x1a5195 QEventLoop::processEvents(QFlags) [??:?]
    /ictools/qt/4.8.3/lib/libQtCore.so.4 +0x1a5568 QEventLoop::exec(QFlags) [??:?]
    /ictools/qt/4.8.3/lib/libQtCore.so.4 +0x1a78b4 QCoreApplication::exec() [??:?]
    /home/sunil.poshala/.caddata/klayout/build-release/libklayout_lay.so.0 +0xc97db lay::Application::exec() [??:?]
    /home/sunil.poshala/.caddata/klayout/build-release/libklayout_lay.so.0 +0xcb0a9 lay::Application::run() [??:?]
    /home/sunil.poshala/.caddata/klayout/build-release/klayout +0x264c ?? [??:0]
    /home/sunil.poshala/.caddata/klayout/build-release/libklayout_rba.so.0 +0x1ac98 rba::RubyInterpreter::initialize(int, char**, int (*)(int, char**)) [??:?]
    /ictools/ruby/1.9.3/lib/libruby.so.1.9 +0x17974d vm_call_cfunc [vm_insnhelper.c:406]
    /cadappl_sde/ictools/ruby/1.9.3/lib/libruby.so.1.9 +0x16b28b vm_exec_core [insns.def:1015]
    /ictools/ruby/1.9.3/lib/libruby.so.1.9 +0x172229 vm_exec [vm.c:1221]
    /ictools/ruby/1.9.3/lib/libruby.so.1.9 +0x172602 rb_iseq_eval_main [vm.c:1462]
    /ictools/ruby/1.9.3/lib/libruby.so.1.9 +0x5f972 ruby_exec_internal [eval.c:204]
    /ictools/ruby/1.9.3/lib/libruby.so.1.9 +0x5f999 ruby_exec_node [eval.c:252]
    /ictools/ruby/1.9.3/lib/libruby.so.1.9 +0x61e7f ruby_run_node [eval.c:244]
    /home/sunil.poshala/.caddata/klayout/build-release/libklayout_rba.so.0 +0x1ac2f rba::RubyInterpreter::initialize(int, char**, int (*)(int, char**)) [??:?]
    /home/sunil.poshala/.caddata/klayout/build-release/klayout +0x1feb ?? [??:0]
    /home/sunil.poshala/.caddata/klayout/build-release/klayout +0x21f5 ?? [??:0]
    /lib64/libc.so.6 +0x21c05 __libc_start_main [??:?]
    /home/sunil.poshala/.caddata/klayout/build-release/klayout +0x1f19 ?? [??:0]

    Thanks,
    Sunil

  • Hi Sunil,

    you mean 0.25 (without anything else)? That is quite old already. You should try 0.25.7 which is the latest.

    Thanks,

    Matthias

  • Hi Matthias,

    Yes, and only on CentOS7, when I try to open files from open menu, works normal on CentOS6.

    Thanks,
    Sunil

  • edited February 6

    Hi Matthias,

    I am trying to build version 0.25.7 with qt binding, qt 4.8.3, I get this error...

    collect2: ld returned 1 exit status
    gmake[3]: *** [../../../../build-release/strm2cif] Error 1
    gmake[3]: Leaving directory klayout/0.25.7/build-release/buddies/src/strm2cif' gmake[2]: *** [sub-strm2cif-make_default] Error 2 gmake[2]: Leaving directory /klayout/0.25.7/build-release/buddies/src'
    gmake[1]: *** [sub-src-make_default] Error 2
    gmake[1]: Leaving directory `/klayout/0.25.7/build-release/buddies'
    gmake: *** [sub-buddies-make_default] Error

    Could you please assist here?

    Thanks,
    Sunil

  • Hi Sunil,

    this log is just the last lines. The actual error is not shown.

    Do you have a chance to install the CentOS7 RPM? This is a tested version, but you'll need root permissions.

    Matthias

Sign In or Register to comment.