Compiling razor-qt in LMDE

Archived topics about LMDE 1 and LMDE 2
zerozero

Compiling razor-qt in LMDE

Post by zerozero »

updated 21.10.2012 see the EDIT at the end of the post

razot-qt 0.5.0 was just released (12 out 2012)

razor-qt might be yet another DE but is one of the few QT available
Razor-qt is an advanced, easy-to-use, and fast desktop environment based on Qt technologies. It has been tailored for users who value simplicity, speed, and an intuitive interface. Unlike most desktop environments, Razor-qt also works fine with weak machines.
in my quick test the memory usage is almost the same of the kde session but this might vary according to the configurations.

compiled in the unofficial lmde-kde tracking testing

1- get the source from >> http://www.razor-qt.org/install/ and extract it.

2- go to the newly created razor-qt-0.5.0 folder and navigate to /distr/deb
/home/zerozero/Downloads/razorqt-0.5.0/distr/deb/ in my situation

3- locate makeDeb.sh and run it.

4- it will complain surely about missing dep

Code: Select all

Name: razorqt
 Ver:  0.5.0
 Type: binary
 Distrib: LinuxMint
 Release: debian
 Src dir: /home/zerozero/Downloads/razorqt-0.5.0
 Out dir: /home/zerozero/razorqt_0.5.0_deb
*******************************
 dpkg-buildpackage -rfakeroot -D -us -uc -b
dpkg-buildpackage: source package razorqt
dpkg-buildpackage: source version 0.5.0-1
dpkg-buildpackage: source changed by <>
 dpkg-source --before-build razorqt-0.5.0
dpkg-buildpackage: host architecture amd64
dpkg-checkbuilddeps: Unmet build dependencies: libmagic-dev libudev-dev libpolkit-agent-1-dev libpolkit-qt-1-dev libpulse-dev libstatgrab-dev libsensors4-dev
dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting
dpkg-buildpackage: warning: (Use -d flag to override.)
debuild: fatal error at line 1357:
dpkg-buildpackage -rfakeroot -D -us -uc -b failed
something similar to this (my first attempt)

5- install them and run the script again

Code: Select all

zerozero@deb-kde ~/Downloads/razorqt-0.5.0/distr/deb $ apt install libmagic-dev libudev-dev libpolkit-agent-1-dev libpolkit-qt-1-dev libpulse-dev libstatgrab-dev libsensors4-dev
[sudo] password for zerozero: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  gir1.2-polkit-1.0 libavahi-client-dev libavahi-common-dev libdbus-1-dev
  libpolkit-gobject-1-dev libstatgrab6
The following NEW packages will be installed:
  gir1.2-polkit-1.0 libavahi-client-dev libavahi-common-dev libdbus-1-dev libmagic-dev
  libpolkit-agent-1-dev libpolkit-gobject-1-dev libpolkit-qt-1-dev libpulse-dev
  libsensors4-dev libstatgrab-dev libstatgrab6 libudev-dev
0 upgraded, 13 newly installed, 0 to remove and 0 not upgraded.
Need to get 968 kB of archives.
After this operation, 3,798 kB of additional disk space will be used.
Do you want to continue [Y/n]? Y

Code: Select all

Name: razorqt
 Ver:  0.5.0
 Type: binary
 Distrib: LinuxMint
 Release: debian
 Src dir: /home/zerozero/Downloads/razorqt-0.5.0
 Out dir: /home/zerozero/razorqt_0.5.0_deb
*******************************
 dpkg-buildpackage -rfakeroot -D -us -uc -b
dpkg-buildpackage: source package razorqt
dpkg-buildpackage: source version 0.5.0-1
dpkg-buildpackage: source changed by <>
 dpkg-source --before-build razorqt-0.5.0
dpkg-buildpackage: host architecture amd64
 fakeroot debian/rules clean                                                            
dh clean --buildsystem=cmake                                                            
   dh_testdir -O--buildsystem=cmake                                                     
   dh_auto_clean -O--buildsystem=cmake                                                  
   dh_clean -O--buildsystem=cmake                                                       
 debian/rules build                                                                     
dh build --buildsystem=cmake                                                            
   dh_testdir -O--buildsystem=cmake                                                     
   debian/rules override_dh_auto_configure                                              
make[1]: Entering directory `/home/zerozero/razorqt_0.5.0_deb/razorqt-0.5.0'            
dh_auto_configure -- -DLIB_SUFFIX="/x86_64-linux-gnu"         
6- in the end you have a razorqt_0.5.0_deb folder in your home dir and

Code: Select all

deb-kde razorqt_0.5.0_deb # dpkg -i *deb
Selecting previously unselected package libqtxdg0:amd64.
(Reading database ... 217994 files and directories currently installed.)
Unpacking libqtxdg0:amd64 (from libqtxdg0_0.5.0-1_amd64.deb) ...
Selecting previously unselected package libqtxdg-dev.
Unpacking libqtxdg-dev (from libqtxdg-dev_0.5.0-1_amd64.deb) ...
Selecting previously unselected package librazorqt0:amd64.
Unpacking librazorqt0:amd64 (from librazorqt0_0.5.0-1_amd64.deb) ...
Selecting previously unselected package librazorqt-dev.
Unpacking librazorqt-dev (from librazorqt-dev_0.5.0-1_amd64.deb) ...
Selecting previously unselected package razorqt.
Unpacking razorqt (from razorqt_0.5.0-1_all.deb) ...
Selecting previously unselected package razorqt-appswitcher.
Unpacking razorqt-appswitcher (from razorqt-appswitcher_0.5.0-1_amd64.deb) ...
Selecting previously unselected package razorqt-autosuspend.
Unpacking razorqt-autosuspend (from razorqt-autosuspend_0.5.0-1_amd64.deb) ...
Selecting previously unselected package razorqt-config.
Unpacking razorqt-config (from razorqt-config_0.5.0-1_amd64.deb) ...
Selecting previously unselected package razorqt-data.
Unpacking razorqt-data (from razorqt-data_0.5.0-1_all.deb) ...
Selecting previously unselected package razorqt-desktop.
Unpacking razorqt-desktop (from razorqt-desktop_0.5.0-1_amd64.deb) ...
Selecting previously unselected package razorqt-dev.
Unpacking razorqt-dev (from razorqt-dev_0.5.0-1_amd64.deb) ...
Selecting previously unselected package razorqt-globalkeyshortcuts.
Unpacking razorqt-globalkeyshortcuts (from razorqt-globalkeyshortcuts_0.5.0-1_amd64.deb) ...
Selecting previously unselected package razorqt-notificationd.
Unpacking razorqt-notificationd (from razorqt-notificationd_0.5.0-1_amd64.deb) ...
Selecting previously unselected package razorqt-openssh-askpass.
Unpacking razorqt-openssh-askpass (from razorqt-openssh-askpass_0.5.0-1_amd64.deb) ...
Selecting previously unselected package razorqt-panel.
Unpacking razorqt-panel (from razorqt-panel_0.5.0-1_amd64.deb) ...
Selecting previously unselected package razorqt-policykit-agent.
Unpacking razorqt-policykit-agent (from razorqt-policykit-agent_0.5.0-1_amd64.deb) ...
Selecting previously unselected package razorqt-power.
Unpacking razorqt-power (from razorqt-power_0.5.0-1_amd64.deb) ...
Selecting previously unselected package razorqt-runner.
Unpacking razorqt-runner (from razorqt-runner_0.5.0-1_amd64.deb) ...
Selecting previously unselected package razorqt-session.
Unpacking razorqt-session (from razorqt-session_0.5.0-1_amd64.deb) ...
Setting up libqtxdg0:amd64 (0.5.0-1) ...
Setting up libqtxdg-dev (0.5.0-1) ...
Setting up razorqt-data (0.5.0-1) ...
Setting up librazorqt0:amd64 (0.5.0-1) ...
Processing triggers for desktop-file-utils ...
Setting up razorqt-appswitcher (0.5.0-1) ...
Setting up razorqt-autosuspend (0.5.0-1) ...
Setting up razorqt-config (0.5.0-1) ...
Setting up razorqt-desktop (0.5.0-1) ...
Setting up razorqt-globalkeyshortcuts (0.5.0-1) ...
Setting up razorqt-notificationd (0.5.0-1) ...
Setting up razorqt-openssh-askpass (0.5.0-1) ...
Setting up razorqt-panel (0.5.0-1) ...
Setting up razorqt-policykit-agent (0.5.0-1) ...
Setting up razorqt-power (0.5.0-1) ...
Setting up razorqt-runner (0.5.0-1) ...
Setting up razorqt-session (0.5.0-1) ...
Setting up librazorqt-dev (0.5.0-1) ...
Setting up razorqt-dev (0.5.0-1) ...
Processing triggers for hicolor-icon-theme ...
Setting up razorqt (0.5.0-1) ...
deb-kde razorqt_0.5.0_deb # 

logout/login into razot-qt and explore and enjoy it
Image

issues:
so far i found 2 (but they may be related to the settings i have in kde)
1- network-manager doesn't remember the p/w at login (the field is always blank), once inputted in systemsettings (the panel applet doesn't have that functionality that i can see- actually that network monitor is not in the panel by default) it works just fine;

2- the right-click menu (wonderful btw) is almost black but again this might be related to the bespin settings in the kde session
Image

EDIT:
according to the wiki and the feedback gathered in the topic until now i believe that the dependencies in a vanilla lmde install should be something like:

Code: Select all

apt install cmake libqt4-dev libmagic-dev libxrender-dev libxcomposite-dev libxdamage-dev libqt4-dbus libqt4-webkit  libxcursor-dev zlib1g-dev libstatgrab-dev libqt4-xml libsensors4-dev liblightdm-qt-dev libqtwebkit4 libpolkit-qt-1-dev libpolkit-agent-1-dev libudev-dev libpulse-dev devscripts
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Monsta
Level 10
Level 10
Posts: 3071
Joined: Fri Aug 19, 2011 3:46 am

Re: Compiling razor-qt in LMDE

Post by Monsta »

A few additions:
  1. The build will fail very soon if you don't have debuild installed:

    Code: Select all

    ./makeDeb.sh: line 360: debuild: command not found
    Install devscripts package to get debuild (and about 50 packages in addition :D).
  2. For LightDM users: if you want to build Razor-lightdm-greeter, you need to install liblightdm-qt-1-dev before build. If it's not installed, there won't be any errors, the build system will just skip this step and say this:

    Code: Select all

    -- LightDM Greeter is a part of razor-qt build
    -- Checking for lightdm-qt...
    -- checking for module 'liblightdm-qt-2'
    --   package 'liblightdm-qt-2' not found
    -- lightdm2 for Qt is not found. Trying to find v1
    -- checking for module 'liblightdm-qt-1'
    --   package 'liblightdm-qt-1' not found
    -- Qt bindings for liblightdm not found. Razor-lightdm-greeter won't be built
    -- Hint: On debian or debian-derived distributions you could probably do: sudo apt-get install liblightdm-qt-1-dev
    --       On suse or opensuse distribution: lightdm-qt-devel
xircon

Re: Compiling razor-qt in LMDE

Post by xircon »

Hmmm, I get no window decorations, no title bar, frames, nothing!! But it compiles OK.
zerozero

Re: Compiling razor-qt in LMDE

Post by zerozero »

xircon,
razorqt has no window manager per se, can use kwin, openbox is also a popular option (matches the lightweight aspect of the DE)
does this helps
Image

Monsta,
yep :mrgreen: i could never noticed that

Code: Select all

Start-Date: 2012-10-03  22:01:04
Commandline: apt-get install packaging-dev
Install: pbzip2:amd64 (1.1.8-1, automatic), distro-info-data:amd64 (0.10, automatic), python-keyring:amd64 (0.7.1-1, automatic), libipc-run-perl:amd64 (0.91-1, automatic), libexporter-lite-perl:amd64 (0.02-2, automatic), debootstrap:amd64 (1.0.42, automatic), libnet-ip-perl:amd64 (1.25-3, automatic), diffstat:amd64 (1.55-3, automatic), cowbuilder:amd64 (0.70, automatic), libio-stringy-perl:amd64 (2.110-5, automatic), libnet-dns-perl:amd64 (0.66-2+b2, automatic), libclone-perl:amd64 (0.31-1+b2, automatic), libossp-uuid-perl:amd64 (1.6.2-1.3, automatic), patchutils:amd64 (0.3.2-1.1, automatic), libhttp-daemon-perl:amd64 (6.01-1, automatic), bzr-builddeb:amd64 (2.8.4), libcrypt-ssleay-perl:amd64 (0.58-1, automatic), quilt:amd64 (0.60-2), debian-policy:amd64 (3.9.3.1), libio-pty-perl:amd64 (1.08-1+b2, automatic), libjson-xs-perl:amd64 (2.320-1+b1, automatic), libarchive-zip-perl:amd64 (1.30-6, automatic), libmime-tools-perl:amd64 (5.503-1, automatic), python-launchpadlib:amd64 (1.9.12-2, automatic), libxdelta2:
amd64 (1.1.3-9, automatic), strace:amd64 (4.5.20-2.3, automatic), libjson-perl:amd64 (2.53-1, automatic), autoconf:amd64 (2.69-1), svn-buildpackage:amd64 (0.8.5), python-bzrlib:amd64 (2.6.0~bzr6526-1, automatic), libfcgi-perl:amd64 (0.74-1+b1, automatic), xdelta:amd64 (1.1.3-9, automatic), git-buildpackage:amd64 (0.6.0~git20120601), cdbs:amd64 (0.4.115+deb7u1), libclass-inspector-perl:amd64 (1.27-1, automatic), libtool:amd64 (2.4.2-1.1, automatic), hardening-includes:amd64 (2.2, automatic), libsoap-lite-perl:amd64 (0.714-1, automatic), packaging-dev:amd64 (0.4), python-magic:amd64 (5.11-2, automatic), libcapture-tiny-perl:amd64 (0.18-1, automatic), bzr:amd64 (2.6.0~bzr6526-1, automatic), debian-keyring:amd64 (2012.06.01, automatic), dh-autoreconf:amd64 (6), devscripts:amd64 (2.12.4), dctrl-tools:amd64 (2.22.2, automatic), python-gpgme:amd64 (0.2-2, automatic), dput:amd64 (0.9.6.3, automatic), piuparts:amd64 (0.45), python-configobj:amd64 (4.7.2+ds-4, automatic), libtask-weaken-perl:amd64 (1.03-1, automatic), 
unp:amd64 (2.0~pre7+nmu1, automatic), libnet-domain-tld-perl:amd64 (1.69-1, automatic), automake:amd64 (1.11.6-1, automatic), python-lazr.uri:amd64 (1.0.3-1, automatic), libemail-valid-perl:amd64 (0.190-1, automatic), pristine-tar:amd64 (1.25, automatic), cowdancer:amd64 (0.70, automatic), equivs:amd64 (2.0.9, automatic), pbuilder:amd64 (0.212), libcommon-sense-perl:amd64 (3.6-1, automatic), developers-reference:amd64 (3.4.9), autotools-dev:amd64 (20120608.1, automatic), libsvn-perl:amd64 (1.6.17dfsg-4, automatic), libconvert-binhex-perl:amd64 (1.119+pristine-3, automatic), libfile-libmagic-perl:amd64 (0.96-2, automatic), lintian:amd64 (2.5.10.2, automatic), libltdl-dev:amd64 (2.4.2-1.1, automatic), python-distro-info:amd64 (0.10, automatic), python-lazr.restfulclient:amd64 (0.12.0-2, automatic), libossp-uuid16:amd64 (1.6.2-1.3, automatic), python-wadllib:amd64 (1.3.0-2, automatic), libdigest-hmac-perl:amd64 (1.03+dfsg-1, automatic), libdistro-info-perl:amd64 (0.10, automatic), libparse-debcontrol-perl:amd64 
(2.005-3, automatic), wdiff:amd64 (1.1.2-1, automatic)
End-Date: 2012-10-03  22:02:16
GeneC

Re: Compiling razor-qt in LMDE

Post by GeneC »

'zz'


Thanks for that. Works just fine, on my KDE/LMDE/SID..... :D
At first login, I was given the option of window managers, and choose kwin.

I also am using Bespin on KDE, but the right click menus are fine... :?:
Image

Haven't had time to explore it much, but it looks pretty slick.. :wink: Tomorrow is another day.
squeezy

Re: Compiling razor-qt in LMDE

Post by squeezy »

Youse guys! Now I have to go try this out :evil:
GeneC

Re: Compiling razor-qt in LMDE

Post by GeneC »

Squeezy

Its a bit of an epic compilation. (lasts several minutes), just make sure to let it go (on and on.. :lol: ) till done.
Then run
(zerozero)
6- in the end you have a razorqt_0.5.0_deb folder in your home dir

Code: Select all

dpkg -i *deb
As Monsta said I had to install
devscripts package to get debuild
squeezy

Re: Compiling razor-qt in LMDE

Post by squeezy »

I might wimp out and just build a barebones ubu 12.04 and use the PPA :lol:
zerozero

Re: Compiling razor-qt in LMDE

Post by zerozero »

Gene :D
guess what :shock: my menu today is fixed
Image
:lol: :lol:
squeezy :wink: it's worthy
squeezy

Re: Compiling razor-qt in LMDE

Post by squeezy »

zz, what are you using for a window manager? Looks really sweet!
GeneC

Re: Compiling razor-qt in LMDE

Post by GeneC »

zerozero wrote:Gene :D
guess what :shock: my menu today is fixed
:lol: :lol:
squeezy :wink: it's worthy
Looks good... :mrgreen:
zerozero

Re: Compiling razor-qt in LMDE

Post by zerozero »

squeezy
window manager is kwin, all the rest you see (theme related) is bespin
zerozero

Re: Compiling razor-qt in LMDE

Post by zerozero »

exploring more (tbh leaving here the links otherwise i wouldn't know where they are tomorrow)

window managers and razor-qt

qt app to match razor-qt

themes (not much so far that i found) have to be placed in /usr/share/razor/themes/
like this one
squeezy

Re: Compiling razor-qt in LMDE

Post by squeezy »

That's a great listing of apps and info, zerozero. For someone like me, who's spent their entire Linux life in GTK environments, I needed exactly a source like that for Qt info.

Thanks!
Monsta
Level 10
Level 10
Posts: 3071
Joined: Fri Aug 19, 2011 3:46 am

Re: Compiling razor-qt in LMDE

Post by Monsta »

Looks like there's a LOT of apps to install before you can turn this DE into a full-fledged desktop without any GTK+ apps or libraries :)

I've compiled it on a virtual LMDE UP5 machine which has only MATE and Cinnamon. No kwin, no KDE libs, just the -dev stuff needed to build razor-qt. So the appearance is pretty much horrible now. :D

Image

Here's the list of my issues:
  1. Couldn't find any Qt-based Synaptic alternative.
  2. Same for the network manager applet.
  3. GTK+ 2 and 3 apps (e.g. MATE terminal and nm applet) and Qt apps with style set to GTK+ look like Windows 95. Gotta find some more engines and themes, I guess. I'm quite confused about what exactly I need to install... maybe something qtcurve-related?
  4. In addition, if I set Qt style to GTK+, qtconfig ignores my font setting (I've tried to set it to Ubuntu instead of Sans Serif).
  5. The panel seems to dislike any size less than 32. The icons stick out from the bottom of the screen. The taskbar buttons shrink, and there seems no way to make them expand vertically to take up the whole space.
  6. No complete appearance configuration tool like mate-appearance-properties.
I guess I'll have to install kwin and all its KDE dependencies after all (right now razor-qt tells me it's using metacity as a WM :shock:) and get some kind of KDE-without-plasma-desktop. :)
xircon

Re: Compiling razor-qt in LMDE

Post by xircon »

Cheers ZZ, swapped to kdm, now get the pop-up asking which window manger to use and get title bars etc. Obviously doesn't work with gdm3.

Steve
Adelante

Re: Compiling razor-qt in LMDE

Post by Adelante »

Hi, zerozero. I'm glad you started up this project. It seems pretty mystifying to me, but I'm bookmarking the thread, so one day when I feel especially adventurous, I will give it a try. I've been using Razor-Qt DE on Kubuntu and it's working very well. I had installed it to a few systems, OpenSuse KDE, Lubuntu. I also tried a newer one, I can't think of the name at the moment, but it came with. I found R-Qt worked best on Kubuntu, at least on my computer. One surprising thing, again on my computer, maybe not for all, I don't see R-Qt in the same class as LXDE and Xfce, in terms of quickness. It pulls more on the CPU and uses more RAM than either of those, though perhaps this is because of the base system and one day it will have its own OS behind it. For me, it runs KDE-like, which is to say very well on my machine. It is certainly good-looking and pleasant to use. I did look at installing it with Debian, but I didn't grasp much of what I was reading, so I was thinking of adding it to LMDEKDE (fantastic release) to give it a spin. Of course, it wasn't in the repository, as you point out, and this compiling business has to take place. Thank you for doing this work. I'll let you know how I make out. :D
zerozero

Re: Compiling razor-qt in LMDE

Post by zerozero »

got it again installed (this time in vb - lmde-2012.04 mate-cinnamon edition)
with some helpers i think we can solve some of the issues Monsta points out above:
what i installed:
lxappeareance and qt4-qtconfig

Code: Select all

Commit Log for Sun Oct 21 01:43:46 2012


Installed the following packages:
lxappearance (0.5.2-1)
Commit Log for Sun Oct 21 01:08:55 2012


Installed the following packages:
gtk2-engines-oxygen (1.2.4-1)
gtk3-engines-oxygen (1.0.4-1)
libphonon4 (4:4.6.0.0-2)
qt4-qtconfig (4:4.8.2-1)
Image
between those 2 tools and cinnamon settings (the only way i found to change windeco) i could tweak basically all the aspects of the DE (including fonts)
Image
Image
Image

also the building process has some additional info taken from the wiki, will update the OP according.

@Adelante, welcome to the party 8)
squeezy

Re: Compiling razor-qt in LMDE

Post by squeezy »

Do you think it's possible to compile this on a command line only install of Debian testing? I mean, you don't need a DE installed to do this, right? I really want to build a system from the ground up, making it as "qt only" as possible instead of installing razorqt on an existing system. I'm not having much luck trying the Ubuntu mini.iso install and Razor's PPA.

One of you guys wouldn't want to make your compiled .deb available, would you? :twisted:
Monsta
Level 10
Level 10
Posts: 3071
Joined: Fri Aug 19, 2011 3:46 am

Re: Compiling razor-qt in LMDE

Post by Monsta »

squeezy wrote:One of you guys wouldn't want to make your compiled .deb available, would you? :twisted:
:D I can upload those 12M of files to some file hosting service if you need them.


Well, since I've had a little free time, I've installed minimal Wheezy in my Virtualbox (got netinst image from this page) and built Razor-qt in it.

A few notes:
  1. Install devscripts and liblightdm-qt-dev before build (I repeat myself, yes).
  2. Since /etc/lsb-release is absent here, makeDeb has to be run with some additional arguments:

    Code: Select all

    makeDeb.sh -r wheezy -d Debian
  3. Other build steps are pretty much the same as in zerozero's howto post: install the missing dependencies makeDeb complains about, re-run it, wait.
  4. When the build is finished, first install some display manager and window manager. This should also pull a lot of Xorg-related stuff.
    I've chosen LightDM and Openbox. But... much to my disappointment, LightDM depends on

    Code: Select all

    lightdm-gtk-greeter | lightdm-qt-greeter
    and the latter is absent in Wheezy. Yeah right, I ended up with a lot of GTK+ stuff after that. Someone's gotta repack this package special for Razor-qt and make it depend on lightdm-razorqt-greeter. :D
  5. Now install all the Razor-qt packages.
  6. Run

    Code: Select all

    service lightdm start
    to fire it up, finally :)
The result is pretty much bare desktop which doesn't even have a terminal or a web browser.

After that I thought "well, since GTK+ stuff couldn't be avoided, why not install some more" and installed mint-themes, mint-x-icons and gnome-screenshot (it doesn't have gnome dependencies really, only GTK+). Oh yeah, and firefox to upload the screenshots. That required adding packages.linuxmint.com to the sources list and installing linuxmint-keyring, of course.

Image
qtconfig

Image
lxappearance (it really helps, thanks zerozero, I've used this tool before but totally forgot about it)

Image
configuration center and firefox (ready to upload some screenshots)
Locked

Return to “LMDE Archive”