LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   libxdg in Slack 14.0 (http://www.linuxquestions.org/questions/slackware-14/libxdg-in-slack-14-0-a-4175482501/)

slack_ 10-28-2013 02:12 PM

libxdg in Slack 14.0
 
Hello fellow Slack users. I was actually just curious about something; Has anyone installed libxdg in Slackware64 14.0? I'm trying to install Awesome.

BroX 10-28-2013 03:21 PM

libxdg-basedir
 
1 Attachment(s)
I used the attached slackbuild script to install libxdg-basedir-1.2.0 (as a dependency of i3wm)

sycamorex 10-28-2013 03:35 PM

Quote:

Originally Posted by BroX (Post 5053900)
I used the attached slackbuild script to install libxdg-basedir-1.2.0 (as a dependency of i3wm)

Are you sure it has ever been i3's dependency?

BroX 10-28-2013 03:52 PM

Quote:

Originally Posted by sycamorex (Post 5053903)
Are you sure it has ever been i3's dependency?

I stand corrected; it was a dependency of dunst (notification daemon).

slack_ 10-28-2013 05:19 PM

Ok, but don't I need the source as well?

BroX 10-28-2013 05:23 PM

Quote:

Originally Posted by slack_ (Post 5053963)
Ok, but don't I need the source as well?

Indeed, source can be had here:
https://github.com/devnev/libxdg-basedir/releases

EDIT: upon inspection of the buildscript I noticed that the source link does not exist any longer. So you have to get it from the github link and save it with the slackbuild in the same directory.

Here's where I got the slackbuild script from (and slack-desc as well as slack-required files, which may be needed for the script):
https://github.com/PhantomX/slackbui...libxdg-basedir

slack_ 10-28-2013 05:45 PM

Seems I'm doing something wrong. I moved both the slackbuild and the source to a directory, chmod the slackbuild, run the slackbuild, receive this:

Code:

--2013-11-28 09:31:37--  http://n.ethz.ch/student/nevillm/download/libxdg-basedir/libxdg-basedir-1.2.0.tar.gz
Resolving n.ethz.ch (n.ethz.ch)... 129.132.202.24
Connecting to n.ethz.ch (n.ethz.ch)|129.132.202.24|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2013-11-28 09:31:38 ERROR 404: Not Found.

So obviously the site is down. My internet connection is fine though.

BroX 10-28-2013 05:56 PM

That's strange.

I have the following:
Code:

# ls
libxdg-basedir-1.2.0.tar.gz
libxdg-basedir.Slackbuild
slack-desc
slack-required

and when I run the script it untar's the source archive:
Code:

# ./libxdg-basedir.Slackbuild
libxdg-basedir-1.2.0/
libxdg-basedir-1.2.0/doxygen.cfg
libxdg-basedir-1.2.0/config.guess
libxdg-basedir-1.2.0/tests/
libxdg-basedir-1.2.0/tests/queryrd.2
... etc ...

Did you get the correct version, i.e. libxdg-basedir-1.2.0.tar.gz ?

slack_ 10-28-2013 06:08 PM

I did get version 1.2.0 yes. It turned out to be a problem with the file name. Once I fixed it, it started to work until I get this error now:

Code:

libxdg-basedir-libxdg-basedir-1.2.0/tests/queryds.5
libxdg-basedir-libxdg-basedir-1.2.0/tests/queryds.6
libxdg-basedir-libxdg-basedir-1.2.0/tests/queryrd.1
libxdg-basedir-libxdg-basedir-1.2.0/tests/queryrd.2
libxdg-basedir-libxdg-basedir-1.2.0/tests/testdump.c
libxdg-basedir-libxdg-basedir-1.2.0/tests/testfind.c
libxdg-basedir-libxdg-basedir-1.2.0/tests/testquery.c
./libxdg-basedir.Slackbuild: line 107: cd: libxdg-basedir-1.2.0: No such file or directory

This is line 107 of the slackbuild:

Code:

cd ${SRCDIR} || exit 1

BroX 10-28-2013 06:21 PM

That's because the archive is not extracted to libxdg-basedir-1.2.0/ but libxdg-basedir-libxdg-basedir-1.2.0/
My mistake for not checking the git archive I linked to.

Get the source file from my ftp server, it should extract fine and will work with the script:
[ url removed ]

Hope this helps.

slack_ 10-28-2013 06:49 PM

Thanks it worked for me and I got it installed successfully. However when I went to compile the awesome packages I get this error:

Code:

-- checking for modules 'glib-2.0;gdk-pixbuf-2.0;cairo;x11;xcb-cursor;xcb-randr;xcb-xtest;xcb-xinerama;xcb-shape;xcb-util>=0.3.8;xcb-keysyms>=0.3.4;xcb-icccm>=0.3.8;cairo-xcb;libstartup-notification-1.0>=0.10;xproto>=7.0.15;libxdg-basedir>=1.0.0'
--  package 'xcb-cursor' not found
CMake Error at /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:279 (message):
  A required package was not found
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindPkgConfig.cmake:333 (_pkg_check_modules_internal)
  awesomeConfig.cmake:134 (pkg_check_modules)
  CMakeLists.txt:15 (include)


CMake Error at awesomeConfig.cmake:153 (message):
Call Stack (most recent call first):
  CMakeLists.txt:15 (include)


-- Configuring incomplete, errors occurred!
make: *** [cmake] Error 1

I guess I missed a package? I read somewhere that I need libstartup-notification as well. I just installed this package:

Code:

startup-notification-0.12-x86_64-1.txz
But I'm still getting the same error when I try and run make, in the awesome directory.

BroX 10-28-2013 06:59 PM

I have no experience with awesome, but this is your clue:
Code:

--  package 'xcb-cursor' not found
which is part of xcb-util-cursor, another Slackware package.

I'd very much recommend you to do a full Slackware install.

slack_ 10-28-2013 10:19 PM

Ok, well perhaps I will reinstall yet again. However, for the sake of this thread humor me for a moment. Because I'm pretty sure at this point that I've finally installed all the packages I need. I've installed the cursor util package. Once again ran make, and I've arrived at yet another error:

Code:

-- Configuring done
-- Generating done
-- Build files have been written to: /root/conf/pkgs/awesome-3.5.2/.build-insanity-x86_64-slackware-linux-4.7.1
Running make Makefileā¦
Buildingā¦
Scanning dependencies of target generated_sources
[  0%] Generating atoms-intern.h
[  1%] Generating atoms-extern.h
[  1%] Built target generated_sources
Scanning dependencies of target awesome
[  1%] Building C object CMakeFiles/awesome.dir/awesome.c.o
In file included from /root/conf/pkgs/awesome-3.5.2/awesome.c:40:0:
/root/conf/pkgs/awesome-3.5.2/objects/client.h:102:5: error: unknown type name 'xcb_icccm_get_wm_protocols_reply_t'
/root/conf/pkgs/awesome-3.5.2/objects/client.h: In function 'client_isfixed':
/root/conf/pkgs/awesome-3.5.2/objects/client.h:215:35: error: 'XCB_ICCCM_SIZE_HINT_P_MAX_SIZE' undeclared (first use in this function)
/root/conf/pkgs/awesome-3.5.2/objects/client.h:215:35: note: each undeclared identifier is reported only once for each function it appears in
/root/conf/pkgs/awesome-3.5.2/objects/client.h:216:38: error: 'XCB_ICCCM_SIZE_HINT_P_MIN_SIZE' undeclared (first use in this function)
/root/conf/pkgs/awesome-3.5.2/awesome.c: In function 'scan':
/root/conf/pkgs/awesome-3.5.2/awesome.c:137:24: error: 'XCB_ICCCM_WM_STATE_WITHDRAWN' undeclared (first use in this function)
/root/conf/pkgs/awesome-3.5.2/awesome.c: In function 'main':
/root/conf/pkgs/awesome-3.5.2/awesome.c:325:5: warning: implicit declaration of function 'xdgInitHandle' [-Wimplicit-function-declaration]
/root/conf/pkgs/awesome-3.5.2/awesome.c:527:5: warning: implicit declaration of function 'xdgWipeHandle' [-Wimplicit-function-declaration]
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

I've tried but I can't really seem to make sense of this particular error.

jprzybylski 10-28-2013 10:33 PM

Quote:

Originally Posted by slack_ (Post 5054129)
Code:

...
[  1%] Building C object CMakeFiles/awesome.dir/awesome.c.o
In file included from /root/conf/pkgs/awesome-3.5.2/awesome.c:40:0:
/root/conf/pkgs/awesome-3.5.2/objects/client.h:102:5: error: unknown type name 'xcb_icccm_get_wm_protocols_reply_t'
/root/conf/pkgs/awesome-3.5.2/objects/client.h: In function 'client_isfixed':
/root/conf/pkgs/awesome-3.5.2/objects/client.h:215:35: error: 'XCB_ICCCM_SIZE_HINT_P_MAX_SIZE' undeclared (first use in this function)
/root/conf/pkgs/awesome-3.5.2/objects/client.h:215:35: note: each undeclared identifier is reported only once for each function it appears in
/root/conf/pkgs/awesome-3.5.2/objects/client.h:216:38: error: 'XCB_ICCCM_SIZE_HINT_P_MIN_SIZE' undeclared (first use in this function)
/root/conf/pkgs/awesome-3.5.2/awesome.c: In function 'scan':
/root/conf/pkgs/awesome-3.5.2/awesome.c:137:24: error: 'XCB_ICCCM_WM_STATE_WITHDRAWN' undeclared (first use in this function)
/root/conf/pkgs/awesome-3.5.2/awesome.c: In function 'main':
/root/conf/pkgs/awesome-3.5.2/awesome.c:325:5: warning: implicit declaration of function 'xdgInitHandle' [-Wimplicit-function-declaration]
/root/conf/pkgs/awesome-3.5.2/awesome.c:527:5: warning: implicit declaration of function 'xdgWipeHandle' [-Wimplicit-function-declaration]
...

I've tried but I can't really seem to make sense of this particular error.

Code:

jprzybyl@fontane:~$ grep xcb-icccm /var/log/packages/*
/var/log/packages/xcb-util-wm-0.3.9-x86_64-1:usr/lib64/pkgconfig/xcb-icccm.pc
/var/log/packages/xcb-util-wm-0.3.9-x86_64-1:usr/lib64/libxcb-icccm.so.4.0.0
/var/log/packages/xcb-util-wm-0.3.9-x86_64-1:usr/lib64/libxcb-icccm.la

Have you installed xcb-util-wm?

slack_ 10-28-2013 10:38 PM

Am I doing something wrong? The most recent packages such as: xcb-cursor, xcb-util-wm, startup-notification, so forth... have just been downloaded from the slackware package website, and immediately installed using installpkg xcb-util-cursor-0.1.0-x86_64-1.txz or whatever.

Because I'm still getting errors. How many packages do I need?


All times are GMT -5. The time now is 08:59 PM.