Article 548Y0 [SOLVED] Source compiling help

[SOLVED] Source compiling help

by
ddenial
from LinuxQuestions.org on (#548Y0)
Hello All

I am compiling qBittorrent in CentOS 8 from source. I want to compile binaries to /usr/local/bin and libraries to /usr/local/lib64 folder.

Compiling qBittorrent has 2 parts. 1) compile libtorrent-rasterbar and then 2) compile qBittorrent.

I successfully compiled part 1.
Code:$ wget https://github.com/arvidn/libtorrent/releases/download/libtorrent_1_2_7/libtorrent-rasterbar-1.2.7.tar.gz

$ tar xvf libtorrent-rasterbar-1.2.7.tar.gz

$ cd libtorrent-rasterbar-1.2.7/

$ ./configure --prefix=/usr/local --libdir=/usr/local/lib64 --disable-debug --enable-encryption CXXFLAGS="-std=c++14"

$ make -j4

$ sudo make install

# ls -lh /usr/local/lib64/
-rw-r--r--. 1 root root 19M Jun 3 20:38 libtorrent-rasterbar.a
-rwxr-xr-x. 1 root root 1.1K Jun 3 20:38 libtorrent-rasterbar.la
lrwxrwxrwx. 1 root root 30 Jun 3 20:38 libtorrent-rasterbar.so -> libtorrent-rasterbar.so.10.0.0
lrwxrwxrwx. 1 root root 30 Jun 3 20:38 libtorrent-rasterbar.so.10 -> libtorrent-rasterbar.so.10.0.0
-rwxr-xr-x. 1 root root 4.5M Jun 3 20:38 libtorrent-rasterbar.so.10.0.0
drwxr-xr-x. 2 root root 37 Jun 3 20:38 pkgconfigBut while compiling part 2 - qBittorrent, I'm getting error 'libtorrent-rasterbar' not found.
Code:$ wget https://github.com/qbittorrent/qBittorrent/archive/release-4.2.5.tar.gz

$ tar xvf qBittorrent-release-4.2.5.tar.gz

$ cd qBittorrent-release-4.2.5

$ ./configure --prefix=/usr/local --libdir=/usr/local/lib64 --disable-debug CXXFLAGS="-std=c++14"
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for a sed that does not truncate output... /usr/bin/sed
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports the include directive... yes (GNU style)
checking whether make supports nested variables... yes
checking dependency style of gcc... none
checking dependency style of g++... none
checking whether OS is FreeBSD... no
checking whether OS is macOS... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.23... yes
checking whether to enable the Debug build... no
checking whether to enable the stacktrace feature... yes
checking whether to enable the GUI... yes
checking whether to install the systemd service file... no
checking whether to enable the WebUI... yes
checking for Qt5 qmake >= 5.9.0... /usr/lib64/qt5/bin/qmake
checking for Qt5Svg... yes
checking whether QtDBus should be enabled... yes
checking for Qt5DBus >= 5.9.0... found
checking for boostlib >= 1.40 (104000)... yes
configure: Boost CXXFLAGS: "-I/usr/include"
configure: Boost LDFLAGS: "-L/usr/lib64"
checking whether the Boost::System library is available... yes
checking for exit in -lboost_system... yes
configure: Boost.System LIB: "-lboost_system"
checking for libtorrent... no
configure: error: Package requirements (libtorrent-rasterbar >= 1.1.10) were not met:

Package 'libtorrent-rasterbar', required by 'virtual:world', not found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables libtorrent_CFLAGS
and libtorrent_LIBS to avoid the need to call pkg-config.

See the pkg-config man page for more details.I believe I have to mention libtorrent-rasterbar's custom path while compiling.

How do I specify libtorrent-rasterbar's custom path in ./configure ... command?

Thankslatest?d=yIl2AUoC8zA latest?i=nCIqpL5JSRc:xKGV1ixx608:F7zBnMy latest?i=nCIqpL5JSRc:xKGV1ixx608:V_sGLiP latest?d=qj6IDK7rITs latest?i=nCIqpL5JSRc:xKGV1ixx608:gIN9vFwnCIqpL5JSRc
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments