cancel
Showing results for 
Search instead for 
Did you mean: 

Can someone simplify building on linux Please?

Community Veteran
Posts: 1,128
Thanks: 8
Registered: 28-08-2007

Can someone simplify building on linux Please?

Never had to build anything before, most stuff has been available as debs. However, I have just got a phone replaced through warranty, and I need to back mine up before wiping it and sending it back. I've tried the official software in windows xp VM but it won't install. Came across Sachesi which runs on Linux and Windows but in the windows VM says "not a valid win32 application", gave up pretty quick on that.
So that leaves me having to build it. the instructions are as follows taken from here..
Quote
  1.  sudo apt-get install qt5-qmake libqt5network5 libqt5qml5 qtdeclarative5-settings-plugin qtdeclarative5-controls-plugin qtdeclarative5-dialogs-plugin qtdeclarative5-quicklayouts-plugin qtdeclarative5-window-plugin qtdeclarative5-qtquick2-plugin
  2. In the same directory as Sachesi.pro: qmake && make -j4
  3. ./Sachesi

So far I've downloaded and extracted to desktop, run part 1 in the above which seems to have went okay but as for the rest I don't know what I'm supposed to be doing and searching for building software seems to be taking me further away from where I'm trying to get. Can anyone tell me the simple terminal commands that will install this piece of software please?
59 REPLIES
Community Veteran
Posts: 5,092
Thanks: 453
Fixes: 17
Registered: 10-06-2010

Re: Can someone simplify building on linux Please?

I'm not sure how to simplify it much, it feels like I'll just be repeating it, but I'll try anyway:
You open a terminal in the directory you extracted the source code, so that the current working directory is Sachesi-2.0.3 (assuming you downloaded the 2.0.3 source code)
Then the command line to build the program is:
Quote
qmake && make -j4

qmake and make are the commands, the && is just a way of putting two commands on one line, so that the second one runs if the first one succeeds, and the -j4 is optional, it speeds things up especially if you have a quad core CPU, because it'll cause the make command to do up to 4 things at once while it's building the program.
You don't need to install the program as such, you can just run it from the directory it was built in, which is what step 3 does.
Community Veteran
Posts: 5,237
Thanks: 1,321
Fixes: 31
Registered: 16-10-2014

Re: Can someone simplify building on linux Please?

If you've not done this before then the chances are you won't have a working tool chain i.e. Compiler, linker, et al. Look into installing 'build essentials' for your distro.
This link may be of use.
https://packages.debian.org/sid/build-essential
Once you have a proper tool chain installed things should go better for you. Any issues post back with a copy paste of the errors.
Community Veteran
Posts: 6,773
Thanks: 257
Fixes: 20
Registered: 16-02-2009

Re: Can someone simplify building on linux Please?

Building packages can be a bit hit and miss I find.
The problem is that it HAS to be back to basics, no idea what you will be compiling on/for. So all details are given and it looks complicated but can sometimes just work if all the dependences are met, if they aren't then that is when the issues start.
I assume you are building for a 64 bit system, if so then I will try and build a deb for you or at least a working file.
EDIT:
just looked and if you download the .bz2 it contains a file, which fails on my system as it doesn't have quicktime stuff installed.
"QtQuick.Window" is not installed" etc
With the apt-get command executed you can run the file.
Try that.
Community Veteran
Posts: 1,128
Thanks: 8
Registered: 28-08-2007

Re: Can someone simplify building on linux Please?

Quote
You open a terminal in the directory you extracted the source code, so that the current working directory is Sachesi-2.0.3

Not sure what you mean by in a directory?
Quote
If you've not done this before then the chances are you won't have a working tool chain i.e. Compiler, linker, et al. Look into installing 'build essentials' for your distro.

Downloaded build essential 11.6 using synaptics. Not sure where to go from here!
Quote
I assume you are building for a 64 bit system, if so then I will try and build a deb for you or at least a working file.
EDIT:
just looked and if you download the .bz2 it contains a file, which fails on my system as it doesn't have quicktime stuff installed.
"QtQuick.Window" is not installed" etc
With the apt-get command executed you can run the file.
Try that.

Can you elaborate? Possibly with the terminal commands. byw its a 32 bit system
Community Veteran
Posts: 1,128
Thanks: 8
Registered: 28-08-2007

Re: Can someone simplify building on linux Please?

neil@neil-Excel:~$ cd /home/neil/Sachesi
neil@neil-Excel:~/Sachesi$ qmake && make -j4
qmake: could not exec '/usr/lib/i386-linux-gnu/qt4/bin/qmake': No such file or directory
neil@neil-Excel:~/Sachesi$

Huh I guess not this then.
Community Veteran
Posts: 5,237
Thanks: 1,321
Fixes: 31
Registered: 16-10-2014

Re: Can someone simplify building on linux Please?

If you look at the output you'll see that it's looking in the qt4 directory! But you're wanting to use qt5.
At the CLI type :
neil@neil-Excel:~$ which qmake
Then
neil@neil-Excel:~$ printenv
And post the results here please.
Community Veteran
Posts: 1,128
Thanks: 8
Registered: 28-08-2007

Re: Can someone simplify building on linux Please?

Not sure if this is of any help. I came across this, https://www.youtube.com/watch?v=pt44bAP2rMg installed alien and converted to a deb file which installed via software centre. Now I cant work out how to open the program itself!
Community Veteran
Posts: 1,128
Thanks: 8
Registered: 28-08-2007

Re: Can someone simplify building on linux Please?

neil@neil-Excel:~$ which qmake
/usr/bin/qmake
neil@neil-Excel:~$ printenv
XDG_VTNR=7
XDG_SESSION_ID=c2
CLUTTER_IM_MODULE=xim
SELINUX_INIT=YES
XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/neil
SESSION=gnome
GPG_AGENT_INFO=/run/user/1000/keyring-qsjJYI/gpg:0:1
SHELL=/bin/bash
XDG_MENU_PREFIX=gnome-
VTE_VERSION=3409
TERM=xterm
GJS_DEBUG_OUTPUT=stderr
WINDOWID=35651595
UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/1638
GNOME_KEYRING_CONTROL=/run/user/1000/keyring-qsjJYI
GJS_DEBUG_TOPICS=JS ERROR;JS LOG
GTK_MODULES=overlay-scrollbar
USER=neil
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
SSH_AUTH_SOCK=/run/user/1000/keyring-qsjJYI/ssh
DEFAULTS_PATH=/usr/share/gconf/gnome.default.path
SESSION_MANAGER=local/neil-Excel:@/tmp/.ICE-unix/1792,unix/neil-Excel:/tmp/.ICE-unix/1792
XDG_CONFIG_DIRS=/etc/xdg/xdg-gnome:/usr/share/upstart/xdg:/etc/xdg
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
DESKTOP_SESSION=gnome
QT_IM_MODULE=ibus
QT_QPA_PLATFORMTHEME=appmenu-qt5
JOB=dbus
PWD=/home/neil
XMODIFIERS=@im=ibus
GNOME_KEYRING_PID=1627
LANG=en_GB.UTF-8
GDM_LANG=en_GB
MANDATORY_PATH=/usr/share/gconf/gnome.mandatory.path
IM_CONFIG_PHASE=1
GDMSESSION=gnome
SESSIONTYPE=gnome-session
XDG_SEAT=seat0
HOME=/home/neil
SHLVL=1
LANGUAGE=en_GB:en
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
LOGNAME=neil
XDG_DATA_DIRS=/usr/share/gnome:/usr/local/share/:/usr/share/
QT4_IM_MODULE=xim
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-1HzqKZKjwk
LESSOPEN=| /usr/bin/lesspipe %s
INSTANCE=
TEXTDOMAIN=im-config
XDG_RUNTIME_DIR=/run/user/1000
DISPLAY=:0
XDG_CURRENT_DESKTOP=GNOME
GTK_IM_MODULE=ibus
LESSCLOSE=/usr/bin/lesspipe %s %s
TEXTDOMAINDIR=/usr/share/locale/
COLORTERM=gnome-terminal
XAUTHORITY=/home/neil/.Xauthority
_=/usr/bin/printenv
neil@neil-Excel:~$
Community Veteran
Posts: 5,237
Thanks: 1,321
Fixes: 31
Registered: 16-10-2014

Re: Can someone simplify building on linux Please?

If you think you have built the application then at the cli enter
find ~/ -name 'Sachesi*'
If you can't find it it might mean that the operation failed.
At the cli enter qmake --version and see what it reports if it's v4 then you will need to fix that or downgrade the project.
Community Veteran
Posts: 1,128
Thanks: 8
Registered: 28-08-2007

Re: Can someone simplify building on linux Please?

neil@ubuntu-netbook:~$ find ~/ -name 'Sachesi*'
/home/neil/.local/share/Trash/info/Sachesi.trashinfo
/home/neil/.local/share/Trash/files/Sachesi
/home/neil/Downloads/Sachesi2.0.3-Windows
/home/neil/Downloads/Sachesi2.0.3-Windows/Sachesi.exe
/home/neil/Downloads/Sachesi2.0.3-Linux.tar.bz2
/home/neil/Downloads/Sachesi2.0.3-Linux(2).tar.bz2
/home/neil/Downloads/Sachesi2.0.3-Windows.7z
/home/neil/Downloads/Sachesi
/home/neil/Downloads/Sachesi (2)
/home/neil/Downloads/Sachesi2.0.3-Linux(1).tar.bz2
neil@ubuntu-netbook:~$ qmake --version
qmake: could not exec '/usr/lib/i386-linux-gnu/qt4/bin/qmake': No such file or d

I assume from the fact it's in trash it didn't work although it does show up as installed in software centre.
Community Veteran
Posts: 1,128
Thanks: 8
Registered: 28-08-2007

Re: Can someone simplify building on linux Please?

Just noticed I need qt5 to run this. If I only have qt4 then I need another version. Doh, talking when I should have been listening again  Grin Roll eyes
Community Veteran
Posts: 5,237
Thanks: 1,321
Fixes: 31
Registered: 16-10-2014

Re: Can someone simplify building on linux Please?

So what happens if you try to run the version in trash?
Community Veteran
Posts: 6,773
Thanks: 257
Fixes: 20
Registered: 16-02-2009

Re: Can someone simplify building on linux Please?

OK go back to the web site in the first link.
Get the file at the TOP of the list, it ends in .bz2 CLICK HERE
Open it and extract the SINGLE file.
Run it by double clicking on it.
Community Veteran
Posts: 5,092
Thanks: 453
Fixes: 17
Registered: 10-06-2010

Re: Can someone simplify building on linux Please?

The pre-built Linux binary is 64bit, it won't run on a 32bit system.
You need to download and unpack the source code for Sachesi. Then use apt-get install to install the -dev qt5 packages, if installing qt5-qmake didn't already do that, then run qmake-qt5 or sort out the system so that qmake runs the qt5 version instead of trying to run something that doesn't exist. I use Fedora so don't know exactly how Ubuntu / Debian do things regarding naming the development packages or arranging the installation of different versions of Qt.