Author Topic: Compiling on RasPi (OSMC) fails  (Read 536 times)

schniggers

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Compiling on RasPi (OSMC) fails
« on: May 31, 2019, 11:05:21 pm »
Hey,
I m on OSMC, trying to install the latest version of qbittorrent-nix. I ssh into my Pi as it is headless. Following step by step this guide (https://github.com/qbittorrent/qBittorrent/wiki/Compiling-qBittorrent-nox-4.x-on-DietPi-or-Raspbian-(Debian-9.0)-for-ARM-devices), the compilation of qbittorrent always fails.

After i run

Code: [Select]
./configure --disable-gui --enable-systemd --with-boost-libdir=/usr/lib/arm-linux-gnueabihf
everything seems fine.

I then continue to the next step:

Code: [Select]
make -j1
cd src/ && ( test -e Makefile || /usr/lib/arm-linux-gnueabihf/qt5/bin/qmake /home/osmc/qBittorrent-release-4.1.5/src/src.pro QMAKE_LRELEASE= -o Makefile ) && make -f Makefile
make[1]: Verzeichnis „/home/osmc/qBittorrent-release-4.1.5/src“ wird betreten
compiling app/qtsingleapplication/qtsinglecoreapplication.cpp
compiling app/qtsingleapplication/qtlocalpeer.cpp
compiling app/application.cpp
compiling app/cmdoptions.cpp
compiling app/filelogger.cpp
compiling app/main.cpp
compiling base/asyncfilestorage.cpp
compiling base/bittorrent/filepriority.cpp
compiling base/bittorrent/infohash.cpp
base/bittorrent/infohash.cpp: In constructor ‘BitTorrent::InfoHash::InfoHash(const sha1_hash&)’:
base/bittorrent/infohash.cpp:44:43: error: invalid operands of types ‘libtorrent::digest32<160>::difference_type() noexcept {aka int() noexcept}’ and ‘int’ to binary ‘operator*’
     char out[(libtorrent::sha1_hash::size * 2) + 1];
               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
base/bittorrent/infohash.cpp:45:5: error: ‘to_hex’ is not a member of ‘libtorrent’
     libtorrent::to_hex(reinterpret_cast<const char*>(&m_nativeHash[0]), libtorrent::sha1_hash::size, out);
     ^~~~~~~~~~
base/bittorrent/infohash.cpp:45:102: error: ‘out’ was not declared in this scope
 terpret_cast<const char*>(&m_nativeHash[0]), libtorrent::sha1_hash::size, out);
                                                                           ^~~
base/bittorrent/infohash.cpp: In constructor ‘BitTorrent::InfoHash::InfoHash(const QString&)’:
base/bittorrent/infohash.cpp:55:19: error: ‘from_hex’ is not a member of ‘libtorrent’
         m_valid = libtorrent::from_hex(raw.constData(), 40, reinterpret_cast<char*>(&m_nativeHash[0]));
                   ^~~~~~~~~~
Makefile:1695: die Regel für Ziel „infohash.o“ scheiterte
make[1]: *** [infohash.o] Fehler 1
make[1]: Verzeichnis „/home/osmc/qBittorrent-release-4.1.5/src“ wird verlassen
Makefile:42: die Regel für Ziel „sub-src-make_first“ scheiterte
make: *** [sub-src-make_first] Fehler 2

it always fails at this step.
Some things which might be noteworthy:

- Adding the library path seems only to be of temporary nature, whenever i reboot the machine
Code: [Select]
env gives me:
Code: [Select]
osmc@osmc:~/qBittorrent-release-4.1.5$ env
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
SSH_CONNECTION=192.168.1.95 44698 192.168.1.123 22
LANG=de_DE.UTF-8
OLDPWD=/home/osmc
XDG_SESSION_ID=c1
USER=osmc
PWD=/home/osmc/qBittorrent-release-4.1.5
HOME=/home/osmc
SSH_CLIENT=192.168.1.XXX 44698 XXX
SSH_TTY=/dev/pts/0
MAIL=/var/mail/osmc
TERM=xterm-256color
SHELL=/bin/bash
SHLVL=1
LOGNAME=osmc
XDG_RUNTIME_DIR=/run/user/1000
RPI_UPDATE_UNSUPPORTED=1
PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin:/usr/sbin:/usr/osmc/bin:/opt/vc/bin
_=/usr/bin/env

(I added the XXX...)
i then run export LD_LIBRARY_PATH=/usr/local/lib  and then it is there.

i veryfied that libtorrent-rasterbar is the right version by running and it confirms that i have 1.1.1..

Do you have any clues what else i can try or what the problem might be? I m working on this for couple of days now and i kinda realy want to have the newest qBittorrent version!
Thank you in advance!