SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2012-01-05 04:58:34

VastOne
#! Ranger
From: V-Ger
Registered: 2011-04-26
Posts: 10,163
Website

How To - Latest Tint2 Code and New Tint2 Additions

This is a How To to build the latest version of Tint2 and to add 3 patches that do:

launcher_apps_dir-v2.patch

Allows for a single directory instance to pull the .desktop Launchers that Tint2 uses, instead of having multiple launchers in the tint2 config.

freespace.patch

Adds new element called "FreeSpace" and the Function F.  This element has no configuration can be enabled only via panel_items by letter "F" as in panel_items = TLFSB.  It expands the next item in the panel across any free space helping especially with full length panels.

src-task-align.patch

Add task_align[ment] option with possible values: left, center, right. Allows you to align the tasks on the panel. 

To get the latest Tint2 code and these patches, follow this:

Note - If you do not have CMake, the cross-platform open-source build system already, you will need to install it:

sudo apt-get install cmake

Note - You will also need to install the Tint2 dependencies. Install them from terminal this way:

sudo apt-get install libcairo2-dev libpango1.0-dev libglib2.0-dev libimlib2-dev libxinerama-dev libx11-dev libxdamage-dev libxcomposite-dev libxrender-dev libxrandr-dev libgtk2.0-dev

Note - If you do not have svn installed you will need it.  Install it this way from terminal:

sudo apt-get install subversion-tools

Now for the build process:

From Terminal run this:

svn checkout http://tint2.googlecode.com/svn/trunk/ tint2-read-only

Download this file:

Tint2 Patch Files

and extract the three files to ~/tint2-read-only

Next, run each of these in this order from terminal

cd tint2-read-only

patch -p0 < src-task-align.patch

patch -p0 < freespace.patch

patch -p0 < launcher_apps_dir-v2.patch

cmake -DCMAKE_INSTALL_PREFIX=/usr ./
make
sudo make install

Once completed, you will have the latest Tint2 code and the 3 patches installed.

Explanation of each new Component

For the Launchers, you will want to create a directory called .tint2launchers in your home directory and add this to your tint2 config:

launcher_apps_dir = /home/yourusername/.tint2launchers

Then add any launchers you want to use to that directory. 

To sort, you can name the .desktop files:

10-iceweasel.desktop
20-geany.desktop
30-thunar.desktop
40-xchat.desktop
etc etc etc

I would advise grabbing any launchers you want to use from /usr/share/applications and copying them to the .tint2launchers directory.  This way you have easy access to edit or rename them without worrying about root.

You can also build your own .desktop file, here is a sample of one I have created.

05-pithos.desktop

[Desktop Entry]
Type=Application
Name=Pithos
Exec=launch pithos
Icon=/home/vastone/images/music.png
Categories=Audio;AudioVideo;
StartupNotify=true

You will note the use of this

Exec=launch pithos

launch is a bash script file that was created from one of my other How To's.  It's purpose is so when you click on a launcher it iconifies what is already open and will not open multiple instances of the launched application.

Here is how to create and use launch

You will first need to install wmctrl and xdotool, the tools that are used to manage windows (opened apps)

sudo apt-get install wmctrl
sudo apt-get install xdotool

Now create the launch file

gksudo gedit /usr/local/bin/launch

and put the following code in:

#!/bin/bash
# This script acts as a launcher for apps that observes the following rules:
#   1. If the app is not running, then start it up
#   2. If the app is running, don't start a second instance, instead:
#     2a. If the app does not have focus, give it focus
#     2b. If the app has focus, minimize it
# Reference link: http://forum.xfce.org/viewtopic.php?id=6168&p=1

# there has to be at least one parameter, the name of the file to execute
if [ $# -lt 1 ]
then
  echo "Usage: `basename $0` {executable_name parameters}"
  exit 1
fi

BNAME=`basename $1`

# test to see if program is already running
if [ "`wmctrl -lx | tr -s ' ' | cut -d' ' -f1-3 | grep -i $BNAME`" ]; then 
    # means it must already be running
    ACTIV_WIN=$(xdotool getactivewindow getwindowpid)
    LAUNCH_WIN=$(ps -ef | grep "$BNAME" | grep -v grep | tr -s ' ' | cut -d' ' -f2 | head -n 1)

    if [ "$ACTIV_WIN" == "$LAUNCH_WIN" ]; then
        # launched app is currently in focus, so minimize
        xdotool getactivewindow windowminimize
    else
        # launched app is not in focus, so raise and bring to focus
        for win in `wmctrl -lx | tr -s ' ' | cut -d' ' -f1-3 | grep -i $BNAME | cut -d' ' -f1`
        do
            wmctrl -i -a $win
        done
    fi
    exit

else
    # start it up
    $*&
fi

exit 0

Save the file

next make the file executable

sudo chmod +x /usr/local/bin/launch

Freespace is self explanatory and will need the F variable added to panel_items and play with it. A good example is having a full length tint2 config and using this:

panel_items = LFBSC

This would place the launchers on the left and the Systray, Battery and Clock all to the right.

Sort Tasks on a panel is the final patch.  I happen to use a panel just for tasks and this works great to center them the way that I want them.

It adds

task_align = center, left or right (any ONE of these options will work)

in the Tasks section of your tint2 config

The Source for all of these are at the Tint2 Google Code sites.  I do not know the names of the individuals to give them credit, but you can go there and see their code and explanations about the setups.

Launchers

Freespace

Task Alignment

Pictures and sample layouts are in the next post.

Contact me with any questions. 

Good Luck!

UPDATE - 08 February 2012

Using the launchers the same as tasks is now doable now thanks to my friend ToZ.  The  launch file on the this page and instructions has been updated and now uses wmctrl and xdotool and:

This script acts as a launcher for apps that observes the following rules:

1. If the app is not running, then start it up
2. If the app is running, don't start a second instance, instead:
2a. If the app does not have focus, give it focus
2b. If the app has focus, minimize it

Last edited by VastOne (2012-01-17 00:45:12)


VSIDO | Words That Build Or Destroy

We do not run from challenges, they become new innovations within VSIDO!

Offline

Help fund CrunchBang, donate to the project!

#2 2012-01-05 05:52:15

VastOne
#! Ranger
From: V-Ger
Registered: 2011-04-26
Posts: 10,163
Website

Re: How To - Latest Tint2 Code and New Tint2 Additions

My tint2 panel layout with Launchers

This is a link to my .tintlaunchers .desktop files that can be used as reference

This is a link to the icons I use for my tint2 layouts

screenshot-01042012-115355pm.php

tint2rctwo

#---------------------------------------------
# TINT2 CONFIG FILE
#---------------------------------------------

#---------------------------------------------
# BACKGROUND AND BORDER
#---------------------------------------------

# Background definitions
# ID 1 for Panel
rounded = 0
border_width = 0
background_color = #ffffff 0
#border_color = #000000 70

# ID 2
rounded = 1
border_width = 1
background_color = #ffffff 0
#border_color = #D8D8D8 29

# ID 3
rounded = 1
border_width = 1
background_color = #ffffff 0
#border_color = #121212 89

# ID 4
rounded = 1
border_width = 1
background_color = #ffffff 0
#border_color = #ED2323 60

# ID 5
rounded = 0
border_width = 1
background_color = #ffffff 0
#border_color = #000000 0

# ID 6
rounded = 6
border_width = 0
background_color = #ffffff 0
#border_color = #D8D8D8 0

# ID 7
rounded = 3
border_width = 0
background_color = #ffffff 0
#border_color = #222222 89

# ID 8
rounded = 1
border_width = 1
background_color = #ffffff 0
#border_color = #888888 200

# ID 9
rounded = 6
border_width = 0
background_color = #ffffff 0
#border_color = #888888 20

# ID 10
rounded = 0
border_width = 0
background_color = #ffffff 0
#border_color = #888888 20


#---------------------------------------------
# PANEL
#---------------------------------------------
# wm_menu = 1
panel_items = L
panel_monitor = all
panel_position = bottom left
panel_size = 530 70
panel_margin = 0 0
panel_padding = 10 0
font_shadow = 0
panel_background_id = 0
panel_layer = top

#---------------------------------------------
# TASKBAR
#---------------------------------------------
taskbar_mode = single_desktop
taskbar_padding = 0 0 0
taskbar_background_id = 1

#---------------------------------------------
# TASKS
#---------------------------------------------
#task_icon = 1
#task_text = 0
#task_width = 40
#task_centered = 1
#task_padding = 2 2
#task_font = sans 7
#task_font_color = #ffffff 70
#task_active_font_color = #ffffff 85
#task_background_id = 3
#task_active_background_id = 2

#---------------------------------------------
# SYSTRAYBAR
#---------------------------------------------
#systray_padding = 4 2 3
#systray_background_id = 1

#---------------------------------------------
# CLOCK
#---------------------------------------------
#time1_format = %H:%M
#time1_font = sans 8
#time2_format = %A %d %B
#time2_font = sans 6
#clock_font_color = #ffffff 76
#clock_padding = 4 4
#clock_background_id = 1

#---------------------------------------------
# BATTERY
#---------------------------------------------
#battery = 0
#battery_low_status = 7
#battery_low_cmd = notify-send "battery low"
#bat1_font = sans 8
#bat2_font = sans 6
#battery_font_color = #ffffff 76
#battery_padding = 1 0
#battery_background_id = 0

# Launchers
launcher_icon_theme = LinuxLex-8
launcher_padding = 5 0 10
launcher_background_id = 9
launcher_icon_size = 70
launcher_apps_dir = /home/vastone/.tint2launchers/


#---------------------------------------------
# MOUSE ACTION ON TASK
#---------------------------------------------
mouse_middle = none
mouse_right = none
mouse_scroll_up = toggle
mouse_scroll_down = iconify


# Panel Autohide
autohide = 1
autohide_show_timeout = 0.0
autohide_hide_timeout = 0.0
autohide_height = 30
strut_policy = none

My Tint2 panel for Tasks

screenshot-01042012-114634pm.php

tint2rctasks

#---------------------------------------------
# TINT2 CONFIG FILE
#---------------------------------------------

#---------------------------------------------
# BACKGROUND AND BORDER
#---------------------------------------------

rounded = 0
border_width = 1
background_color = #1A1A1A 0
# border_color = #000000 100

rounded = 0
border_width = 0
background_color = #ffffff 20
# border_color = #ffffff 20

rounded = 0
border_width = 0
background_color = #ffffff 0
# border_color = #ffffff 0

#---------------------------------------------
# PANEL
#---------------------------------------------
# wm_menu = 1
panel_items = T
panel_monitor = all
panel_position = bottom center
panel_size = 700 75
panel_margin = 0 0
panel_padding = 20 0
font_shadow = 0
panel_background_id = 0
panel_layer = top

#---------------------------------------------
# TASKBAR
#---------------------------------------------
taskbar_mode = single_desktop
taskbar_padding = 0 0 8
taskbar_background_id = 1

#---------------------------------------------
# TASKS
#---------------------------------------------
urgent_nb_of_blink = 8
task_icon = 1
task_text = 0
task_width = 75
task_align = center
task_centered = 1
task_padding = 0 0
task_font = sans 9
task_font_color = #ffffff 70
task_active_font_color = #ffffff 85
task_background_id = 3
# task_icon_asb = 100
task_active_background_id = 3

#---------------------------------------------
# SYSTRAYBAR
#---------------------------------------------
systray = 1
systray_padding = 18 0 0
systray_sort = ascending
systray_background_id = 0
systray_icon_size = 45

# Launchers
launcher_icon_theme = LinuxLex-8
launcher_padding = 0 0 0
launcher_background_id = 9
launcher_icon_size = 65
launcher_apps_dir = /home/vastone/.tint2launchers/
# launcher_item_app = /home/vastone/bin/iceweasel.desktop
# launcher_item_app = /home/vastone/bin/term.desktop
# launcher_item_app = /home/vastone/bin/pcmanfm.desktop
# launcher_item_app = /home/vastone/bin/xfce4-menu.desktop
# launcher_item_app = /home/vastone/bin/gmusicbrowser.desktop
# launcher_item_app = /home/vastone/bin/pithos.desktop
# launcher_item_app = /home/vastone/bin/xchat.desktop

#---------------------------------------------
# CLOCK
#---------------------------------------------
#time1_format = %H:%M
#time1_font = sans 8
#time2_format = %A %d %B
#time2_font = sans 6
#clock_font_color = #ffffff 76
#clock_padding = 4 4
#clock_background_id = 1

#---------------------------------------------
# BATTERY
#---------------------------------------------
#battery = 0
#battery_low_status = 7
#battery_low_cmd = notify-send "battery low"
#bat1_font = sans 8
#bat2_font = sans 6
#battery_font_color = #ffffff 76
#battery_padding = 1 0
#battery_background_id = 0


#---------------------------------------------
# MOUSE ACTION ON TASK
#---------------------------------------------
mouse_middle = none
mouse_right = none
mouse_scroll_up = toggle
mouse_scroll_down = iconify


# Panel Autohide
autohide = 1
autohide_show_timeout = 0.0
autohide_hide_timeout = 0.0
autohide_height = 30
strut_policy = none

My tint2 panel

tint2rc
screenshot-01042012-114842pm.php

#---------------------------------------------
# TINT2 CONFIG FILE
#---------------------------------------------

#---------------------------------------------
# BACKGROUND AND BORDER
#---------------------------------------------

rounded = 0
border_width = 1
background_color = #1A1A1A 0
# border_color = #000000 100

rounded = 0
border_width = 0
background_color = #ffffff 20
# border_color = #ffffff 20

rounded = 0
border_width = 0
background_color = #ffffff 0
# border_color = #ffffff 0

#---------------------------------------------
# PANEL
#---------------------------------------------
# wm_menu = 1
panel_items = TSL
panel_monitor = all
panel_position = top right
panel_size = 375 36
panel_margin = 0 0
panel_padding = 0 0
font_shadow = 0
panel_background_id = 0
panel_layer = top

#---------------------------------------------
# TASKBAR
#---------------------------------------------
taskbar_mode = single_desktop
taskbar_padding = 0 0 0
taskbar_background_id = 1

#---------------------------------------------
# TASKS
#---------------------------------------------
urgent_nb_of_blink = 8
task_icon = 1
task_text = 0
task_width = 35
task_centered = 1
task_padding = 2 2
task_font = sans 9
task_font_color = #ffffff 70
task_active_font_color = #ffffff 85
task_background_id = 3
# task_icon_asb = 100
task_active_background_id = 3

#---------------------------------------------
# SYSTRAYBAR
#---------------------------------------------
systray = 1
systray_padding = 18 2 3
systray_sort = ascending
systray_background_id = 0
systray_icon_size = 0

# Launchers
launcher_icon_theme = LinuxLex-8
launcher_padding = 2 2 2
launcher_background_id = 9
# launcher_icon_size = 32
# launcher_item_app = /home/vastone/bin/menu.desktop
# launcher_item_app = /home/vastone/bin/adesk-menu2.desktop
launcher_item_app = /home/vastone/bin/xfce4-menu.desktop
launcher_item_app = /home/vastone/bin/xfce4-session-logout.desktop
#---------------------------------------------
# CLOCK
#---------------------------------------------
#time1_format = %H:%M
#time1_font = sans 8
#time2_format = %A %d %B
#time2_font = sans 6
#clock_font_color = #ffffff 76
#clock_padding = 4 4
#clock_background_id = 1

#---------------------------------------------
# BATTERY
#---------------------------------------------
#battery = 0
#battery_low_status = 7
#battery_low_cmd = notify-send "battery low"
#bat1_font = sans 8
#bat2_font = sans 6
#battery_font_color = #ffffff 76
#battery_padding = 1 0
#battery_background_id = 0


#---------------------------------------------
# MOUSE ACTION ON TASK
#---------------------------------------------
mouse_middle = none
mouse_right = none
mouse_scroll_up = toggle
mouse_scroll_down = iconify


# Panel Autohide
autohide = 0
autohide_show_timeout = 0.0
autohide_hide_timeout = 0.0
autohide_height = 3
strut_policy = none

Last edited by VastOne (2012-01-10 08:12:11)


VSIDO | Words That Build Or Destroy

We do not run from challenges, they become new innovations within VSIDO!

Offline

#3 2012-01-05 16:01:39

falldown
#! Samurai
Registered: 2011-09-01
Posts: 1,726

Re: How To - Latest Tint2 Code and New Tint2 Additions

Kudos VastOne!! Thanks for the link! I will build my Tint2 later today. Love the detail of your How-tos..

Offline

#4 2012-01-05 17:58:14

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 12,125
Website

Re: How To - Latest Tint2 Code and New Tint2 Additions

And I just subscribed and need time to check this out.  big_smile

Back in a while to read.


To #! or not to #!?  That is the question! | #! Forum Moderator
#! Conky = 16 Threads & the Conky Archives | Conky PitStop | OTHCG'er
StartPage -  protect your privacy | IcyBlack | LinuxBBQ

Offline

#5 2012-01-05 18:55:47

VastOne
#! Ranger
From: V-Ger
Registered: 2011-04-26
Posts: 10,163
Website

Re: How To - Latest Tint2 Code and New Tint2 Additions

Edit - Added the launcher bash creation section to keep all components in this How To


VSIDO | Words That Build Or Destroy

We do not run from challenges, they become new innovations within VSIDO!

Offline

#6 2012-01-06 01:30:23

sunfizz98
Carbonated Orange Juice
From: su terminal
Registered: 2011-05-12
Posts: 1,876
Website

Re: How To - Latest Tint2 Code and New Tint2 Additions

My goodness, this is going to take me awhile to absorb it all in. smile

Offline

#7 2012-01-16 23:28:14

kri5
#! Die Hard
From: L.G.C. UK
Registered: 2011-11-10
Posts: 568

Re: How To - Latest Tint2 Code and New Tint2 Additions

I cant get past the following part of the how to:

From Terminal run this:

svn checkout http://tint2.googlecode.com/svn/trunk/ tint2-read-only

All i get is the error message:

svn: command not found

Am i doing something wrong?


#! Waldorf - 64bit - Xfce

Offline

#8 2012-01-16 23:30:53

VastOne
#! Ranger
From: V-Ger
Registered: 2011-04-26
Posts: 10,163
Website

Re: How To - Latest Tint2 Code and New Tint2 Additions

kri5 wrote:

I cant get past the following part of the how to:

From Terminal run this:

svn checkout http://tint2.googlecode.com/svn/trunk/ tint2-read-only

All i get is the error message:

svn: command not found

Am i doing something wrong?

You are doing nothing wrong, you just need to install the svn tools

sudo apt-get install subversion-tools

Then run it again...


VSIDO | Words That Build Or Destroy

We do not run from challenges, they become new innovations within VSIDO!

Offline

#9 2012-01-17 00:09:27

kri5
#! Die Hard
From: L.G.C. UK
Registered: 2011-11-10
Posts: 568

Re: How To - Latest Tint2 Code and New Tint2 Additions

Thanks for that VastOne, worked that time.
Going through the rest of process now, not sure I'll have time to do it all tonight though.


#! Waldorf - 64bit - Xfce

Offline

#10 2012-01-17 00:20:10

kri5
#! Die Hard
From: L.G.C. UK
Registered: 2011-11-10
Posts: 568

Re: How To - Latest Tint2 Code and New Tint2 Additions

After putting in the following command:

cmake -DCMAKE_INSTALL_PREFIX=/usr ./

I get the following:

CMake Error at CMakeLists.txt:16 (message):
  Not all dependencies fulfilled.  See
  http://code.google.com/p/tint2/wiki/Install


-- Configuring incomplete, errors occurred!
kris@kris-inspiron-1720:~/tint2-read-only$ make
make: *** No targets specified and no makefile found.  Stop.
kris@kris-inspiron-1720:~/tint2-read-only$ cmake -DCMAKE_INSTALL_PREFIX=/usr ./
-- checking for modules 'x11;xcomposite;xdamage;xinerama;xrender;xrandr>=1.3'
--   package 'xinerama' not found
--   package 'xrandr>=1.3' not found
CMake Error at /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:266 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:320 (_pkg_check_modules_internal)
  CMakeLists.txt:6 (pkg_check_modules)


-- checking for module 'pangocairo'
--   package 'pangocairo' not found
CMake Error at /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:266 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:320 (_pkg_check_modules_internal)
  CMakeLists.txt:7 (pkg_check_modules)


-- checking for module 'pango'
--   package 'pango' not found
CMake Error at /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:266 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:320 (_pkg_check_modules_internal)
  CMakeLists.txt:8 (pkg_check_modules)


-- checking for module 'cairo'
--   package 'cairo' not found
CMake Error at /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:266 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:320 (_pkg_check_modules_internal)
  CMakeLists.txt:9 (pkg_check_modules)


-- checking for module 'glib-2.0'
--   package 'glib-2.0' not found
CMake Error at /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:266 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:320 (_pkg_check_modules_internal)
  CMakeLists.txt:10 (pkg_check_modules)


-- checking for module 'gobject-2.0'
--   package 'gobject-2.0' not found
CMake Error at /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:266 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:320 (_pkg_check_modules_internal)
  CMakeLists.txt:11 (pkg_check_modules)


-- checking for module 'imlib2>=1.4.2'
--   package 'imlib2>=1.4.2' not found
CMake Error at /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:266 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:320 (_pkg_check_modules_internal)
  CMakeLists.txt:12 (pkg_check_modules)


CMake Error at CMakeLists.txt:16 (message):
  Not all dependencies fulfilled.  See
  http://code.google.com/p/tint2/wiki/Install

Further advice greatly appreciated, however it's time for me to hit the sack.  I hope to continue with this tomorrow.

Last edited by kri5 (2012-01-17 00:22:26)


#! Waldorf - 64bit - Xfce

Offline

#11 2012-01-17 00:24:09

VastOne
#! Ranger
From: V-Ger
Registered: 2011-04-26
Posts: 10,163
Website

Re: How To - Latest Tint2 Code and New Tint2 Additions

From this page where you saw -
Not all dependencies fulfilled.  See


http://code.google.com/p/tint2/wiki/Install

sudo apt-get install libcairo2-dev libpango1.0-dev libglib2.0-dev libimlib2-dev libxinerama-dev libx11-dev libxdamage-dev libxcomposite-dev libxrender-dev libxrandr-dev

Run that and you should be good to go


VSIDO | Words That Build Or Destroy

We do not run from challenges, they become new innovations within VSIDO!

Offline

#12 2012-01-17 00:25:12

VastOne
#! Ranger
From: V-Ger
Registered: 2011-04-26
Posts: 10,163
Website

Re: How To - Latest Tint2 Code and New Tint2 Additions

^ I will put that in the beginning How To as a step to fulfill

Thanks for pointing it out...


VSIDO | Words That Build Or Destroy

We do not run from challenges, they become new innovations within VSIDO!

Offline

#13 2012-01-17 00:32:56

VastOne
#! Ranger
From: V-Ger
Registered: 2011-04-26
Posts: 10,163
Website

Re: How To - Latest Tint2 Code and New Tint2 Additions

EDIT - Added the svn and tint2 dependencies to the How To

Thanks to kri5!


VSIDO | Words That Build Or Destroy

We do not run from challenges, they become new innovations within VSIDO!

Offline

#14 2012-01-17 22:02:03

kri5
#! Die Hard
From: L.G.C. UK
Registered: 2011-11-10
Posts: 568

Re: How To - Latest Tint2 Code and New Tint2 Additions

I still couldn'tget past:

cmake -DCMAKE_INSTALL_PREFIX=/usr ./

I tried adding the dependencies as VastOne stated:

From this page where you saw -
Not all dependencies fulfilled.  See

http://code.google.com/p/tint2/wiki/Install

sudo apt-get install libcairo2-dev libpango1.0-dev libglib2.0-dev libimlib2-dev libxinerama-dev libx11-dev libxdamage-dev libxcomposite-dev libxrender-dev libxrandr-dev

Run that and you should be good to go

I took a chance and enabled the SID repository, and tired again and it seemed to work.
Is this another requirement, that the SID repository has to be added to the sources list?


#! Waldorf - 64bit - Xfce

Offline

#15 2012-01-17 22:05:25

VastOne
#! Ranger
From: V-Ger
Registered: 2011-04-26
Posts: 10,163
Website

Re: How To - Latest Tint2 Code and New Tint2 Additions

What was the error messages that caused it to fail?

And no, according to the Tint2 page, those are Debian requirements.. for all levels of Debian


VSIDO | Words That Build Or Destroy

We do not run from challenges, they become new innovations within VSIDO!

Offline

#16 2012-01-17 22:09:27

kri5
#! Die Hard
From: L.G.C. UK
Registered: 2011-11-10
Posts: 568

Re: How To - Latest Tint2 Code and New Tint2 Additions

NO, still no joy after installing dependancies and running:

cmake -DCMAKE_INSTALL_PREFIX=/usr ./

I get the following error:

checking for module 'gtk+-x11-2.0'
--   package 'gtk+-x11-2.0' not found
CMake Error at /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:266 (message):
  A required package was not found

#! Waldorf - 64bit - Xfce

Offline

#17 2012-01-17 22:18:20

VastOne
#! Ranger
From: V-Ger
Registered: 2011-04-26
Posts: 10,163
Website

Re: How To - Latest Tint2 Code and New Tint2 Additions

Try building it this way

cd tint2-read-only

mkdir build

cd build

cmake -DCMAKE_INSTALL_PREFIX=/usr ../

make

sudo make install

Let me know please...


VSIDO | Words That Build Or Destroy

We do not run from challenges, they become new innovations within VSIDO!

Offline

#18 2012-01-17 22:21:08

VastOne
#! Ranger
From: V-Ger
Registered: 2011-04-26
Posts: 10,163
Website

Re: How To - Latest Tint2 Code and New Tint2 Additions

kri5 wrote:

NO, still no joy after installing dependancies and running:

cmake -DCMAKE_INSTALL_PREFIX=/usr ./

I get the following error:

checking for module 'gtk+-x11-2.0'
--   package 'gtk+-x11-2.0' not found
CMake Error at /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:266 (message):
  A required package was not found

Install this

sudo apt-get install libgtk2.0-dev

This should resolve it and I will add it to the dependencies


VSIDO | Words That Build Or Destroy

We do not run from challenges, they become new innovations within VSIDO!

Offline

#19 2012-01-17 22:21:51

kri5
#! Die Hard
From: L.G.C. UK
Registered: 2011-11-10
Posts: 568

Re: How To - Latest Tint2 Code and New Tint2 Additions

VastOne@ I get the following error that way:

kris@kris-inspiron-1720:~$ cd tint2-read-only
kris@kris-inspiron-1720:~/tint2-read-only$ mkdir build
kris@kris-inspiron-1720:~/tint2-read-only$ cd build
kris@kris-inspiron-1720:~/tint2-read-only/build$ cmake -DCMAKE_INSTALL_PREFIX=/usr ./
CMake Error: The source directory "/home/kris/tint2-read-only/build" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
kris@kris-inspiron-1720:~/tint2-read-only/build$ 

#! Waldorf - 64bit - Xfce

Offline

#20 2012-01-17 22:24:02

VastOne
#! Ranger
From: V-Ger
Registered: 2011-04-26
Posts: 10,163
Website

Re: How To - Latest Tint2 Code and New Tint2 Additions

Once you install that dependency, try the build this way again

cd tint2-read-only
cmake -DCMAKE_INSTALL_PREFIX=/usr ./
make
sudo make install

VSIDO | Words That Build Or Destroy

We do not run from challenges, they become new innovations within VSIDO!

Offline

#21 2012-01-17 22:54:15

kri5
#! Die Hard
From: L.G.C. UK
Registered: 2011-11-10
Posts: 568

Re: How To - Latest Tint2 Code and New Tint2 Additions

OK, i shall see if i can find 'gtk+-x11-2.0', couldn't find it earlier but i only had a quick look.

Shall post back here either way, until then thanks for the support!


#! Waldorf - 64bit - Xfce

Offline

#22 2012-01-17 22:55:22

VastOne
#! Ranger
From: V-Ger
Registered: 2011-04-26
Posts: 10,163
Website

Re: How To - Latest Tint2 Code and New Tint2 Additions

kri5 wrote:

OK, i shall see if i can find 'gtk+-x11-2.0', couldn't find it earlier but i only had a quick look.

Shall post back here either way, until then thanks for the support!


I found it...

sudo apt-get install libgtk2.0-dev

Install that and then run

cd tint2-read-only
cmake -DCMAKE_INSTALL_PREFIX=/usr ./
make
sudo make install

VSIDO | Words That Build Or Destroy

We do not run from challenges, they become new innovations within VSIDO!

Offline

#23 2012-01-17 23:16:43

kri5
#! Die Hard
From: L.G.C. UK
Registered: 2011-11-10
Posts: 568

Re: How To - Latest Tint2 Code and New Tint2 Additions

OK installed 'libgtk2.0-dev' from synaptic (i had to enable SID again) then ran:

cd tint2-read-only
cmake -DCMAKE_INSTALL_PREFIX=/usr ./
make
sudo make install

and it appears to have worked, at least there were no error messages anyway.

Thanks for the help again, i shall probably complete the rest of the setup tomorrow before my wife forgets what i look like lol.

Last edited by kri5 (2012-01-17 23:19:24)


#! Waldorf - 64bit - Xfce

Offline

#24 2012-01-17 23:20:05

VastOne
#! Ranger
From: V-Ger
Registered: 2011-04-26
Posts: 10,163
Website

Re: How To - Latest Tint2 Code and New Tint2 Additions

We may need to check your sources...  Package libgtk2.0-dev goes all the way back to Lenny sources...  The Old Stable

Here is the link to the current Stable page that shows it is there in Squeeze

tint -v 

should tell you

tint2 version 646M

Sorry that you had so many issues and thanks for helping me troubleshoot this for others...


VSIDO | Words That Build Or Destroy

We do not run from challenges, they become new innovations within VSIDO!

Offline

Be excellent to each other!

#25 2012-01-18 01:56:46

VastOne
#! Ranger
From: V-Ger
Registered: 2011-04-26
Posts: 10,163
Website

Re: How To - Latest Tint2 Code and New Tint2 Additions

kri5 wrote:

OK installed 'libgtk2.0-dev' from synaptic (i had to enable SID again) then ran:

cd tint2-read-only
cmake -DCMAKE_INSTALL_PREFIX=/usr ./
make
sudo make install

and it appears to have worked, at least there were no error messages anyway.

Thanks for the help again, i shall probably complete the rest of the setup tomorrow before my wife forgets what i look like lol.

One must never let this happen!!!  Been a pleasure!


VSIDO | Words That Build Or Destroy

We do not run from challenges, they become new innovations within VSIDO!

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo