LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Awesome 3.4.8 WM on Slackware 13.1 (https://www.linuxquestions.org/questions/slackware-14/awesome-3-4-8-wm-on-slackware-13-1-a-892133/)

CFet 07-17-2011 01:10 AM

Awesome 3.4.8 WM on Slackware 13.1
 
Hi All,

Trying to install AwesomeWM on Slack13.1. I've been following this guide: http://www.slackword.net/?p=93 .

I've installed all dependencies as stated and yet I run into the below issue on executing 'make'. Can someone help me diagnose the problem?

cd /awesome 'make' output:

Code:

bash-4.1$ make
Running cmakeā€¦
-- cat -> /usr/bin/cat
-- ln -> /usr/bin/ln
-- grep -> /usr/bin/grep
-- git -> /usr/bin/git
-- hostname -> /bin/hostname
-- gperf -> /usr/bin/gperf
-- asciidoc -> /usr/bin/asciidoc
-- xmlto -> /usr/bin/xmlto
-- gzip -> /usr/bin/gzip
-- lua -> /usr/bin/lua
-- luadoc -> /usr/local/bin/luadoc
-- convert -> /usr/bin/convert
-- checking for execinfo -- found
-- checking for __builtin_clz -- yes
-- Configuring lib/beautiful.lua
-- Configuring lib/awful/remote.lua
-- Configuring lib/awful/init.lua
-- Configuring lib/awful/mouse/init.lua
-- Configuring lib/awful/mouse/finder.lua
-- Configuring lib/awful/widget/init.lua
-- Configuring lib/awful/widget/tasklist.lua
-- Configuring lib/awful/widget/layout/init.lua
-- Configuring lib/awful/widget/layout/default.lua
-- Configuring lib/awful/widget/layout/vertical.lua
-- Configuring lib/awful/widget/layout/horizontal.lua
-- Configuring lib/awful/widget/taglist.lua
-- Configuring lib/awful/widget/textclock.lua
-- Configuring lib/awful/widget/layoutbox.lua
-- Configuring lib/awful/widget/graph.lua
-- Configuring lib/awful/widget/prompt.lua
-- Configuring lib/awful/widget/common.lua
-- Configuring lib/awful/widget/button.lua
-- Configuring lib/awful/widget/launcher.lua
-- Configuring lib/awful/widget/progressbar.lua
-- Configuring lib/awful/screen.lua
-- Configuring lib/awful/layout/init.lua
-- Configuring lib/awful/layout/suit/init.lua
-- Configuring lib/awful/layout/suit/tile.lua
-- Configuring lib/awful/layout/suit/magnifier.lua
-- Configuring lib/awful/layout/suit/max.lua
-- Configuring lib/awful/layout/suit/spiral.lua
-- Configuring lib/awful/layout/suit/floating.lua
-- Configuring lib/awful/layout/suit/fair.lua
-- Configuring lib/awful/hooks.lua
-- Configuring lib/awful/titlebar.lua
-- Configuring lib/awful/util.lua
-- Configuring lib/awful/placement.lua
-- Configuring lib/awful/dbus.lua
-- Configuring lib/awful/tooltip.lua
-- Configuring lib/awful/prompt.lua
-- Configuring lib/awful/tag.lua
-- Configuring lib/awful/client.lua
-- Configuring lib/awful/startup_notification.lua
-- Configuring lib/awful/autofocus.lua
-- Configuring lib/awful/wibox.lua
-- Configuring lib/awful/key.lua
-- Configuring lib/awful/completion.lua
-- Configuring lib/awful/button.lua
-- Configuring lib/awful/rules.lua
-- Configuring lib/awful/menu.lua
-- Configuring lib/naughty.lua
-- Configuring themes/zenburn//theme.lua
-- Configuring themes/default//theme.lua
-- Configuring themes/sky//theme.lua
-- Configuring config.h
-- Configuring awesomerc.lua
-- Configuring awesome-version-internal.h
-- Configuring awesome.doxygen
-- Configuring done
-- Generating done
-- Build files have been written to: /home/chris/Slackbuilds/Awesome/awesome-3.4.10/.build-XXXXXX-x86_64-slackware-linux-4.4.4
Running make Makefileā€¦
Buildingā€¦
[  3%] Built target generated_sources
[  3%] Building C object CMakeFiles/awesome.dir/awesome.c.o
In file included from /home/chris/Slackbuilds/Awesome/awesome-3.4.10/awesome.c:47:
/home/chris/Slackbuilds/Awesome/awesome-3.4.10/luaa.h:30:21: error: basedir.h: No such file or directory
In file included from /home/chris/Slackbuilds/Awesome/awesome-3.4.10/awesome.c:47:
/home/chris/Slackbuilds/Awesome/awesome-3.4.10/luaa.h:188: error: expected ')' before '*' token
/home/chris/Slackbuilds/Awesome/awesome-3.4.10/luaa.h:189: error: expected ')' before '*' token
/home/chris/Slackbuilds/Awesome/awesome-3.4.10/awesome.c: In function 'main':
/home/chris/Slackbuilds/Awesome/awesome-3.4.10/awesome.c:297: error: 'xdgHandle' undeclared (first use in this function)
/home/chris/Slackbuilds/Awesome/awesome-3.4.10/awesome.c:297: error: (Each undeclared identifier is reported only once
/home/chris/Slackbuilds/Awesome/awesome-3.4.10/awesome.c:297: error: for each function it appears in.)
/home/chris/Slackbuilds/Awesome/awesome-3.4.10/awesome.c:297: error: expected ';' before 'xdg'
/home/chris/Slackbuilds/Awesome/awesome-3.4.10/awesome.c:338: warning: implicit declaration of function 'xdgInitHandle'
/home/chris/Slackbuilds/Awesome/awesome-3.4.10/awesome.c:338: error: 'xdg' undeclared (first use in this function)
/home/chris/Slackbuilds/Awesome/awesome-3.4.10/awesome.c:341: warning: implicit declaration of function 'luaA_init'
/home/chris/Slackbuilds/Awesome/awesome-3.4.10/awesome.c:355: warning: implicit declaration of function 'luaA_parserc'
/home/chris/Slackbuilds/Awesome/awesome-3.4.10/awesome.c:523: warning: implicit declaration of function 'xdgWipeHandle'
make[3]: *** [CMakeFiles/awesome.dir/awesome.c.o] Error 1
make[2]: *** [CMakeFiles/awesome.dir/all] Error 2
make[1]: *** [all] Error 2
make: *** [cmake-build] Error 2

Cheers!
Chris

knudfl 07-17-2011 04:55 AM

Quote:

error: basedir.h: No such file or directory
'basedir.h' is provided by "libxdg-basedir".
Examples, libxdg-basedir.Slackbuild :
http://repository.slacky.eu/slackwar...dir/0.3.0/src/

https://awesome.naquadah.org/wiki/Awesome-3-Slackware
→ → http://pastebin.com/WiUH4DEL


P.S. : There are "Slackbuilds" for awesome too, examples :
http://slackbuilds.org/repository/13.0/desktop/awesome/

http://ftp.cc.uoc.gr/mirrors/linux/v...ome.SlackBuild

..

sycamorex 07-17-2011 07:27 AM

Quote:

Originally Posted by CFet (Post 4417060)
Hi All,

Trying to install AwesomeWM on Slack13.1. I've been following this guide: http://www.slackword.net/?p=93 .

I've installed all dependencies as stated and yet I run into the below issue on executing 'make'. Can someone help me diagnose the problem?

cd /awesome 'make' output:

Code:

bash-4.1$ make
Running cmakeā€¦
-- cat -> /usr/bin/cat
-- ln -> /usr/bin/ln
-- grep -> /usr/bin/grep
-- git -> /usr/bin/git
-- hostname -> /bin/hostname
-- gperf -> /usr/bin/gperf
-- asciidoc -> /usr/bin/asciidoc
-- xmlto -> /usr/bin/xmlto
-- gzip -> /usr/bin/gzip
-- lua -> /usr/bin/lua
-- luadoc -> /usr/local/bin/luadoc
-- convert -> /usr/bin/convert
-- checking for execinfo -- found
-- checking for __builtin_clz -- yes
-- Configuring lib/beautiful.lua
-- Configuring lib/awful/remote.lua
-- Configuring lib/awful/init.lua
-- Configuring lib/awful/mouse/init.lua
-- Configuring lib/awful/mouse/finder.lua
-- Configuring lib/awful/widget/init.lua
-- Configuring lib/awful/widget/tasklist.lua
-- Configuring lib/awful/widget/layout/init.lua
-- Configuring lib/awful/widget/layout/default.lua
-- Configuring lib/awful/widget/layout/vertical.lua
-- Configuring lib/awful/widget/layout/horizontal.lua
-- Configuring lib/awful/widget/taglist.lua
-- Configuring lib/awful/widget/textclock.lua
-- Configuring lib/awful/widget/layoutbox.lua
-- Configuring lib/awful/widget/graph.lua
-- Configuring lib/awful/widget/prompt.lua
-- Configuring lib/awful/widget/common.lua
-- Configuring lib/awful/widget/button.lua
-- Configuring lib/awful/widget/launcher.lua
-- Configuring lib/awful/widget/progressbar.lua
-- Configuring lib/awful/screen.lua
-- Configuring lib/awful/layout/init.lua
-- Configuring lib/awful/layout/suit/init.lua
-- Configuring lib/awful/layout/suit/tile.lua
-- Configuring lib/awful/layout/suit/magnifier.lua
-- Configuring lib/awful/layout/suit/max.lua
-- Configuring lib/awful/layout/suit/spiral.lua
-- Configuring lib/awful/layout/suit/floating.lua
-- Configuring lib/awful/layout/suit/fair.lua
-- Configuring lib/awful/hooks.lua
-- Configuring lib/awful/titlebar.lua
-- Configuring lib/awful/util.lua
-- Configuring lib/awful/placement.lua
-- Configuring lib/awful/dbus.lua
-- Configuring lib/awful/tooltip.lua
-- Configuring lib/awful/prompt.lua
-- Configuring lib/awful/tag.lua
-- Configuring lib/awful/client.lua
-- Configuring lib/awful/startup_notification.lua
-- Configuring lib/awful/autofocus.lua
-- Configuring lib/awful/wibox.lua
-- Configuring lib/awful/key.lua
-- Configuring lib/awful/completion.lua
-- Configuring lib/awful/button.lua
-- Configuring lib/awful/rules.lua
-- Configuring lib/awful/menu.lua
-- Configuring lib/naughty.lua
-- Configuring themes/zenburn//theme.lua
-- Configuring themes/default//theme.lua
-- Configuring themes/sky//theme.lua
-- Configuring config.h
-- Configuring awesomerc.lua
-- Configuring awesome-version-internal.h
-- Configuring awesome.doxygen
-- Configuring done
-- Generating done
-- Build files have been written to: /home/chris/Slackbuilds/Awesome/awesome-3.4.10/.build-XXXXXX-x86_64-slackware-linux-4.4.4
Running make Makefileā€¦
Buildingā€¦
[  3%] Built target generated_sources
[  3%] Building C object CMakeFiles/awesome.dir/awesome.c.o
In file included from /home/chris/Slackbuilds/Awesome/awesome-3.4.10/awesome.c:47:
/home/chris/Slackbuilds/Awesome/awesome-3.4.10/luaa.h:30:21: error: basedir.h: No such file or directory
In file included from /home/chris/Slackbuilds/Awesome/awesome-3.4.10/awesome.c:47:
/home/chris/Slackbuilds/Awesome/awesome-3.4.10/luaa.h:188: error: expected ')' before '*' token
/home/chris/Slackbuilds/Awesome/awesome-3.4.10/luaa.h:189: error: expected ')' before '*' token
/home/chris/Slackbuilds/Awesome/awesome-3.4.10/awesome.c: In function 'main':
/home/chris/Slackbuilds/Awesome/awesome-3.4.10/awesome.c:297: error: 'xdgHandle' undeclared (first use in this function)
/home/chris/Slackbuilds/Awesome/awesome-3.4.10/awesome.c:297: error: (Each undeclared identifier is reported only once
/home/chris/Slackbuilds/Awesome/awesome-3.4.10/awesome.c:297: error: for each function it appears in.)
/home/chris/Slackbuilds/Awesome/awesome-3.4.10/awesome.c:297: error: expected ';' before 'xdg'
/home/chris/Slackbuilds/Awesome/awesome-3.4.10/awesome.c:338: warning: implicit declaration of function 'xdgInitHandle'
/home/chris/Slackbuilds/Awesome/awesome-3.4.10/awesome.c:338: error: 'xdg' undeclared (first use in this function)
/home/chris/Slackbuilds/Awesome/awesome-3.4.10/awesome.c:341: warning: implicit declaration of function 'luaA_init'
/home/chris/Slackbuilds/Awesome/awesome-3.4.10/awesome.c:355: warning: implicit declaration of function 'luaA_parserc'
/home/chris/Slackbuilds/Awesome/awesome-3.4.10/awesome.c:523: warning: implicit declaration of function 'xdgWipeHandle'
make[3]: *** [CMakeFiles/awesome.dir/awesome.c.o] Error 1
make[2]: *** [CMakeFiles/awesome.dir/all] Error 2
make[1]: *** [all] Error 2
make: *** [cmake-build] Error 2

Cheers!
Chris

The tutorial you mentioned asks you to install libxdg-basedir - how did you install it?

What's the output of:
Code:

ls /var/log/packages | grep libxdg
and

Code:

find / -name basedir.h 2>/dev/null

sycamorex 07-17-2011 07:30 AM

Quote:

Originally Posted by knudfl (Post 4417140)
P.S. : There are "Slackbuilds" for awesome too, examples :
http://slackbuilds.org/repository/13.0/desktop/awesome/
..

This installs AwesomeWM 2.x which has different dependencies.

CFet 07-17-2011 12:03 PM

libxdg-basedir was installed by downloading the source and using src2pkg.

Quote:

Originally Posted by sycamorex (Post 4417221)
The tutorial you mentioned asks you to install libxdg-basedir - how did you install it?

What's the output of:
Code:

ls /var/log/packages | grep libxdg
and

Code:

find / -name basedir.h 2>/dev/null

Here's the outputs of the commands above respectively:

Code:

bash-4.1$ ls /var/log/packages | grep libxdg
libxdg-basedir-1.1.1-x86_64-1
libxdg-basedir-latest-x86_64-1

Code:

bash-4.1$ find / -name basedir.h 2>/dev/null
/tmp/libxdg-basedir-1.1.1-src-1/include/basedir.h
/tmp/libxdg-basedir-latest-src-1/include/basedir.h

Thanks!
Chris

sycamorex 07-17-2011 12:09 PM

It seems libxdg did not install correctly. Can you remove both versions using eg. pkgtool program and them we'll try to install it again.

CFet 07-17-2011 01:22 PM

Quote:

Originally Posted by sycamorex (Post 4417396)
It seems libxdg did not install correctly. Can you remove both versions using eg. pkgtool program and them we'll try to install it again.

I removed both versions using pkgtool and re-installed the latest version of libxdg. After installing, I tried to make awesomewm again but with the same results. I ran updatedb and find basedir.h - no such file found. :S

Thanks so far for the help,
Chris

sycamorex 07-17-2011 01:38 PM

How exactly did you install libxdg-basedir?
Can you grab the source and use src2pkg? I've just tried it on a fresh install of slackware in a virtual machine. You should have:
Quote:

/usr/include/basedir.h

CFet 07-17-2011 02:43 PM

Quote:

Originally Posted by sycamorex (Post 4417475)
How exactly did you install libxdg-basedir?
Can you grab the source and use src2pkg? I've just tried it on a fresh install of slackware in a virtual machine. You should have:

Well I removed it again and rebuilt using src2pkg again and for some reason this time it worked? In previous installs I had used su and then installed the pkg from root. This time the only difference I did was use sudo to installpkg. Did this place libxdg-basedir in an unaccessible root folder make could not access?

Thanks for the help sycamorex! Looking good so far, hung up again at 61% but I'll try to troubleshoot it a bit more before coming back to the forums. :)

Cheers,
Chris

sycamorex 07-17-2011 04:17 PM

Glad this has been sorted. Whenever I build any packages I always use 'su -' to make sure I'm in a complete root environment including all the paths, etc.
What is stuck at 61%? Have you done all the steps that were mentioned in the tutorial?

CFet 07-17-2011 05:15 PM

Quote:

Originally Posted by sycamorex (Post 4417561)
Glad this has been sorted. Whenever I build any packages I always use 'su -' to make sure I'm in a complete root environment including all the paths, etc.
What is stuck at 61%? Have you done all the steps that were mentioned in the tutorial?

I have, it seems to be luadoc that is hanging up. Output below:


Code:

[ 61%] Built target generated_icons
lua: /usr/local/bin/luadoc:7: module 'luadoc' not found:
        no field package.preload['luadoc']
        no file './luadoc.lua'
        no file '/usr/share/lua/5.1/luadoc.lua'
        no file '/usr/share/lua/5.1/luadoc/init.lua'
        no file '/usr/lib64/lua/5.1/luadoc.lua'
        no file '/usr/lib64/lua/5.1/luadoc/init.lua'
        no file './luadoc.so'
        no file '/usr/lib64/lua/5.1/luadoc.so'
        no file '/usr/lib64/lua/5.1/loadall.so'
stack traceback:
        [C]: in function 'require'
        /usr/local/bin/luadoc:7: in main chunk
        [C]: ?
make[3]: *** [CMakeFiles/luadoc] Error 1
make[2]: *** [CMakeFiles/luadoc.dir/all] Error 2
make[1]: *** [all] Error 2
make: *** [cmake-build] Error 2

I think the make is looking in the wrong directory. According to this site, I have to revise a config file which I've yet to do. Thanks for the package root tip. :)

Chris

sycamorex 07-17-2011 05:17 PM

How did you install all the dependencies (lua, imlib2, libev)? Perhaps you need to reinstall them (with su -) as you did with libxdg-basedir.

They are available from slackbuilds. The quickest method would be to install them via sbopkg (remember: su -)

MannyNix 07-18-2011 12:42 AM

Hi, I haven't tried the latest AwesomeWM version, but Max's SlackBuilds have been a great help for previous versions, working great for 3.4.9, as for deps, they're all @SlackBuilds.org iirc. I installed libxdg-basedir from Max's slackbuilds too. Good luck!

cycojesus 07-18-2011 02:24 AM

How To
 
I took notes when installing Slackware in a VM at work. This is for installing latest git version of awesome using my own slackbuilds and sbopkg when appropriate:
Code:

* recompile cairo with xcb support
  # cd $SLACKWARE_TREE/source/l/cairo
  edit cairo.SlackBuild to add --enable-xcb \ in the list of ./configure options
  # ./cairo.SlackBuild
  # upgradepkg --reinstall /tmp/cairo*.txz
* upgrade startup-notification
  # cd $SLACKWARE_TREE/source/l/startup-notification
  # wget -c http://www.freedesktop.org/software/startup-notification/releases/startup-notification-0.12.tar.gz
  # gunzip startup-notification-0.12.tar.gz
  # bzip2 startup-notification-0.12.tar
  # VERSION=0.12 ./startup-notification.SlackBuild
  # upgradepkg /tmp/startup-notification-*.txz
* upgrade xcb-util
** get the sources
  # cd $SLACKWARE_TREE/source/x/x11/src/xcb
  # rm xcb-util-*
  # wget -c http://xcb.freedesktop.org/dist/xcb-util-0.3.8.tar.bz2 http://xcb.freedesktop.org/dist/xcb-util-image-0.3.8.tar.bz2 http://xcb.freedesktop.org/dist/xcb-util-renderutil-0.3.8.tar.bz2 http://xcb.freedesktop.org/dist/xcb-util-wm-0.3.8.tar.bz2 http://xcb.freedesktop.org/dist/xcb-util-keysyms-0.3.8.tar.bz2
** build it
  # cd $SLACKWARE_TREE/source/x/x11
  # for i in xcb-util xcb-util-keysyms xcb-util-renderutil xcb-util-wm xcb-util-image; do ./x11.SlackBuild xcb $i; done
** install it
  # upgradepkg --install-new /tmp/x11-build/xcb-util-*.txz
* install libev
  # sbopkg -i libev
* install lua
  # sbopkg -i lua
* install libxdg-basedir
  # cd $SLACKBUILDS
  # mkdir libxdg-basedir
  # cd libxdg-basedir
  # wget -c https://raw.github.com/cycojesus/slackbuilds/master/l/libxdg-basedir/libxdg-basedir.SlackBuild
  # chmod +x libxdg-basedir.SlackBuild
  # ./libxdg-basedir.SlackBuild
  # upgradepkg --install-new /tmp/libxdg-basedir-*.txz
* install oocairo
  # cd $SLACKBUILDS
  # mkdir oocairo
  # cd oocairo
  # wget -c https://raw.github.com/cycojesus/slackbuilds/master/l/oocairo/oocairo.SlackBuild
  # chmod +x oocairo.SlackBuild
  # ./oocairo.SlackBuild
  # upgradepkg --install-new /tmp/oocairo-*.txz
* install oopango
  # cd $SLACKBUILDS
  # mkdir oopango
  # cd oopango
  # wget -c https://raw.github.com/cycojesus/slackbuilds/master/l/oopango/oopango.SlackBuild
  # chmod +x oopango.SlackBuild
  # ./oopango.SlackBuild
  # upgradepkg --install-new /tmp/oopango-*.txz
* install luarocks [OPTIONAL]
  # cd $SLACKBUILDS
  # mkdir luarocks
  # cd luarocks
  # wget -c https://raw.github.com/cycojesus/slackbuilds/master/d/luarocks/luarocks.SlackBuild
  # chmod +x luarocks.SlackBuild
  # ./luarocks.SlackBuild
  # upgradepkg --install-new /tmp/luarocks-*.txz
* install luadoc [OPTIONAL]
  # luarocks install luadoc
* install awesome
  # cd $SLACKBUILDS
  # mkdir awesome
  # cd awesome
  # wget -c https://raw.github.com/cycojesus/slackbuilds/master/xap/awesome/awesome.SlackBuild
  # chmod +x awesome.SlackBuild
  # ./awesome.SlackBuild
  # upgradepkg --install-new /tmp/awesome-*.txz



All times are GMT -5. The time now is 02:33 PM.