LINUX.ORG.RU

Сборка программ на QT5

 , , ,


0

1

Столкнулся с такой ошибкой при сборке aqemu:

/usr/lib/libGL.so.1: undefined reference to `xcb_poll_for_special_event'
/usr/lib/libxcb-dri3.so.0: undefined reference to `xcb_get_reply_fds'
/usr/lib/libxcb-dri3.so.0: undefined reference to `xcb_send_fd'
/usr/lib/libGL.so.1: undefined reference to `xcb_wait_for_special_event'
/usr/lib/libGL.so.1: undefined reference to `xcb_unregister_for_special_event'
/usr/lib/libGL.so.1: undefined reference to `xcb_register_for_special_xge'
collect2: ошибка: выполнение ld завершилось с кодом возврата 1
CMakeFiles/aqemu.dir/build.make:1270: ошибка выполнения рецепта для цели «aqemu»
make[2]: *** [aqemu] Ошибка 1
CMakeFiles/Makefile2:99: ошибка выполнения рецепта для цели «CMakeFiles/aqemu.dir/all»
make[1]: *** [CMakeFiles/aqemu.dir/all] Ошибка 2
Makefile:127: ошибка выполнения рецепта для цели «all»
make: *** [all] Ошибка 2

пакет libxcb стоит.

Я могу ошибаться, но, по-моему, тебе нужен libxcb, собранный с поддержкой Qt5. Или Qt5 с поддержкой libxcb.

IceWindDale ()

Какую версию aqemu собираете?
С каким qt5?

bormant ★★★★★ ()

перед сборкой укажи вручную где у тебя лежит qmake-qt5 вроде того:

export QMAKE=/usr/bin/qmake-qt5
ну или где он у тебя пригрелся, ниже уже сказали - наверно кутю надо собрать с xcb-enabled перед этим...

Gramozeka ★★ ()
# (cd /var/log/packages; ls qt5-*)
qt5-5.6.0-i486-1alien

# tar xf aqemu-0.9.1.tar.gz
...
# cd aqemu-0.9.1
# cmake -DCMAKE_INSTALL_PREFIX=/usr -DMAN_PAGE_COMPRESSOR=gzip
# make
...
[100%] Built target icons

# rm -r /tmp/pkg; mkdir /tmp/pkg
# make DESTDIR=/tmp/pkg install
# cd /tmp/pkg
# makepkg /tmp/aqemu-0.9.1-i486-1.txz



Правда, вот так вот напрямую оно не завелось:

$ aqemu
This application failed to start because it could not find or load the Qt platform plugin "xcb" in "".

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, wayland, xcb.

Reinstalling the application may fix this problem.
Aborted

bormant ★★★★★ ()
Последнее исправление: bormant (всего исправлений: 1)
Ответ на: комментарий от Algierd

Посмотрел проект, там CMake.

Попробуй подлинкуй XCB::XCB в LINK_TARGET_LIBRARIES.

EXL ★★★★★ ()

Я вот тоже пытаюсь собрать новый aqemu На kubuntu 16.04, но собирать не умею, а очень хочется. Вроде надо так:

git clone https://github.com/tobimensch/aqemu.git
cd aqemu
cmake .
make
checkinstall

kot@kot-MS-7930:~/aqemu$ cmake .
CMake Warning at CMakeLists.txt:183 (FIND_PACKAGE):
  By not providing "FindQt5Core.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Qt5Core", but
  CMake did not find one.

  Could not find a package configuration file provided by "Qt5Core" with any
  of the following names:

    Qt5CoreConfig.cmake
    qt5core-config.cmake

  Add the installation prefix of "Qt5Core" to CMAKE_PREFIX_PATH or set
  "Qt5Core_DIR" to a directory containing one of the above files.  If
  "Qt5Core" provides a separate development package or SDK, be sure it has
  been installed.


CMake Warning at CMakeLists.txt:184 (FIND_PACKAGE):
  By not providing "FindQt5Widgets.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "Qt5Widgets", but CMake did not find one.

  Could not find a package configuration file provided by "Qt5Widgets" with
  any of the following names:

    Qt5WidgetsConfig.cmake
    qt5widgets-config.cmake

  Add the installation prefix of "Qt5Widgets" to CMAKE_PREFIX_PATH or set
  "Qt5Widgets_DIR" to a directory containing one of the above files.  If
  "Qt5Widgets" provides a separate development package or SDK, be sure it has
  been installed.


CMake Warning at CMakeLists.txt:185 (FIND_PACKAGE):
  By not providing "FindQt5Network.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "Qt5Network", but CMake did not find one.

  Could not find a package configuration file provided by "Qt5Network" with
  any of the following names:

    Qt5NetworkConfig.cmake
    qt5network-config.cmake

  Add the installation prefix of "Qt5Network" to CMAKE_PREFIX_PATH or set
  "Qt5Network_DIR" to a directory containing one of the above files.  If
  "Qt5Network" provides a separate development package or SDK, be sure it has
  been installed.


CMake Warning at CMakeLists.txt:186 (FIND_PACKAGE):
  By not providing "FindQt5Test.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "Qt5Test", but
  CMake did not find one.

  Could not find a package configuration file provided by "Qt5Test" with any
  of the following names:

    Qt5TestConfig.cmake
    qt5test-config.cmake

  Add the installation prefix of "Qt5Test" to CMAKE_PREFIX_PATH or set
  "Qt5Test_DIR" to a directory containing one of the above files.  If
  "Qt5Test" provides a separate development package or SDK, be sure it has
  been installed.


CMake Warning at CMakeLists.txt:187 (FIND_PACKAGE):
  By not providing "FindQt5PrintSupport.cmake" in CMAKE_MODULE_PATH this
  project has asked CMake to find a package configuration file provided by
  "Qt5PrintSupport", but CMake did not find one.

  Could not find a package configuration file provided by "Qt5PrintSupport"
  with any of the following names:

    Qt5PrintSupportConfig.cmake
    qt5printsupport-config.cmake

  Add the installation prefix of "Qt5PrintSupport" to CMAKE_PREFIX_PATH or
  set "Qt5PrintSupport_DIR" to a directory containing one of the above files.
  If "Qt5PrintSupport" provides a separate development package or SDK, be
  sure it has been installed.


-- MAN page will be installed is not packed.
-- MAN_PAGE_COMPRESSOR flag not set. Available values: gzip, bzip2, lzma
-- Will be installed not compressed MAN pages
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
LIBVNCCLIENT_LIBRARIES
    linked by target "aqemu" in directory /home/kot/aqemu

-- Configuring incomplete, errors occurred!
See also "/home/kot/aqemu/CMakeFiles/CMakeOutput.log".

Чего оно хочет?

KOT040188 ★★ ()
Ответ на: комментарий от bormant

У меня на Liveslak с Плазмой всё-таки собралось и запустилось.

Algierd ()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.