User avatar
Justin
Development Team
Posts: 3613
Joined: Mon Jul 28, 2014 10:42 am
Location: Adelaide, Australia
Contact: Website Google+ Twitter

Re: YAML files review

Sat Mar 12, 2016 12:11 am

Kodi we already have a package.yml for, but we need a few extra deps to go in before it can be built.
https://git.solus-project.com/packages/ ... ackage.yml

As for the python-3.5 pkgconfig, sometimes packages don't detect them correctly, which is odd.

solus_noob
Posts: 22
Joined: Mon Mar 07, 2016 6:59 pm

Re: YAML files review

Sat Mar 12, 2016 12:10 pm

Hi and thanks for your help !

I try to package clementine and v4l2ucp, both use qt4 and cmake and I get the same error:

clementine:

Code: Select all

CMake Error at /usr/share/cmake-3.2/Modules/FindPackageHandleStandardArgs.cmake:138 (message):
  Could NOT find Qt4 (missing: QT_RCC_EXECUTABLE) (found suitable version
  "4.8.7", minimum required is "4.5.0")
Call Stack (most recent call first):
  /usr/share/cmake-3.2/Modules/FindPackageHandleStandardArgs.cmake:374 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.2/Modules/FindQt4.cmake:1333 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:27 (find_package)
v4l2ucp:

Code: Select all

CMake Error at /usr/share/cmake-3.2/Modules/FindPackageHandleStandardArgs.cmake:138 (message):
  Could NOT find Qt4 (missing: QT_RCC_EXECUTABLE) (found version "4.8.7")
Call Stack (most recent call first):
  /usr/share/cmake-3.2/Modules/FindPackageHandleStandardArgs.cmake:374 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.2/Modules/FindQt4.cmake:1333 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:7 (find_package)
files :

Code: Select all

name       : v4l2ucp
version    : 2.0.2
release    : 1
homepage   : https://sourceforge.net/projects/v4l2ucp/
source     :
    - https://sourceforge.net/projects/v4l2ucp/files/latest/download : e525add8788fa9ce613705a2a88947d4d1ef1c2bde8aa9f3e8ef19207271c1be
license    : GPL-2.0
summary    : A universal control panel for Video for Linux Two (V4L2) devices.
description: |
    A universal control panel for Video for Linux Two (V4L2) devices.
builddeps  :
    - qt4-devel
setup      : |
    %cmake
build      : |
    %make
install    : |
    %make_install

Code: Select all

name       : clementine
version    : 1.2.3
release    : 1
homepage   : https://www.clementine-player.org
source     :
    - https://github.com/clementine-player/Clementine/archive/1.2.3.tar.gz : 7df5650445a005c09f5f0e1a1b0d077037c37ecbe4ee77baf9d45f121308a1bf
license    : GPL-3.0
summary    : Clementine is a modern music player and library organizer
description: |
    Clementine is a multiplatform music player. It is inspired by Amarok 1.4, focusing on a fast and easy-to-use interface for searching and playing your music.
builddeps  :
    - qt4-devel
setup      : |
    %cmake
build      : |
    %make
install    : |
    %make_install
Have you any idea what's wrong here ?

User avatar
Justin
Development Team
Posts: 3613
Joined: Mon Jul 28, 2014 10:42 am
Location: Adelaide, Australia
Contact: Website Google+ Twitter

Re: YAML files review

Sat Mar 12, 2016 10:31 pm

QT4/5 is a fun case as they have conflicting binaries. So QT's are named moc-qt4 for instance.

To fix this in your setup section where it's checking for the files, see example here where the QT4 files have been symlinked to their original names https://git.solus-project.com/packages/ ... ackage.yml

solus_noob
Posts: 22
Joined: Mon Mar 07, 2016 6:59 pm

Re: YAML files review

Sun Mar 13, 2016 10:30 am

Thx for your help :D

So I continued today and clementine need QT webkit "pkgconfig(QtWebKit)" and it's not in repos. And v4l2ucp give me error in the code at compile time. Here are my new files:

Code: Select all

name       : clementine
version    : 1.2.3
release    : 1
homepage   : https://www.clementine-player.org
source     :
    - https://github.com/clementine-player/Clementine/archive/1.2.3.tar.gz : 7df5650445a005c09f5f0e1a1b0d077037c37ecbe4ee77baf9d45f121308a1bf
license    : GPL-3.0
summary    : Clementine is a modern music player and library organizer
description: |
    Clementine is a multiplatform music player. It is inspired by Amarok 1.4, focusing on a fast and easy-to-use interface for searching and playing your music.
builddeps  :
    - pkgconfig(QtOpenGL)
    - pkgconfig(QtWebKit) 
setup      : |
    ln -s /usr/bin/lrelease-qt4 /usr/bin/lrelease
    ln -s /usr/bin/moc-qt4 /usr/bin/moc
    ln -s /usr/bin/qmake-qt4 /usr/bin/qmake
    ln -s /usr/bin/rcc-qt4 /usr/bin/rcc
    ln -s /usr/bin/uic-qt4 /usr/bin/uic
    %cmake
build      : |
    %make
install    : |
    %make_install

Code: Select all

name       : v4l2ucp
version    : 2.0.2
release    : 1
homepage   : https://sourceforge.net/projects/v4l2ucp/
source     :
    - https://sourceforge.net/projects/v4l2ucp/files/latest/download : e525add8788fa9ce613705a2a88947d4d1ef1c2bde8aa9f3e8ef19207271c1be
license    : GPL-2.0
summary    : A universal control panel for Video for Linux Two (V4L2) devices.
description: |
    A universal control panel for Video for Linux Two (V4L2) devices.
builddeps  :
    - pkgconfig(QtGui)
    - pkgconfig(libv4l1)
    - pkgconfig(libv4l2rds)
setup      : |
    ln -s /usr/bin/lrelease-qt4 /usr/bin/lrelease
    ln -s /usr/bin/moc-qt4 /usr/bin/moc
    ln -s /usr/bin/qmake-qt4 /usr/bin/qmake
    ln -s /usr/bin/rcc-qt4 /usr/bin/rcc
    ln -s /usr/bin/uic-qt4 /usr/bin/uic
    %cmake
build      : |
    ln -s /usr/include/libv4l1-videodev.h /usr/include/linux/videodev.h
    %make
install    : |
    %make_install
Here is the v4l2ucp error log:

Code: Select all

[ 35%] Building C object src/CMakeFiles/v4l2ctrl.dir/v4l2ctrl.c.o
[ 42%] Generating ui_previewSettings.h
Scanning dependencies of target v4l2ucp
/var/ypkg-root/build/v4l2ucp/v4l2ucp-2.0.2/src/v4l2ctrl.c: In function ‘do_save’:
/var/ypkg-root/build/v4l2ucp/v4l2ucp-2.0.2/src/v4l2ctrl.c:49:27: error: storage size of ‘ctrl’ isn’t known
     struct v4l2_queryctrl ctrl;
                           ^
/var/ypkg-root/build/v4l2ucp/v4l2ucp-2.0.2/src/v4l2ctrl.c:50:25: error: storage size of ‘c’ isn’t known
     struct v4l2_control c;
                         ^
/var/ypkg-root/build/v4l2ucp/v4l2ucp-2.0.2/src/v4l2ctrl.c:75:15: error: ‘V4L2_CID_BASE’ undeclared (first use in this function)
         for(i=V4L2_CID_BASE; i<V4L2_CID_LASTP1; i++) {
               ^
/var/ypkg-root/build/v4l2ucp/v4l2ucp-2.0.2/src/v4l2ctrl.c:75:15: note: each undeclared identifier is reported only once for each function it appears in
/var/ypkg-root/build/v4l2ucp/v4l2ucp-2.0.2/src/v4l2ctrl.c:75:32: error: ‘V4L2_CID_LASTP1’ undeclared (first use in this function)
         for(i=V4L2_CID_BASE; i<V4L2_CID_LASTP1; i++) {
                                ^
/var/ypkg-root/build/v4l2ucp/v4l2ucp-2.0.2/src/v4l2ctrl.c:77:31: error: ‘VIDIOC_QUERYCTRL’ undeclared (first use in this function)
             if(v4l2_ioctl(fd, VIDIOC_QUERYCTRL, &ctrl) == 0) {
                               ^
/var/ypkg-root/build/v4l2ucp/v4l2ucp-2.0.2/src/v4l2ctrl.c:78:33: error: ‘V4L2_CTRL_FLAG_DISABLED’ undeclared (first use in this function)
                 if(ctrl.flags & V4L2_CTRL_FLAG_DISABLED) {
                                 ^
/var/ypkg-root/build/v4l2ucp/v4l2ucp-2.0.2/src/v4l2ctrl.c:81:33: error: ‘V4L2_CTRL_TYPE_INTEGER’ undeclared (first use in this function)
                 if(ctrl.type != V4L2_CTRL_TYPE_INTEGER &&
                                 ^
/var/ypkg-root/build/v4l2ucp/v4l2ucp-2.0.2/src/v4l2ctrl.c:82:33: error: ‘V4L2_CTRL_TYPE_BOOLEAN’ undeclared (first use in this function)
                    ctrl.type != V4L2_CTRL_TYPE_BOOLEAN &&
                                 ^
/var/ypkg-root/build/v4l2ucp/v4l2ucp-2.0.2/src/v4l2ctrl.c:83:33: error: ‘V4L2_CTRL_TYPE_MENU’ undeclared (first use in this function)
                    ctrl.type != V4L2_CTRL_TYPE_MENU) {
                                 ^
/var/ypkg-root/build/v4l2ucp/v4l2ucp-2.0.2/src/v4l2ctrl.c:87:35: error: ‘VIDIOC_G_CTRL’ undeclared (first use in this function)
                 if(v4l2_ioctl(fd, VIDIOC_G_CTRL, &c) == 0) {
                                   ^
/var/ypkg-root/build/v4l2ucp/v4l2ucp-2.0.2/src/v4l2ctrl.c:94:15: error: ‘V4L2_CID_PRIVATE_BASE’ undeclared (first use in this function)
         for(i=V4L2_CID_PRIVATE_BASE; ; i++) {
               ^
/var/ypkg-root/build/v4l2ucp/v4l2ucp-2.0.2/src/v4l2ctrl.c:50:25: warning: unused variable ‘c’ [-Wunused-variable]
     struct v4l2_control c;
                         ^
/var/ypkg-root/build/v4l2ucp/v4l2ucp-2.0.2/src/v4l2ctrl.c:49:27: warning: unused variable ‘ctrl’ [-Wunused-variable]
     struct v4l2_queryctrl ctrl;
                           ^
/var/ypkg-root/build/v4l2ucp/v4l2ucp-2.0.2/src/v4l2ctrl.c: In function ‘do_load’:
/var/ypkg-root/build/v4l2ucp/v4l2ucp-2.0.2/src/v4l2ctrl.c:122:27: error: storage size of ‘ctrl’ isn’t known
     struct v4l2_queryctrl ctrl;
                           ^
/var/ypkg-root/build/v4l2ucp/v4l2ucp-2.0.2/src/v4l2ctrl.c:123:25: error: storage size of ‘c’ isn’t known
     struct v4l2_control c;
                         ^
/var/ypkg-root/build/v4l2ucp/v4l2ucp-2.0.2/src/v4l2ctrl.c:133:27: error: ‘VIDIOC_QUERYCTRL’ undeclared (first use in this function)
         if(v4l2_ioctl(fd, VIDIOC_QUERYCTRL, &ctrl) == 0) {
                           ^
/var/ypkg-root/build/v4l2ucp/v4l2ucp-2.0.2/src/v4l2ctrl.c:139:30: error: ‘V4L2_CTRL_FLAG_READ_ONLY’ undeclared (first use in this function)
             if(ctrl.flags & (V4L2_CTRL_FLAG_READ_ONLY |
                              ^
/var/ypkg-root/build/v4l2ucp/v4l2ucp-2.0.2/src/v4l2ctrl.c:140:30: error: ‘V4L2_CTRL_FLAG_DISABLED’ undeclared (first use in this function)
                              V4L2_CTRL_FLAG_DISABLED |
                              ^
/var/ypkg-root/build/v4l2ucp/v4l2ucp-2.0.2/src/v4l2ctrl.c:141:30: error: ‘V4L2_CTRL_FLAG_GRABBED’ undeclared (first use in this function)
                              V4L2_CTRL_FLAG_GRABBED)) {
                              ^
/var/ypkg-root/build/v4l2ucp/v4l2ucp-2.0.2/src/v4l2ctrl.c:144:29: error: ‘V4L2_CTRL_TYPE_INTEGER’ undeclared (first use in this function)
             if(ctrl.type != V4L2_CTRL_TYPE_INTEGER &&
                             ^
/var/ypkg-root/build/v4l2ucp/v4l2ucp-2.0.2/src/v4l2ctrl.c:145:29: error: ‘V4L2_CTRL_TYPE_BOOLEAN’ undeclared (first use in this function)
                ctrl.type != V4L2_CTRL_TYPE_BOOLEAN &&
                             ^
/var/ypkg-root/build/v4l2ucp/v4l2ucp-2.0.2/src/v4l2ctrl.c:146:29: error: ‘V4L2_CTRL_TYPE_MENU’ undeclared (first use in this function)
                ctrl.type != V4L2_CTRL_TYPE_MENU) {
                             ^
/var/ypkg-root/build/v4l2ucp/v4l2ucp-2.0.2/src/v4l2ctrl.c:152:31: error: ‘VIDIOC_S_CTRL’ undeclared (first use in this function)
             if(v4l2_ioctl(fd, VIDIOC_S_CTRL, &c) != 0) {
                               ^
/var/ypkg-root/build/v4l2ucp/v4l2ucp-2.0.2/src/v4l2ctrl.c:124:10: warning: unused variable ‘name’ [-Wunused-variable]
     char name[sizeof(ctrl.name)], *n;
          ^
/var/ypkg-root/build/v4l2ucp/v4l2ucp-2.0.2/src/v4l2ctrl.c:123:25: warning: unused variable ‘c’ [-Wunused-variable]
     struct v4l2_control c;
                         ^
/var/ypkg-root/build/v4l2ucp/v4l2ucp-2.0.2/src/v4l2ctrl.c:122:27: warning: unused variable ‘ctrl’ [-Wunused-variable]
     struct v4l2_queryctrl ctrl;
                           ^
src/CMakeFiles/v4l2ctrl.dir/build.make:54: recipe for target 'src/CMakeFiles/v4l2ctrl.dir/v4l2ctrl.c.o' failed
make[2]: *** [src/CMakeFiles/v4l2ctrl.dir/v4l2ctrl.c.o] Error 1
CMakeFiles/Makefile2:77: recipe for target 'src/CMakeFiles/v4l2ctrl.dir/all' failed
make[1]: *** [src/CMakeFiles/v4l2ctrl.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 50%] [ 57%] [ 64%] [ 71%] [ 78%] Building CXX object src/CMakeFiles/v4l2ucp.dir/v4l2controls.cpp.o
Building CXX object src/CMakeFiles/v4l2ucp.dir/previewSettings.cpp.o
Building CXX object src/CMakeFiles/v4l2ucp.dir/mainWindow.cpp.o
Building CXX object src/CMakeFiles/v4l2ucp.dir/v4l2ucp.cpp.o
Building CXX object src/CMakeFiles/v4l2ucp.dir/moc_mainWindow.cxx.o
[ 85%] Building CXX object src/CMakeFiles/v4l2ucp.dir/moc_previewSettings.cxx.o
/var/ypkg-root/build/v4l2ucp/v4l2ucp-2.0.2/src/previewSettings.cpp: In member function ‘void PreviewSettingsDialog::loadSettings()’:
/var/ypkg-root/build/v4l2ucp/v4l2ucp-2.0.2/src/previewSettings.cpp:76:30: warning: variable ‘item’ set but not used [-Wunused-but-set-variable]
             QListWidgetItem *item;
                              ^
/var/ypkg-root/build/v4l2ucp/v4l2ucp-2.0.2/src/previewSettings.cpp:82:26: warning: variable ‘item’ set but not used [-Wunused-but-set-variable]
         QListWidgetItem *item;
                          ^
/var/ypkg-root/build/v4l2ucp/v4l2ucp-2.0.2/src/previewSettings.cpp:93:30: warning: variable ‘item’ set but not used [-Wunused-but-set-variable]
             QListWidgetItem *item;
                              ^
/var/ypkg-root/build/v4l2ucp/v4l2ucp-2.0.2/src/previewSettings.cpp:99:26: warning: variable ‘item’ set but not used [-Wunused-but-set-variable]
         QListWidgetItem *item;
                          ^
/var/ypkg-root/build/v4l2ucp/v4l2ucp-2.0.2/src/previewSettings.cpp: In member function ‘void PreviewSettingsDialog::addEnvItemClicked()’:
/var/ypkg-root/build/v4l2ucp/v4l2ucp-2.0.2/src/previewSettings.cpp:153:26: warning: variable ‘item’ set but not used [-Wunused-but-set-variable]
         QListWidgetItem *item = NULL;
                          ^
/var/ypkg-root/build/v4l2ucp/v4l2ucp-2.0.2/src/previewSettings.cpp: In member function ‘void PreviewSettingsDialog::addArgItemClicked()’:
/var/ypkg-root/build/v4l2ucp/v4l2ucp-2.0.2/src/previewSettings.cpp:167:26: warning: variable ‘item’ set but not used [-Wunused-but-set-variable]
         QListWidgetItem *item = NULL;
                          ^
/var/ypkg-root/build/v4l2ucp/v4l2ucp-2.0.2/src/previewSettings.cpp: In member function ‘void PreviewSettingsDialog::defaultsClicked()’:
/var/ypkg-root/build/v4l2ucp/v4l2ucp-2.0.2/src/previewSettings.cpp:210:22: warning: variable ‘item’ set but not used [-Wunused-but-set-variable]
     QListWidgetItem *item;
                      ^
[ 92%] Building CXX object src/CMakeFiles/v4l2ucp.dir/moc_v4l2controls.cxx.o
[100%] Building CXX object src/CMakeFiles/v4l2ucp.dir/qrc_v4l2ucp.cxx.o
Linking CXX executable v4l2ucp
[100%] Built target v4l2ucp
Makefile:116: recipe for target 'all' failed
make: *** [all] Error 2
Build failure: Command '['/bin/sh', '/tmp/eopkg-buildLArE12']' returned non-zero exit status 2
Return code was 256
Build failed

User avatar
Justin
Development Team
Posts: 3613
Joined: Mon Jul 28, 2014 10:42 am
Location: Adelaide, Australia
Contact: Website Google+ Twitter

Re: YAML files review

Mon Mar 14, 2016 1:03 am

Yeah QT4 webkit isn't in the repos yet, only QT5, it's on our to do list.

romi1
Posts: 1
Joined: Thu Jun 23, 2016 8:28 am
Location: belgium

Re: YAML files review

Fri Jun 24, 2016 11:01 pm

Hello,
I am quite new to linux and I thought it was my mistake I didn't succeed in installing clementine. In the mean time i found a good alternative that I was able to install from source, " sayonara player " and I start to like it, waiting for clementine.

regards

xteven
Posts: 7
Joined: Fri Dec 29, 2017 12:58 am

Re: YAML files review

Sun Dec 31, 2017 8:14 pm

How does "make" run? I have quite a few commands in the "setup" section of my YAML file but it seems to try to run the "build" section (make) before it runs the code in "setup".

Return to “Engagement”