Fresh builds on CentOS and Fedora

Here is a list of steps for configuring a freshly built CentOS 7, or Fedora 27 machine to build the Seamly2D code. This could be used to update the README.md ?

Fedora 27

Fedora-Workstation-Live-x86_64-27-1.6.iso 
Wait for system to build, [quit], restart

sudo yum groupinstall "C Development Tools and Libraries" 
sudo yum install mesa-libGL-devel  
sudo yum install git-gui
sudo yum install libasan

Get Qt from https://www1.qt.io/download-open-source/

cd Downloads/ 
chmod u+x qt-unified-linux-x64-3.0.2-online.run
./qt-unified-linux-x64-3.0.2-online.run

Choose qt5.9.3 (all of) and qt creator 4.5.0

git clone https://github.com/FashionFreedom/Seamly2D.git

Start qt creator and open the project file, Build and run!

CentOS 7

I had an issue with installing ccache, and, not being an expert, I may not have chosen the best route around this:

CentOS-7-x86_64-DVD-1708.iso 
Install CentOS minimal.  
Software selection: 
GnomeDesktop - no sub options
Standard Security Profile
Wait for system to buid.

usermod -aG wheel <youruser> (so that you can sudo, log out, log in)
sudo yum groupinstall "Development tools"
sudo yum install mesa-libGL-devel  
sudo yum install git-gui
sudo yum install libasan 

Ccache - there may be a better place to get hold of this… Download: http://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/c/ccache-3.3.4-1.el7.x86_64.rpm

sudo rpm --install ccache-3.3.4-1.el7.x86_64.rpm

Get Qt from https://www1.qt.io/download-open-source/

chmod u+x qt-unified-linux-x64-3.0.2-online.run
./qt-unified-linux-x64-3.0.2-online.run

Choose qt5.9.3 (all of) and qt creator 4.5.0

git clone https://github.com/FashionFreedom/Seamly2D.git

Open Qt createor, pick the project file Build and run!

I also had an issue with ccache (on building Ubuntu version).

I solved it by

sudo apt-get install ccache

After that the build worked. I am waiting to hear from @slspencer before I try to load what I have built into the PPA

I had tried:

sudo yum install ccache

But that didn’t work. And apt-get doesn’t work for CentOS. If anyone knows the official way of installing ccache for CentOS then please let me know.

From what I found, I would suggest that the answer to your comment

Ccache - there may be a better place to get hold of this…

I believe that the original source for ccache is the samba site. (if anyone has more accurate info, please speak up)

https://ccache.samba.org

https://ccache.samba.org/manual.html

I am not an expert on CentOS or yum, but here are a few of the resources I would use.

https://rpms.remirepo.net/rpmphp/zoom.php?rpm=ccache#


Inside the Andrew Peabody blog, I saw a suggestion that you use

sudo yum install ccache -y (not sure exactly what the yes to all option will do for you there)

@MrDoo, were you able to install ccache?

The -y doesn’t make any difference:

Results in:

No package ccache available.

So, yes, I can get it working by downloading ccache from fedoraproject.org and installing it using rpm, but not using yum. So it works, but it doesn’t feel like the proper way of doing it.

Hmmm. Wish I knew more about centos. Sounds like you at least were able to get it to work, but I share your interest in getting things done"the right way"