dchapyshev / aspia

Remote desktop and file transfer tool.
https://aspia.org
GNU General Public License v3.0
1.6k stars 345 forks source link

Can't complie on Linux (Fedora/RedOS, can't detect asio) #220

Open DragonZX opened 1 year ago

DragonZX commented 1 year ago
[root@localhost aspia-2.5.2]# cmake ./
-- The C compiler identification is GNU 8.3.1
-- The CXX compiler identification is GNU 8.3.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Linux detected
-- System processor: x86_64
-- Host system processor: x86_64
CMake Error at CMakeLists.txt:52 (find_package):
  Could not find a package configuration file provided by "asio" with any of
  the following names:

    asioConfig.cmake
    asio-config.cmake

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

-- Configuring incomplete, errors occurred!

asio-devel is installed I found sone similar topics from other projects, trying to solve that.

DragonZX commented 1 year ago

List of packages ATM dnf install qtcreator cmake gсс gcc-c++ qt5-devel qt5-qtbase qt5-linguist xorg-x11-xkb-utils-devel xorg-x11-server-devel sqlite-devel asio-devel zstd

DragonZX commented 1 year ago

At the moment I installed clean Fedora. Step-by-step is:

  1. Download latest build, I've created /sources dir for all tests. mkdir /sources cd /sources wget https://github.com/dchapyshev/aspia/archive/refs/tags/v2.5.2.tar.gz tar xvfz v2.5.2.tar.gz Install some dev from dnf dnf install qtcreator cmake gcc-c++ qt5-qtbase qt5-linguist xorg-x11-server-devel sqlite-devel asio-devel zstd git dnf install perl perl-IPC-Cmd bison bison-devel autovonf-archive nasm libXdamage libXdamage-devel libXtst libXtst-devel Install vcpkg like described here ./vcpkg/vcpkg install asio curl gtest icu libvpx libyuv mimalloc openssl opus protobuf qt5-base qt5-translations rapidjson sqlite3 zstd (qt5-base qt5-translations can't be compiled, I got mad and did **dnf install qt5-qt***)

Build cmake from the root dir!, aspia folder as pwd will cause the initial error cmake -B /sources/aspia -S ./aspia-2.5.2 -DCMAKE_TOOLCHAIN_FILE=/sources/vcpkg/scripts/buildsystems/vcpkg.cmake

ATM it's not linking

[ 81%] Building CXX object source/client/CMakeFiles/aspia_client.dir/client_entry_point.cc.o
[ 81%] Linking CXX executable ../../aspia_client
/usr/bin/ld: /tmp/ccuDdKK7.ltrans8.ltrans.o: undefined reference to symbol 'XConvertSelection'
/usr/bin/ld: /usr/lib64/libX11.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [source/client/CMakeFiles/aspia_client.dir/build.make:134: aspia_client] Error 1
make[1]: *** [CMakeFiles/Makefile2:488: source/client/CMakeFiles/aspia_client.dir/all] Error 2
make: *** [Makefile:166: all] Error 2