Compiling Cairo-dock errors on GTK dependency

时间:2016-02-12 19:51:11

标签: linux gtk redhat cairo

I've Redhat 7.2 running Cinnamon, and hate the docks provided, how come I can't resize the area a widgit is allocated? All apps are jammed into half the dock.

Drives me to compile cairo-dock from source as it isn't an ibm redhat blessed package.

cmake .. -DCMAKE_INSTALL_PREFIX=/usr
...
-- checking for module 'wayland-client>=1.0.0'
--   package 'wayland-client>=1.0.0' not found
-- checking for module 'gtk+-3.0>=3.4.0'
--   package 'gtk+-3.0>=3.4.0' not found

so I find gtk version is 3.14.13-16.el7 using yum list installed "gtk*"

I downloaded gtk 3.4.4 and compiled it and follow the INSTALL provided, sudo make install, which completes with no errors

rerunning cmake gives me the same error, so I'm wondering if I had to remove 3.14? I'm not really sure how best to proceed and thought it best to get some advice. I'm not really in the mood to break things. Thanks for your time and consideration.

1 个答案:

答案 0 :(得分:1)

Calvin,我也是IBM员工,并从IBM的图像中安装了RHEL7.2。

我可以成功下载源代码并安装Cairo Docker和各自的插件。 我按照本页的说明操作: Glx-Dock - Generic:Compilation

首先,从官方IBM存储库安装以下所有依赖项。

我对Fedora依赖项使用了相同的包名称,而RHEL可能不存在某些包名称。因此,通过从官方存储库中获取依赖项,某些插件无法使用 - 但是Cairo Docker可以正常工作。

sudo yum install cmake make pkgconfig gcc gcc-c++ gettext glib2-devel\
cairo-devel librsvg2-devel dbus-glib-devel libxml2-devel libXrender-devel\
mesa-libGL-devel mesa-libGLU-devel pango-devel libXxf86vm-devel\
libXtst-devel libXrandr-devel libX11-devel libcurl-devel gtk3-devel\
vte3-devel lm_sensors-devel libxklavier-devel libexif-devel\
libetpan-devel gnome-menus-devel alsa-lib-devel libical-devel\
upower-devel libzeitgeist-devel

解开包并使用其中描述的命令构建,除了您需要在主要和插件构建中强制使用lib64:

cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DFORCE_LIB64=yes