openspades icon indicating copy to clipboard operation
openspades copied to clipboard

Real Snapcraft support

Open yvt opened this issue 7 years ago • 7 comments

  • [ ] Update the Snapcraft package to the latest version
  • [ ] Disable automatic update checking on certain distribution channels that provide automatic updates by themselves
  • [ ] Automate the deploy process

yvt avatar Jan 02 '18 12:01 yvt

Thanks for this. It is just what I need. Will wait for this before updating.

BarnabyWoodrow avatar Jan 02 '18 14:01 BarnabyWoodrow

I'm now use this script. For easy install latest version:

#!/bin/bash
sudo apt install pkg-config libglew-dev libcurl3-openssl-dev libsdl2-dev libsdl2-image-dev libalut-dev xdg-utils libfreetype6-dev libopus-dev libopusfile-dev cmake
git clone https://github.com/yvt/openspades.git
cd openspades
mkdir openspades.mk
cd openspades.mk
cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo
make
sudo make install
sudo apt autoremove libglew-dev libcurl3-openssl-dev libsdl2-dev libsdl2-image-dev libalut-dev libfreetype6-dev libopus-dev libopusfile-dev
sudo apt install libglew1.13 libcurl3 libsdl2-2.0-0 libsdl2-image-2.0-0 libalut0 libfreetype6 libopus0 libopusfile0

varlesh avatar Jan 06 '18 10:01 varlesh

Note that this script installs the current git development version which might have errors or might not even compile. It is really better to either clone the correct tag like this: git clone --branch v0.1.2 or to fetch the tar.gz of the latest release via wget

NotAFile avatar Jan 06 '18 10:01 NotAFile

I get this error when doing 'make':

/home/barney/openspades/Sources/Core/SettingSet.cpp: In constructor ‘spades::SettingSet::ItemHandle::ItemHandle(spades::SettingSet&, const string&, spades::SettingSet::ItemFlags)’: /home/barney/openspades/Sources/Core/SettingSet.cpp:25:68: error: invalid initialization of non-const reference of type ‘spades::SettingSet&’ from an rvalue of type ‘’ : set{set}, handle{name, nullptr}, flags{flags}, modified{true} { ^ make[2]: *** [Sources/CMakeFiles/OpenSpades.dir/Core/SettingSet.cpp.o] Error 1 make[1]: *** [Sources/CMakeFiles/OpenSpades.dir/all] Error 2 make: *** [all] Error 2

BarnabyWoodrow avatar Jan 06 '18 14:01 BarnabyWoodrow

Is that the development branch? You can get a stable branch with something like git clone --branch v0.1.2 as above.

(Also, you can surround code blocks with three backticks (```) on their own line for better readability.)

/home/barney/openspades/Sources/Core/SettingSet.cpp: In constructor ‘spades::SettingSet::ItemHandle::ItemHandle(spades::SettingSet&, const string&, spades::SettingSet::ItemFlags)’:
/home/barney/openspades/Sources/Core/SettingSet.cpp:25:68: error: invalid initialization of non-const reference of type ‘spades::SettingSet&’ from an rvalue of type ‘’
: set{set}, handle{name, nullptr}, flags{flags}, modified{true} {
^
make[2]: *** [Sources/CMakeFiles/OpenSpades.dir/Core/SettingSet.cpp.o] Error 1
make[1]: *** [Sources/CMakeFiles/OpenSpades.dir/all] Error 2
make: *** [all] Error 2

)

IBPX avatar Jan 06 '18 22:01 IBPX

So does this mean that the snap package will be updated to the latest version? (0.1.5) I can't wait! Thanks yvt!

darkvoilet avatar Apr 10 '22 22:04 darkvoilet

No, this means adding Snapcraft support has been on a wish list for years.

yvt avatar Apr 17 '22 11:04 yvt