Installing endless-sky from source

Post here if you are a new Porteus member and you're looking for some help.
baloontravel
White ninja
White ninja
Posts: 20
Joined: 29 Mar 2023, 16:12
Distribution: Voidlinux, Poerteus

Installing endless-sky from source

Post#1 by baloontravel » 03 May 2023, 14:57

I followed instructions from readme-cmake.md that are simply
1
cmake --preset linux
cmake --build --preset linux-release
2
sudo cmake --install /home/user/Downloads/endless-sky-0.10.0/build/linux/
installs everything to /home/user/Downloads/endless-sky-0.10.0/install/linux/games/

Can I install build from step 1 or 2 to /tmp/endless-sky and create package or I need to start from the begining?


---------

Previous attempts didn't worked because
there is no ./configure
https://www.slackwiki.com/Building_A_Package

User avatar
francois
Contributor
Contributor
Posts: 6435
Joined: 28 Dec 2010, 14:25
Distribution: xfce plank porteus nemesis
Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.

Installing endless-sky from source

Post#2 by francois » 04 May 2023, 11:25

Does your package works now that it is built?
Why don't you just transfer the final result from /home/user/Downloads/endless-sky-0.10.0/install/linux/games/ to /tmp/endless-sky?
Do you want to make a porteus module without installing to to the structure of the system? Working from the without changes option is the way to go.
Prendre son temps, profiter de celui qui passe.

beny
Full of knowledge
Full of knowledge
Posts: 2098
Joined: 02 Jan 2011, 11:33
Location: italy

Installing endless-sky from source

Post#3 by beny » 04 May 2023, 18:17

hi ballontravel for this task you need scons from the slackware 15 /d directory, but with the gcc 11 do not compile the build ,i try with the porteux current if change anything.....

beny
Full of knowledge
Full of knowledge
Posts: 2098
Joined: 02 Jan 2011, 11:33
Location: italy

Installing endless-sky from source

Post#4 by beny » 04 May 2023, 20:34

hi when you have downloaded the source of endless-sky cd into the directory and:after make install but the starter do not work you have to start the bin

Code: Select all

 root@porteux:/home/guest/endless-sky-0.10.0# cmake '/home/guest/endless-sky-0.10.0' 
-- Found Git: /usr/bin/git (found version "2.40.0") 
-- Cloning vcpkg into /home/guest/endless-sky-0.10.0/vcpkg
-- Cloning vcpkg into /home/guest/endless-sky-0.10.0/vcpkg - done
-- Fetching changes from vcpkg upstream
-- Fetching changes from vcpkg upstream - done
-- Switching vcpkg HEAD to 91dd61bd441a68b4017b61011d0350b2e6aeeccf
-- Switching vcpkg HEAD to 91dd61bd441a68b4017b61011d0350b2e6aeeccf - done
-- Bootstrapping vcpkg before install
-- Bootstrapping vcpkg before install - done
-- Running vcpkg install
All requested packages are currently installed.
Restored 0 package(s) from /root/.cache/vcpkg/archives in 3.804 us. Use --debug to see more details.
Total install time: 23.36 us
-- Running vcpkg install - done
-- The CXX compiler identification is GNU 12.2.0
-- 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
-- Found ZLIB: /usr/lib64/libz.so (found version "1.2.13")  
-- Found PNG: /usr/lib64/libpng.so (found version "1.6.39") 
-- Found JPEG: /usr/lib64/libjpeg.so (found version "80") 
-- Found GLEW: /usr/local/include (found version "2.2.0") 
-- Found OpenGL: /usr/lib64/libOpenGL.so   
-- Configuring done (125.8s)
-- Generating done (0.1s)
-- Build files have been written to: /home/guest/endless-sky-0.10.0
root@porteux:/home/guest/endless-sky-0.10.0# make install
[  1%] Building CXX object source/CMakeFiles/EndlessSkyLib.dir/AI.cpp.o
[  1%] Building CXX object source/CMakeFiles/EndlessSkyLib.dir/Account.cpp.o
[  2%] Building CXX object source/CMakeFiles/EndlessSkyLib.dir/AlertLabel.cpp.o
[  2%] Building CXX object source/CMakeFiles/EndlessSkyLib.dir/AmmoDisplay.cpp.o
[  3%] Building CXX object source/CMakeFiles/EndlessSkyLib.dir/Angle.cpp.o
[  3%] Building CXX object source/CMakeFiles/EndlessSkyLib.dir/Armament.cpp.o
[  4%] Building CXX object source/CMakeFiles/EndlessSkyLib.dir/AsteroidField.cpp                                                                                                            
work also in porteus5

baloontravel
White ninja
White ninja
Posts: 20
Joined: 29 Mar 2023, 16:12
Distribution: Voidlinux, Poerteus

Installing endless-sky from source

Post#5 by baloontravel » 10 May 2023, 11:24

francois wrote:
04 May 2023, 11:25
Does your package works now that it is built?
Why don't you just transfer the final result from /home/user/Downloads/endless-sky-0.10.0/install/linux/games/ to /tmp/endless-sky?
Package works.
I can start the program
/endless-sky-0.10.0/build/linux/Release
./endless-sky
But only from source directory with all additional data and etc.
I expected separate directory with only necessary files or installation under /
So I can create package.

-----------------------------------
Same with
make clean
make prefix=/usr/local
make prefix=/usr/local DESTDIR=/opt/endless-sky/ install
Binary file stays in source directory and works only form it. But images and sounds are duplicated to DESTDIR.
------------------------------------
beny wrote:
04 May 2023, 20:34
hi when you have downloaded the source of endless-sky cd into the directory and:after make install but the starter do not work you have to start the bin
This way also created binary that works only from source directory. But how to create instalation to separate directory with only important files?

beny
Full of knowledge
Full of knowledge
Posts: 2098
Joined: 02 Jan 2011, 11:33
Location: italy

Installing endless-sky from source

Post#6 by beny » 10 May 2023, 15:11

hi when i have used the make install DESTDIR=/tmp/build not all the files are installed, the first thing that i have done after the build,try if you can work with the bin in standalone mode.

Post Reply