LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-05-2014, 05:32 AM   #1
qweyu
LQ Newbie
 
Registered: Jan 2012
Location: Kampala - Uganda
Distribution: Slackware 14.1
Posts: 21

Rep: Reputation: Disabled
can't compile awesome on Slackware 14.0


Hi there,

i have an issue here am using slackware 14.0 and am trying to install this desktop manager called "awesome" 've been trying this all week with great difficulty, got all dependencies and at the point i thought i wuz going to make it, i gets this error, don't wanna give up now juss want someone to figure out what the compiler wants this time round.

Quote:
/tmp/custom_pkgs/awesome-3.2/widgets/textbox.c: In function 'luaA_textbox_index':
/tmp/custom_pkgs/awesome-3.2/widgets/textbox.c:217:11: warning: case value '19' not in enumerated type 'PangoWrapMode' [-Wswitch]
/tmp/custom_pkgs/awesome-3.2/widgets/textbox.c:220:11: warning: case value '108' not in enumerated type 'PangoWrapMode' [-Wswitch]
/tmp/custom_pkgs/awesome-3.2/widgets/textbox.c:231:11: warning: case value '61' not in enumerated type 'PangoEllipsizeMode' [-Wswitch]
/tmp/custom_pkgs/awesome-3.2/widgets/textbox.c:228:11: warning: case value '92' not in enumerated type 'PangoEllipsizeMode' [-Wswitch]
[ 96%] Building C object CMakeFiles/awesome.dir/widgets/imagebox.c.o
[ 98%] Building C object CMakeFiles/awesome.dir/common/tokenize.c.o
Linking C executable awesome
/usr/lib/gcc/i486-slackware-linux/4.7.1/../../../../i486-slackware-linux/bin/ld: CMakeFiles/awesome.dir/key.c.o: undefined reference to symbol 'XStringToKeysym'
/usr/lib/gcc/i486-slackware-linux/4.7.1/../../../../i486-slackware-linux/bin/ld: note: 'XStringToKeysym' is defined in DSO /usr/lib/libX11.so.6 so try adding it to the linker command line
/usr/lib/libX11.so.6: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[2]: *** [awesome] Error 1
make[1]: *** [CMakeFiles/awesome.dir/all] Error 2
make: *** [all] Error 2
 
Old 04-05-2014, 07:00 AM   #2
gengisdave
Member
 
Registered: Dec 2013
Location: Turin, Italy
Distribution: slackware
Posts: 328

Rep: Reputation: 74
you are not linking with x11 libraries, because it fails on executable, run cmake with
Code:
CMAKE_EXE_LINKER_FLAGS="-lX11"
then compile again
 
1 members found this post helpful.
Old 04-05-2014, 07:12 AM   #3
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
Are you using this SlackBuild?

Last edited by brianL; 04-05-2014 at 07:13 AM.
 
1 members found this post helpful.
Old 04-05-2014, 09:59 AM   #4
qweyu
LQ Newbie
 
Registered: Jan 2012
Location: Kampala - Uganda
Distribution: Slackware 14.1
Posts: 21

Original Poster
Rep: Reputation: Disabled
thanks BrianL

if i use that links i still get an error this is the output


Quote:
The C compiler identification is GNU 4.7.1
-- The CXX compiler identification is GNU 4.7.1
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check if the system is big endian
-- Searching 16 bit integer
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of unsigned short
-- Check size of unsigned short - done
-- Using unsigned short
-- Check if the system is big endian - little endian
-- cat -> /usr/bin/cat
-- ln -> /usr/bin/ln
-- grep -> /usr/bin/grep
-- git -> /usr/bin/git
-- hostname -> /bin/hostname
-- asciidoc -> /usr/bin/asciidoc
-- xmlto -> /usr/bin/xmlto
-- gzip -> /usr/bin/gzip
-- lua -> /usr/bin/lua
-- ldoc.lua not found.
-- convert -> /usr/bin/convert
-- Found Doxygen: /usr/bin/doxygen (found version "1.8.1.1")
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.25")
-- Found Lua51: /usr/lib/liblua.so;/usr/lib/libm.so (found version "5.1.5")
-- Not generating API documentation. Missing: ldoc
-- checking for module 'xcb>=1.6'
-- found xcb, version 1.8.1
-- checking for modules 'glib-2.0;gdk-pixbuf-2.0;cairo;x11;x11-xcb;xcursor;xcb-randr;xcb-xtest;xcb-xinerama;xcb-shape;xcb-util>=0.3.8;xcb-keysyms>=0.3.4;xcb-icccm>=0.3.8;xcb-image>=0.3.0;cairo-xcb;libstartup-notification-1.0>=0.10;xproto>=7.0.15;libxdg-basedir>=1.0.0'
-- package 'xcb-keysyms>=0.3.4' not found
-- package 'xcb-icccm>=0.3.8' 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:131 (pkg_check_modules)
CMakeLists.txt:15 (include)


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


-- Configuring incomplete, errors occurred!
root@slacker256:~/Build/awesome#
but anyways am still aat it i won't give up just yet.
 
Old 04-05-2014, 10:20 AM   #5
gengisdave
Member
 
Registered: Dec 2013
Location: Turin, Italy
Distribution: slackware
Posts: 328

Rep: Reputation: 74
Code:
-- package 'xcb-keysyms>=0.3.4' not found
-- package 'xcb-icccm>=0.3.8' not found
 
1 members found this post helpful.
Old 04-08-2014, 12:26 AM   #6
qweyu
LQ Newbie
 
Registered: Jan 2012
Location: Kampala - Uganda
Distribution: Slackware 14.1
Posts: 21

Original Poster
Rep: Reputation: Disabled
Finally got awesome compiled

Thanks guys,

You guys are the best, I finally got this thing working as you can see the .tgz has finally been created


Quote:
Slackware package /tmp/awesome-3.5.2-i486-1_SBo.tgz created.
am gonna have to keep it safely for now thanks again.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Slackware is awesome szboardstretcher General 10 08-25-2013 06:41 PM
Awesome WM Installation on Slackware 13.37? haziz Slackware 5 06-07-2012 10:47 AM
slackware + awesome problem jsam Slackware 1 02-26-2012 10:32 PM
Awesome 3.4.8 WM on Slackware 13.1 CFet Slackware 13 07-18-2011 02:24 AM
Awesome WM compile error -- shape.h botnet Slackware 16 06-01-2009 03:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration