Skip to content

Instantly share code, notes, and snippets.

@gliech
Last active April 26, 2020 14:08
Show Gist options
  • Save gliech/cbd729f96354f7d198a5da27dc999b7d to your computer and use it in GitHub Desktop.
Save gliech/cbd729f96354f7d198a5da27dc999b7d to your computer and use it in GitHub Desktop.
How to compile Seamly2D on Fedora 31
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "jackrayner/fedora-31-workstation"
config.vm.provision "shell", inline: <<-EOF
#!/usr/bin/env bash
dnf --assumeyes --errorlevel=0 --nogpgcheck upgrade
dnf --assumeyes --errorlevel=0 --nogpgcheck groupinstall "C Development Tools and Libraries"
dnf --assumeyes --errorlevel=0 --nogpgcheck install git qt5-qtbase-devel qt5-qtxmlpatterns-devel qt5-linguist qt5-qtsvg-devel
git clone https://github.com/FashionFreedom/Seamly2D.git
sed -i -e 's/6/9/g' Seamly2D/Seamly2D.pro
cd Seamly2D
qmake-qt5 PREFIX=/usr/local PREFIX_LIB=/usr/lib/i386-linux-gnu Seamly2D.pro -r CONFIG+=noDebugSymbols CONFIG+=no_ccache
make
make install
EOF
config.vm.synced_folder ".", "/vagrant", disabled: true
config.vm.provider "virtualbox" do |vb|
vb.gui = true
vb.cpus = "2"
vb.memory = "4096"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment