Please help me with the qbs



  • There is a project https://github.com/euroelessar/qutim/tree/qbs brach qbs, he has already compiled quite as qbs, spent compiling under Ubuntu.
    Today I decided to compile a qutIM itself, I have Archlinux, qt 4.8, qbs compiled from git repository.
    There are a variety of errors:

    @linking libantiboss.so
    /usr/bin/g++ -Wall -W -Wl,--hash-style=gnu -Wl,--as-needed -Wl,--allow-shlib-undefined -Wl,--no-undefined -Wl,-soname=libantiboss.so -Wl,-rpath,$ORIGIN -shared /media/pomoika/qutim-qbs/src/qutim-build/build/debug/.obj/antiboss/GeneratedFiles/antiboss/moc_antibossplugin.o /media/pomoika/qutim-qbs/src/qutim-build/build/debug/.obj/antiboss/src/antibossplugin.o -o /media/pomoika/qutim-qbs/src/qutim-build/build/debug/lib/qutim/plugins/libantiboss.so -Wl,-rpath,$ORIGIN/../..:$ORIGIN:/usr/lib -L/usr/lib -L/media/pomoika/qutim-qbs/src/qutim-build/build/debug/lib -lqutim -lQtCore -lQtGui -lQtNetwork -lQtScript
    /media/pomoika/qutim-qbs/src/qutim-build/build/debug/.obj/antiboss/src/antibossplugin.o: In function AntiBossPlugin::init()': antibossplugin.cpp:(.text+0x122): undefined reference toqutim_sdk_0_3::Plugin::makePluginVersion(unsigned char, unsigned char, unsigned char, unsigned char) const'
    collect2: выполнение ld завершилось с кодом возврата 1

    ERROR: Process failed with exit code 1.
    /usr/bin/g++ -Wall -W -fPIC -DQT_GUI_LIB -I/usr/share/qt/mkspecs/default -I/usr/include/QtCore -I/usr/include -I/media/pomoika/qutim-qbs/src/qutim-build/build/debug/GeneratedFiles/slidingstackedwidget -I/usr/include/QtGui -c /media/pomoika/qutim-qbs/src/qutim-build/core/3rdparty/slidingstackedwidget/slidingstackedwidget.cpp -o /media/pomoika/qutim-qbs/src/qutim-build/build/debug/.obj/slidingstackedwidget/slidingstackedwidget/slidingstackedwidget.o
    /media/pomoika/qutim-qbs/src/qutim-build/core/3rdparty/slidingstackedwidget/slidingstackedwidget.cpp: В функции-члене «void SlidingStackedWidget::slideInIdx(int, SlidingStackedWidget::SlideDirection)»:
    /media/pomoika/qutim-qbs/src/qutim-build/core/3rdparty/slidingstackedwidget/slidingstackedwidget.cpp:103:6: предупреждение: variable «offset» set but not used [-Wunused-but-set-variable]@

    @/usr/bin/moc -DTORYCONTACTLISTWIDGET_LIBRARY -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_SCRIPT_LIB -I/media/pomoika/qutim-qbs/src/qutim-build/build/debug -I/usr/share/qt/mkspecs/default -I/usr/include/QtCore -I/usr/include -I/media/pomoika/qutim-qbs/src/qutim-build/build/debug/GeneratedFiles/libqutim -I/usr/include/QtGui -I/usr/include/QtNetwork -I/usr/include/QtScript -I/usr/share/qt/mkspecs/default -I/usr/include/QtCore -I/usr/include -I/media/pomoika/qutim-qbs/src/qutim-build/build/debug/GeneratedFiles/torycontactlistwidget -I/usr/share/qt/mkspecs/default -I/usr/include/QtCore -I/usr/include -I/media/pomoika/qutim-qbs/src/qutim-build/build/debug/GeneratedFiles/simplecontactlist -o /media/pomoika/qutim-qbs/src/qutim-build/build/debug/GeneratedFiles/torycontactlistwidget/moc_torywidget.cpp /media/pomoika/qutim-qbs/src/qutim-build/core/src/corelayers/simplecontactlist/widgets/torycontactlistwidget/torywidget.h
    /media/pomoika/qutim-qbs/src/qutim-build/core/src/corelayers/simplecontactlist/widgets/torycontactlistwidget/torywidget.h:49: Error: Undefined interface

    ERROR: Process failed with exit code 1.@

    @/usr/bin/g++ -Wall -W -fPIC -DSIMPLECONTACTLIST_LIBRARY -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_SCRIPT_LIB -I/media/pomoika/qutim-qbs/src/qutim-build/build/debug -I/usr/share/qt/default -I/usr/include/QtCore -I/usr/include -I/media/pomoika/qutim-qbs/src/qutim-build/build/debug/GeneratedFiles/libqutim -I/usr/include/QtGui -I/usr/include/QtNetwork -I/usr/include/QtScript -I/usr/share/qt/default -I/usr/include/QtCore -I/usr/include -I/media/pomoika/qutim-qbs/src/qutim-build/build/debug/GeneratedFiles/simplecontactlist -c /media/pomoika/qutim-qbs/src/qutim-build/build/debug/simplecontactlistplugin.cpp -o /media/pomoika/qutim-qbs/src/qutim-build/build/debug/.obj/simplecontactlist/simplecontactlistplugin.o
    /media/pomoika/qutim-qbs/src/qutim-build/build/debug/simplecontactlistplugin.cpp:22:39: фатальная ошибка: simplecontactlistplugin.moc: Нет такого файла или каталога
    компиляция прервана.

    ERROR: Process failed with exit code 1.
    @

    my qbs.conf:

    @
    [defaults]
    platform=gcc

    [qt]
    default\binPath=/usr/bin
    default\incPath=/usr/include/
    default\libPath=/usr/lib
    default\mkspecsPath=/usr/share/qt/mkspecs/@

    @[dganic@dga ~]$ ls /usr/share/qt/mkspecs/default
    qmake.conf qplatformdefs.h@

    @[dganic@dga ~]$ cat /usr/share/qt/mkspecs/default/qmake.conf

    qmake configuration for linux-g++

    Written for GNU/Linux platforms that have both lib and lib64 directories,

    like the AMD Opteron.

    MAKEFILE_GENERATOR = UNIX
    TARGET_PLATFORM = unix
    TEMPLATE = app
    CONFIG += qt warn_on release incremental link_prl gdb_dwarf_index
    QT += core gui
    QMAKE_INCREMENTAL_STYLE = sublib

    QMAKE_CFLAGS = -m64
    QMAKE_LFLAGS = -m64

    include(../common/linux.conf)
    include(../common/gcc-base-unix.conf)
    include(../common/g++-unix.conf)

    QMAKE_LIBDIR_X11 = /usr/X11R6/lib64
    QMAKE_LIBDIR_OPENGL = /usr/X11R6/lib64

    load(qt_config)
    @

    @[dganic@dga mkspecs]$ cat /usr/share/qt/mkspecs/default/qplatformdefs.h
    /****************************************************************************
    **
    ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    ..................
    **
    ** $QT_END_LICENSE$
    **
    ****************************************************************************/

    #include "../linux-g++/qplatformdefs.h"@

    Please help me with errors. Sorry for the very poor English. Thanks in advance for your help.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.