You are not logged in.

#1 2011-08-27 23:40:24

chenxiaolong
Member
From: /home/chenxiaolong
Registered: 2010-11-03
Posts: 784

Progress on Unity under Arch Linux!

See here for information about the new GNOME 3.12-compatible packages: https://bbs.archlinux.org/viewtopic.php … 3#p1404683

I'm now on IRC! Come join us at #unityforarch on Freenode

To install Unity from my repos:

See the wiki: https://wiki.archlinux.org/index.php/un … mmended.29

To install Unity from source:

See the wiki: https://wiki.archlinux.org/index.php/unity#From_source

-- You probably don't want to read anything below wink --

The story

So...rather than wasting internet bandwith to download a new Ubuntu ISO to test out the new Unity features, I decided to try to make it work under Arch Linux. It took a whole lot longer than I expected to get it even partially working. So, here's my story:

Knowing that Unity isn't in the main repositories, I went the AUR's website and looked for a user created Unity package. That didn't go too well. The Unity package hasn't been updated for 6 months. D'oh! I decided to download the existing PKGBUILD and modify it to work with the Unity 4.xx series. After changing the version number, I tried to "makepkg" it, and was greeted with a message about installing Compiz 0.9.x. I thought it would be an easy install. It was quite the opposite. Compiz's install prefix was set to /opt/unity, but FindCompiz cmake build file expected Compiz to be in /usr, so none of the Compiz packages, except for compiz-core would compile. Then, I tried reinstalling compiz-core, but this time, changing the prefix to /usr. The compiled package ended up being only a few kilobytes big. I guess the mouse wheel was invented for a reason. I looked at the PKGBUILD again, only to find that there was a line at the very bottom that ran "rm -rf ${pkgdir}/usr". That explains a lot! I ended up adopting all the compiz*-git packages and fixing them so they would compile and install.

So, now that Compiz is working (restarted and tested just to make sure I didn't waste my time with something that didn't work), I went on to install the rest of the dependencies listed in the Unity PKGBUILD file. That went relatively well. I was so happy after seeing the progress counter go up after running "makepkg", but at about 8%, gcc spat out an error about an undeclared function (sorry, I forgot what the function was). Natually, I went to Google and searched the name of the function. 0 results! Exactly was I was looking for! I ended up downloading the Ubuntu 11.10 Alpha 3 ISO and running "find -type f /usr/lib | xargs objdump -T | grep the_function". The problem lied in the libindicator package. There was a newer version available which contained that function. I have no idea why a package that's only 0.02 versions ahead of the AUR package would contain new functions...

Next! Utouch...ugh...great memories! Not! I was so glad that I had fixed the utouch packages earlier (for touchegg to work). I was too frustrated from compiz and libindicator to try to compile more stuff.

Cmake. Whoever created the CMakeLists.txt file didn't list all the dependencies required. So after running "makepkg" 10 billion times, waiting for "somebodydidntputthisincmake.h not found" errors to appear, I finally got all the dependencies I needed installed...or so I thought. After installing and compiling all these dependencies, the cmake only continues 3% further before encountering another cryptic gcc error. This time, there no error about a file not being found. So not knowing what dependency was missing, I headed over to http://packages.ubuntu.com and downloaded the Unity DEB source to find the dependencies in then debian/control file. After install those few dependencies that I missed, I ran "makepkg" again, hoping that it would finally compile successfully. CMake went a little further--5% further to be exact--before running into another error. It complained about DndSourceDragBegin() having two return types. Sure, enough "./plugins/unityshell/src/ResultViewGrid.h" had the return type as boolean and "/usr/include/Nux-1.0/Nux/InputArea.h" had the return type as void. WTF? How the heck does this even compile under 11.10???

After changing void to bool in "/usr/include/Nux-1.0/Nux/InputArea.h", I ran "makepkg" once again anxiously waiting to the see the line "Finished making: unity 4.10.2". CMake compiled about 35% before running into error about an undeclared gtk function. Nooooooooooooo!!! I wasn't brave enough to install the git version of gtk3, so I created a chroot, installed the base packages, and installed all of those dependencies fairly quickly (it gets a lot easier after doing it so many times).

Moving on to gtk3. After cloning the ~200MB git repository, autotools spits out an error about cairo-gl missing. So, I proceeded to install the cairo-gl-git package, which failed to compile (it compiled successfully outside of the chroot...). GREAT. So, Unity fails to compile because GTK version is too old, and GTK failed to compile because cairo-gl is missing, and cairo-gl fails to compile because I'm in a chroot. GAHHH!!! While thinking about throwing the computer out of the window, I searched the AUR for other GTK3 packages. I just happened to find a package named "GTK3-UBUNTU"! That package was still at version 3.0, but it was pretty easy to get the patches and source code for 3.1 from the Ubuntu GTK source package.

So, FINALLY, Unity compiles. I was so darn happy, I didn't even care if it ran or not. I logged out and logged back into the GNOME 3 fallback mode, and entered the chroot. After running "xhost +SI:localuser:chenxiaolong" to run X11 apps in the chroot, I crossed my fingers and ran "DISPLAY=:0.0 unity --replace". It failed with python 3 complaining about missing modules. That's okay, since the Unity launch script is written in python 2. I changed the shebang line in "/usr/bin/unity" to point to python 2 and ran "DISPLAY=:0.0 unity --replace". It didn't necessarily fail, but it didn't succeed either. It didn't print out any error messages. Weird... I thought I'd try enabling Unity from the compiz settings manager then. I ran "DISPLAY=:0.0 compiz --replace" and "DISPLAY=:0.0 ccsm" and enabled the Unity plugin. Unity runs! Although nothing shows on the screen, it runs! It shows up in the process list! Woohoo!

And that's about how far I got. There were quite a few Vala errors during the compiling process (I forgot which package it was), which is probably why Unity won't appear. I'll try again later with the vala-devel or vala-git package and hopefully Unity will work then. Here are screenshots of what I've gotten working so far:

http://i.imgur.com/7F1fm.jpg
http://i.imgur.com/zGNJc.jpg
http://i.imgur.com/3mCgd.jpg

By then way, I love the simplicity of pacman and the AUR. I can't imagine how long this would have taken with other package managers.


Moderator edit:  Do not place large images in line.  If you want, you may embed links to thumbnails inside url tags.

Last edited by chenxiaolong (2014-04-15 17:11:04)

Offline

#2 2011-08-28 00:13:20

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Progress on Unity under Arch Linux!

...and for those of us that don't read +1K word posts, the tl;dr is?

Also, we have rules about the size of screenshots: please read them and resize your pics - not everyone has unlimited bandwidth and/or is using a standard device.

Last edited by jasonwryan (2011-08-28 00:15:11)


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2011-08-28 00:17:00

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,643
Website

Re: Progress on Unity under Arch Linux!

jasonwryan wrote:

...and for those of us that don't read +1K word posts, the tl;dr is?

Also, we have rules about the size of screenshots: please read them and resize your pics - not everyone has unlimited bandwidth and/or is using a standard device.

+1 and +1 - some mod is highly likely to nuke your pics tongue


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#4 2011-08-28 00:22:24

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,193

Re: Progress on Unity under Arch Linux!

graysky wrote:
jasonwryan wrote:

Also, we have rules about the size of screenshots: please read them and resize your pics - not everyone has unlimited bandwidth and/or is using a standard device.

+1 and +1 - some mod is highly likely to nuke your pics tongue


Yep.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#5 2011-08-28 01:54:53

chenxiaolong
Member
From: /home/chenxiaolong
Registered: 2010-11-03
Posts: 784

Re: Progress on Unity under Arch Linux!

Sorry about the size of the pictures. I'll be sure to resize them next time.

By the way, what is "tl;dr"?

Offline

#6 2011-08-28 01:57:16

sbfreak
Member
Registered: 2010-06-06
Posts: 149

Re: Progress on Unity under Arch Linux!

chenxiaolong wrote:

By the way, what is "tl;dr"?

Too long didn't read.

Offline

#7 2011-08-28 01:58:01

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Progress on Unity under Arch Linux!

"Too long; didn't read"

I always like reading success stories like this. I'm not interested in Unity myself, but I'm sure you'll make someone else happy if you were to trod on in your quest and post your PKGBUILDs.

Offline

#8 2011-08-28 02:38:05

DustinCasler
Member
From: Dallas, Texas
Registered: 2011-03-27
Posts: 50

Re: Progress on Unity under Arch Linux!

Congrats on all the progress and thanks for the hard work. I for one can't wait to try it when its ready. I know Unity hasn't exactly been wildly popular, but I wonder if a lot of the annoyances would be solved by running on top of Arch rather than Ubuntu. After spending a good week playing with Unity I kind of like the simplicity and how out of your way everything gets.

Offline

#9 2011-08-28 05:04:50

chenxiaolong
Member
From: /home/chenxiaolong
Registered: 2010-11-03
Posts: 784

Re: Progress on Unity under Arch Linux!

Thanks! I'll definitely keep everyone updated on the progress smile

Offline

#10 2011-08-28 09:44:42

xunil9025
Member
Registered: 2011-02-26
Posts: 61

Re: Progress on Unity under Arch Linux!

Hi saw this guide for building it from the source but it's for building it on ub system.
I hope this helps u further on.
http://askubuntu.com/questions/28470/ho … 8472#28472

Last edited by xunil9025 (2011-08-28 11:47:31)

Offline

#11 2011-08-28 09:48:50

loonyphoenix
Member
From: Belarus
Registered: 2010-01-29
Posts: 19

Re: Progress on Unity under Arch Linux!

So... Canonical is definitely not making an effort to make it easier to run Unity with different distros...

Offline

#12 2011-08-28 09:53:37

Cosmin
Member
Registered: 2008-10-06
Posts: 248

Re: Progress on Unity under Arch Linux!

loonyphoenix wrote:

So... Canonical is definitely not making an effort to make it easier to run Unity with different distros...

why would they? their product is ubuntu not arch ...

Offline

#13 2011-08-28 10:30:59

Awebb
Member
Registered: 2010-05-06
Posts: 6,599

Re: Progress on Unity under Arch Linux!

jasonwryan wrote:

...and for those of us that don't read +1K word posts, the tl;dr is?

You can always grep for keywords.

Online

#14 2011-08-28 14:44:53

chenxiaolong
Member
From: /home/chenxiaolong
Registered: 2010-11-03
Posts: 784

Re: Progress on Unity under Arch Linux!

xunil9025: Thanks for the link! That guide is a little bit old, since Unity now requires >GTK 3.1, but at least it has a nice list of the dependencies needed smile

Awebb: big_smile

Glew 1.5 was something I forgot to mention in the original post. Glew is currently at version 1.6 in arch, which apparently isn't capable with version 1.5 needed by clutk. I downloaded the glew 1.5 source code, but I'm not sure how to make clutk compile using headers not in /usr/include. If someone could help me there, that would be great. For now, I've updated the AUR clutk package to download the DEBs from the Ubuntu repository and install those.

Also, I'll try compiling Unity in Virtualbox today. Hopefully, that will work better.

Offline

#15 2011-08-28 14:52:33

satanselbow
Member
Registered: 2011-06-15
Posts: 538

Re: Progress on Unity under Arch Linux!

Cosmin wrote:
loonyphoenix wrote:

So... Canonical is definitely not making an effort to make it easier to run Unity with different distros...

why would they? their product is ubuntu not arch ...

Cos Canonical have been peddling in round the the other distros as a revenue stream - I seem to remember OpenSuse considered Unity before running with Gnome3... wise choice me thinks wink

Offline

#16 2011-08-28 17:18:24

DustinCasler
Member
From: Dallas, Texas
Registered: 2011-03-27
Posts: 50

Re: Progress on Unity under Arch Linux!

satanselbow wrote:
Cosmin wrote:
loonyphoenix wrote:

So... Canonical is definitely not making an effort to make it easier to run Unity with different distros...

why would they? their product is ubuntu not arch ...

Cos Canonical have been peddling in round the the other distros as a revenue stream - I seem to remember OpenSuse considered Unity before running with Gnome3... wise choice me thinks wink

I really want to like a lot of what Ubuntu does. But it's so frustrating how closed off so many things about them are.

Offline

#17 2011-08-28 17:26:55

dhave
Arch Linux f@h Team Member
From: Outside the matrix.
Registered: 2005-05-15
Posts: 1,112

Re: Progress on Unity under Arch Linux!

tfyp. itualipw.


Donate to Arch!

Tired? There's a nap for that. --anonymous

Offline

#18 2011-08-28 21:44:46

jcastro
Member
Registered: 2011-08-28
Posts: 1

Re: Progress on Unity under Arch Linux!

I really want to like a lot of what Ubuntu does. But it's so frustrating how closed off so many things about them are.

There's nothing closed off, we didn't know anyone was working on Unity for Arch or we would have offered to help like we did the person packaging it for opensuse.

@chenxiaolong - If you need any help please drop by #ayatana or drop a mail on ayatana-dev@lists.launchpad.net.

Offline

#19 2011-08-28 21:59:29

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Progress on Unity under Arch Linux!

There's an outdated wiki page https://wiki.archlinux.org/index.php/Ayatana It would be cool if someone could bring it up to date when you get it going, as forums aren't really the best place to share such info.

Has anyone tried the ayatana repo https://wiki.archlinux.org/index.php/Un … positories - it don't seem to be outdated.
(I don't actually know what's the relation between Unity and ayatana, I only saw 'ayatana' in the contact info posted by jcastro, so please disregard this if I mixed things up)

Offline

#20 2011-08-28 22:50:52

City-busz
Package Maintainer (PM)
From: Budapest, Hungary
Registered: 2010-12-27
Posts: 181
Website

Re: Progress on Unity under Arch Linux!

I've also worked on building Unity and Unity 2d in the past few days, but I still have some problems.

The package sources are available here: https://github.com/City-busz/Arch-Linux … tu-ayatana
And also available in [ayatana] repo for i686 (now it's fully up to date): http://ayatana.info/
All dependences of Unity and Unity 2d can be found in this repo, and I'll add Unity also as soon as I'm able to build that.


@chenxiaolong: great work! I also experienced the build error of Unity with DndSourceDragBegin(), but I couldn't fix that yet, so I'll try your solution. And I think that clutk is not a dependency of Unity. Clutk is an old library which was required until Unity used Mutter instead of Compiz.

@karol: I'm planning to update wiki page about Ayatana, but first I need to build the remaining packages. And Unity is part of Ubuntu's Ayatana project along with Notify-OSD, indicators, overlay scrollbar and appmenu.

Offline

#21 2011-08-28 23:04:23

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Progress on Unity under Arch Linux!

City-busz wrote:

@karol: I'm planning to update wiki page about Ayatana, but first I need to build the remaining packages. And Unity is part of Ubuntu's Ayatana project along with Notify-OSD, indicators, overlay scrollbar and appmenu.

I got that impression from reading the Introduction in the wiki, but didn't know if it's still the case, as the page was marked out of date (by you ;P). Thanks for the explanation!

Offline

#22 2011-08-30 01:49:29

chenxiaolong
Member
From: /home/chenxiaolong
Registered: 2010-11-03
Posts: 784

Re: Progress on Unity under Arch Linux!

City-busz: I'm getting a ton of Vala errors when I compile libunity (AUR version) with vala or vala-devel. libunity fails to compile with vala-git. I'll try your packages in a virtual machine and see how they work on 64 bit.

In the meantime, Unity still fails to show up: http://i.imgur.com/btPwo.png I'll try out your PKGBUILDS and see how that works. I'm glad there are people who want to port Unity to Arch Linux smile

EDIT: City-busz: Just to let you know, Unity will fail to compile at around 45% with GTK 3.0. Here's my source packaage for Ubuntu's GTK 3.1: http://ubuntuone.com/p/1EzX/ It contains all of the patches in the Ubuntu source package. I'm not sure if all the patches are needed, but GTK compiles fine with all of them.

EDIT2: Right now, I'm trying to compile Vala 0.10.4, then version used in Ubuntu 11.10. Hopefully that will eliminate some of the Vala errors.

EDIT3: Vala 0.10 is too old. 0.12 and 0.14 are also in the Ubuntu repository. Trying those...

EDIT4: 0.14 is actually 0.13.1. Gah... Vala takes longer to compile under VirtualBox than GTK3...

EDIT5: Okay...so VirtualBox "helpfully" became slow enough that I could read the error messages. The Vala error messages aren't actually error messages, but rather warnings about unused methods. I wonder what prevents Unity from running then...

Last edited by chenxiaolong (2011-08-30 02:30:29)

Offline

#23 2011-08-30 02:50:15

chenxiaolong
Member
From: /home/chenxiaolong
Registered: 2010-11-03
Posts: 784

Re: Progress on Unity under Arch Linux!

More progress! If I add "--indirect-rendering" to line 115 of /usr/bin/unity, Virtualbox looks like this: link. I'm starting to think that Unity is running fine, but Compiz is not working with VirtualBox.

EDIT: Running Unity after starting Compiz results in "compiz (unityshell) - Error: GL_ARB_vertex_buffer_object not supported". This is running Compiz with "compiz ccp --replace --sm-disable --ignore-desktop-hints --indirect-rendering"

Last edited by chenxiaolong (2011-08-30 03:06:17)

Offline

#24 2011-08-30 09:21:28

jiyuu
Member
Registered: 2010-04-13
Posts: 63

Re: Progress on Unity under Arch Linux!

Sorry for the OT but

dhave wrote:

tfyp. itualipw.

What does this mean ?
The best I came with is: "Thank For Your Post. It Tells Us A Lot In P??? Words.".
It feels like it's sarcastic but my english is rusty so it's just a guess.

Now, back on topic:
@chenxiaolong: I'm sure you know that but IIRC virtualbox needs to have the 3D acceleration option enabled to allow composite window manager to work correctly.

Offline

#25 2011-08-30 14:54:45

chenxiaolong
Member
From: /home/chenxiaolong
Registered: 2010-11-03
Posts: 784

Re: Progress on Unity under Arch Linux!

@jiyuu: I turned on the 3D acceleration option and have the graphics memory slider to 128 MB. I'm not sure why Compiz won't run correctly...maybe because it's the latest git version? I'll test again on an actual computer once a find a spare external hard drive I can use. (I like your interpretation of "tfyp. itualipw." big_smile I have no idea what it means either)

EDIT: Just tried installing Arch on an external hard drive and then compiling Unity. Unity still won't show up. No more compiz errors though. I'll try compiling all of the Unity dependencies with the versions used in Ubuntu. Hopefully, that'll make Unity run. I can't think of anything else that would affect Unity.

Last edited by chenxiaolong (2011-08-31 04:09:47)

Offline

Board footer

Powered by FluxBB