Games compilation howto on the Pinebook-pro (Manjaro Linux and Debian native)
#48
Having trouble compiling DevilutionX on Manjaro.

Code:
[branon@pbp bin]$ cmake ..
CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
 Could NOT find sodium (missing: sodium_LIBRARY_RELEASE
 sodium_LIBRARY_DEBUG) (found version "1.0.18")
Call Stack (most recent call first):
 /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
 CMake/Findsodium.cmake:224 (find_package_handle_standard_args)
 CMakeLists.txt:117 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/branon/git/devilutionX/bin/CMakeFiles/CMakeOutput.log".
See also "/home/branon/git/devilutionX/bin/CMakeFiles/CMakeError.log".

libsodium is installled:

Code:
[branon@pbp bin]$ pacman -Ss libsodium
community/libsodium 1.0.18-1 [installed]
   P(ortable|ackageable) NaCl-based crypto library

Edit: I haave discovered that AUR packages for devilutionX exist, and have attempted to use them. They do not appear to be binary packages, and they attempt to compile from source before failing with the same error.

Code:
[branon@pbp ~]$ yay -Sy devilutionx
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
:: There are 3 providers available for devilutionx:
:: Repository AUR
    1) devilutionx 2) devilutionx-git 3) devilutionx-multilib-git

Enter a number (default=1):
:: Checking for conflicts...
:: Checking for inner conflicts...
[Repo: 4]  mpg123-1.25.13-1  opusfile-0.11-1  sdl2_mixer-2.0.4-3  sdl2_ttf-2.0.15-1
[Aur: 1]  devilutionx-1.0.0-1

:: Downloaded PKGBUILD (1/1): devilutionx
  1 devilutionx                              (Build Files Exist)
==> Diffs to show?
==> [N]one [A]ll [Ab]ort [I]nstalled [No]tInstalled or (1 2 3, 1-3, ^4)
==>
:: Parsing SRCINFO (1/1): devilutionx

==> The following packages are not compatible with your architecture:  devilutionx
==> Try to build them anyway? [Y/n] y
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
resolving dependencies...
looking for conflicting packages...

Package (4)         New Version  Net Change  Download Size

extra/mpg123        1.25.13-1      0.72 MiB       0.25 MiB
community/opusfile  0.11-1         0.24 MiB       0.06 MiB
extra/sdl2_mixer    2.0.4-3        0.20 MiB       0.06 MiB
extra/sdl2_ttf      2.0.15-1       0.08 MiB       0.02 MiB

Total Download Size:   0.38 MiB
Total Installed Size:  1.24 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
mpg123-1.25.13-1-aarch64                                                              254.3 KiB   687 KiB/s 00:00 [####################################################################] 100%
sdl2_mixer-2.0.4-3-aarch64                                                             62.9 KiB  6.14 MiB/s 00:00 [####################################################################] 100%
sdl2_ttf-2.0.15-1-aarch64                                                              17.5 KiB  0.00   B/s 00:00 [####################################################################] 100%
opusfile-0.11-1-aarch64                                                                58.7 KiB  5.74 MiB/s 00:00 [####################################################################] 100%
(4/4) checking keys in keyring                                                                                     [####################################################################] 100%
(4/4) checking package integrity                                                                                   [####################################################################] 100%
(4/4) loading package files                                                                                        [####################################################################] 100%
(4/4) checking for file conflicts                                                                                  [####################################################################] 100%
(4/4) checking available disk space                                                                                [####################################################################] 100%
:: Processing package changes...
(1/4) installing mpg123                                                                                            [####################################################################] 100%
Optional dependencies for mpg123
    sdl: for sdl audio support
    jack: for jack audio support [installed]
    libpulse: for pulse audio support [installed]
(2/4) installing opusfile                                                                                          [####################################################################] 100%
(3/4) installing sdl2_mixer                                                                                        [####################################################################] 100%
Optional dependencies for sdl2_mixer
    fluidsynth: MIDI software synth, replaces built-in timidity
(4/4) installing sdl2_ttf                                                                                          [####################################################################] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
==> Making package: devilutionx 1.0.0-1 (Sat 25 Jan 2020 06:40:13 PM EST)
==> Retrieving sources...
  -> Downloading 1.0.0.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   130    0   130    0     0    582      0 --:--:-- --:--:-- --:--:--   582
100 1756k    0 1756k    0     0  1037k      0 --:--:--  0:00:01 --:--:-- 1508k
  -> Found devilutionx.png
==> Validating source files with md5sums...
    1.0.0.tar.gz ... Passed
    devilutionx.png ... Passed
sdl2_mixer not satisfied, flushing install queue
==> Making package: devilutionx 1.0.0-1 (Sat 25 Jan 2020 06:40:21 PM EST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found 1.0.0.tar.gz
  -> Found devilutionx.png
==> Validating source files with md5sums...
    1.0.0.tar.gz ... Passed
    devilutionx.png ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting 1.0.0.tar.gz with bsdtar
==> Starting prepare()...
fatal: No names found, cannot describe anything.
CMake Warning at CMakeLists.txt:28 (project):
  VERSION keyword not followed by a value or was followed by a value that
  expanded to nothing.


-- The C compiler identification is GNU 9.2.0
-- The CXX compiler identification is GNU 9.2.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Found Threads: TRUE  
CMake Error at /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message):
  Could NOT find sodium (missing: sodium_LIBRARY_RELEASE
  sodium_LIBRARY_DEBUG) (found version "1.0.18")
Call Stack (most recent call first):
  /usr/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:393 (_FPHSA_FAILURE_MESSAGE)
  CMake/Findsodium.cmake:224 (find_package_handle_standard_args)
  CMakeLists.txt:117 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/branon/.cache/yay/devilutionx/src/devilutionX-1.0.0/build/CMakeFiles/CMakeOutput.log".
See also "/home/branon/.cache/yay/devilutionx/src/devilutionX-1.0.0/build/CMakeFiles/CMakeError.log".
==> ERROR: A failure occurred in prepare().
    Aborting...
Error making: devilutionx

There is also a multilib version but that complains about unresolvable dependencies

Code:
[branon@pbp ~]$ yay -Sy devilutionx-git
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
:: There are 2 providers available for lib32-gcc-libs:
:: Repository AUR
    1) lib32-gcc-libs-git 2) lib32-gcc-libs-gitb

Enter a number (default=1):
==> Error: Could not find all required packages:
    lib32-glibc>=2.20 (Wanted by: devilutionx-git -> lib32-gcc-libs-git)
    lib32-sdl2_mixer (Wanted by: devilutionx-git)
    lib32-sdl2_ttf (Wanted by: devilutionx-git)
    lib32-libsodium (Wanted by: devilutionx-git)
  Reply


Messages In This Thread
RE: Games compilation howto on the Pinebook-pro (Manjaro Linux and Debian native) - by branon - 01-25-2020, 03:19 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question Pinebook pro dead / keyboard issue? / Troubleshooting Mengalef 2 363 12-05-2024, 04:16 PM
Last Post: tllim
  Testing Some More Games on the Pinebook Pro! ImmyChan 5 3,943 09-24-2024, 01:43 AM
Last Post: pigkang
  Converting the Pinebook Pro into a CrowView Note like device 8jef 0 349 08-18-2024, 05:42 PM
Last Post: 8jef
  Pinebook Pro Initial Impressions kunger 443 685,174 04-16-2024, 07:29 PM
Last Post: KC9UDX
  looking to buy one pinebook pro (mainland China) duanduan 3 3,280 03-21-2024, 07:44 PM
Last Post: wangyukunshan
  Cellular module for Pinebook Pro Lotech 1 1,049 03-05-2024, 05:40 AM
Last Post: KC9UDX
  Screen on pinebook stays black but can ssh into machine tuxxpine 0 754 02-23-2024, 04:22 PM
Last Post: tuxxpine
  Sale my ANSI PineBook Pro cuthbertdavies 0 740 02-14-2024, 09:12 PM
Last Post: cuthbertdavies
  Compiling with -j6 on the Pinebook Pro (Overheat) KC9UDX 0 666 02-14-2024, 09:01 AM
Last Post: KC9UDX
  Manjaro versions bad and good gilwood 0 726 02-12-2024, 05:03 PM
Last Post: gilwood

Forum Jump:


Users browsing this thread: 40 Guest(s)