Conky can't find lua, cairo, or imlib2.
I asked this question recently already in the software forum, but no one seemed to be able to point me in the right direction. So I'm sorry if I'm breaking a forum rule, but this one really has me stumped! Of course, I could build conky without lua support, but I'm not ready to throw in the towel and admit defeat. There must be a way!
So basically, for the past few days I've been trying to build conky with lua support, also cairo and imlib2. All of these packages (lua, cairo, imlib2) are installed on my system (Slackware 14.0 x86_64). I however, cannot install tolua++ nor can I get conky to build with lua support. When I try to build either tolua++ or conky with LUA="yes" I get this error: Code:
/usr/lib64/gcc/x86_64-slackware-linux/4.7.1/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib64/liblua.so when searching for -llua Code:
/usr/lib64/gcc/x86_64-slackware-linux/4.7.1/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /usr/lib/../lib64/liblua.so when searching for -llua That is the main problem I am having. I also mentioned having installed cairo and imlib2. Installing cairo was a huge pain (read: dependency hell) but I managed to get it to build without error. As for imlib2 I built it with the slackbuild and did the necessary installpkg to get the package installed. However, as should be expected nothing ever goes according to plan. Running ./configure from the conky-1.9 source directory tells me that it doesn't see either cairo or imlib2. Code:
checking assert.h presence... yes |
All those packages are available at SlackBuilds.org; e.g., lua-5.1.5-x86_64-1_SBo.
Have you built and installed them? |
Cairo was built from source, lua and imlib2 were installed from the slackbuils. I also used convertpkg-compat32 to create the x86 versions. The version of tolua++ I am trying to install is also a slacbuild but as mentioned above will not build or create the package because of the error.
Just for good measure, I'll show you that I do have the libraries installed. Lua: Code:
bash-4.2# locate liblua Code:
/usr/bin/32/imlib2-config Code:
/usr/bin/pdftocairo |
How about toula++ (which requires lua and scons)? You also want scons and imlib2.
Just built conky from SlackBuilds.org (with all the required libraries and development packages). Worked just fine. The note in conky is to build it with LUA=yes ./conky.SlackBuild. The cleanest, easiest way to add software is through SlackBuilds -- start at conky and follow each required package. |
Oh, by the way, cairo is provided with Slackware 14.0: /var/log/packages/cairo-1.10.2-x86_64-2. You didn't need to build it.
|
Thank you for the input, but I already have scons and lua. As for not needing to build cairo, I suppose it's too late because I did it anyway. But I have scons, and I'm trying to build tolua++ from the slackbuild. And I do have lua.
Code:
bash-4.2$ lua |
http://ponce.cc/slackware/slackware-14.0/packages/
If you are a lazy guy like me just go to the above and get the package. He also has a compat32 conky. I am using both the 32 & 64 bit versions with no problems. I could never get tolou from slackbuilds to work. I understand that it was probably my fault but that is how it was done for me. |
I tried the conky i486 package, but it crashes on startup telling me:
Code:
bash-4.2# conky Is there an i486 audacious package, or an option I'm not aware of to run conky without support for libaudcore.so? This seems to have gotten me one step closer though, and for that, I thank you. |
Okay, so I found all of the 32-bit packages I needed and installed them. Unfortunately, conky still does not show lua support.
Code:
bash-4.2$ conky --version Edit: It seems I have a new error! Now I am trying to build the conky slackbuild and it says: Code:
checking ncurses.h presence... yes |
I can confirm that you should be able to build conky if you have all dependencies installed correctly. I've build conky yesterday and it did build and works fine on Slackware 14 x86_64. I've used the slackbuilds versions.
Quote:
|
I very much agree that I *should* be able to build it just fine, right now I can't get past:
Code:
configure: error: tolua_error not found http://ubuntuforums.org/showthread.p...77#post8349177 Suggest looking for a package called tolua-dev, but I can't find any such package. Ideas? |
I think that you complicate things uselessly trying to mix 32 and 64 bits as you should stay with 64 bits.
Also, why install cairo from source as it is included in Slackware (provided you made a full Slackware installation, of course). So just uninstall you "custom" cairo (but then re-install the regular Slackware package for cairo) and buld and install in order using only slackbuilds from slackbuilds.org following packages: scons tolua++ imlib2 lua conky (with "LUA=yes") As JackHair told you this works for 64 bit (and for 32 bit as well, as I just checked). And slackbuilds detect the architecture themseleves, just let them do their job. You don't need any alien package like tolua-dev, in Slackware, all packages include the development libraries if they exist. |
Aside from Cairo they are all built from the slackbuilds. And it shouldn't matter if they were built from source, the libraries/references exist.
The only reason I bother with 32 bit files is for multilib compatibility on the off chance I need that package for something else down the road. |
I still don't know why you compiled manually cairo, but why not? Whatever the reason the results could be different when installing theSlackware package for it, because you didn't check that you gave the same options to configure.
Let's take an example. You configured manually conky (dunno why either as it's done by the slackbuild, but again, why not). You stated in the first post of this thread: Quote:
Code:
* Lua (yes) bindings: Code:
--enable-lua-imlib2 enable if you want Lua Imlib2 bindings for Conky |
I have since migrated to using the slackbuild for conky.
Code:
bash-4.2# ls Here is what ./conky.SlackBuild returns and this is what I am trying to troubleshoot: Code:
checking whether the shell understands some XSI constructs... yes Code:
checking for library containing tolua_error... no |
Look: here's what you need from SlackBuilds.org (and in the order you need to build and install them using the appropriate SlackBuild in each package):
Quote:
Hope this helps some. |
I'm not trying to be argumentative, but as I have previously stated, I have all of those, and they were *built from the slackbuilds* except for cairo. Everyone seems to be ignoring the actual error I am getting. I built Lua, tolua++, imlib2, and scons from the slackbuilds, then when I try to run the conky slackbuild I get:
Code:
configure: error: tolua_error not found Code:
# ./conky.SlackBuild |
See this thread.
|
http://ponce.cc/slackware/slackware-14.0/packages/
If you are a lazy guy like me just go to the above and get the package. He also has a compat32 conky. I am using both the 32 & 64 bit versions with no problems. I could never get tolou from slackbuilds to work. I understand that it was probably my fault but that is how it was done for me. bash-4.2# conky conky: error while loading shared libraries: libaudcore.so.1: wrong ELF class: ELFCLASS64 I got the the same error that you did when I used ponces build on the 32 and 64 bit, on 2 different machines. I found that libaudcore.so.1 was a dependency of audacious and that audacious was not working on either of my computers, the answer was to reinstall audacious and get it to work then conky worked. |
If you've installed from SlackBuilds, this is what you should have in /var/log/packages:
Code:
cd /var/log/packages Code:
locate libcairo You appear to have multilib on your system; however, none of the above should have built as 32-bit packages, if they are, removepkg and redo the SlackBuild making sure that the packages are built 64-bit (they should just default to 64-bit). If you're getting any messages about wrong ELF class, you're trying to mix 32-bit and 64-bit and that don't and will not work. Something else you can do to make sure you have the correct ELF class is Code:
file $(locate libcairo) It's the same for lua: Code:
file $(locate liblua) Maybe the above won't help, maybe it will, but it's worth checking, methinks. Hope this helps some. |
Please excuse me for taking so long to get around to this. I have been in the middle of some "making ends meet" scenarios. But anyway, I did exactly as was suggested. I removed all the packages I had installed and instead replaced them with the packages from SlackBuilds.org. Here is what it looks like in my /var/packages: (I also removed all the 32-bit packages)
Code:
bash-4.2# cd /var/log/packages Code:
bash-4.2# locate liblua Code:
bash-4.2# locate libcairo Code:
bash-4.2# file $(locate liblua) Code:
bash-4.2# file $(locate libcairo) Code:
bash-4.2# ./conky.SlackBuild |
I've been curious about conky, checked it out at slackbuilds, followed dependencies, works fine, no errors.
I have all the exact packages mentioned in previous posts here installed. Found this thread. Maybe helps? |
In an attempt to follow that thread, I installed tolua, so now I have tolua and tolua++ (both 64bit)
Code:
bash-4.2# ls /var/log/packages/ | grep tolua Code:
if [ "${LUA:-yes}" = "yes" ]; then Code:
CFLAGS="$SLKCFLAGS" \ *Edit, forgot to mention that the -lm switch in $lua_params breaks the build returning: Code:
configure: error: unrecognized option: `-lm'' |
Quote:
http://ponce.cc/slackware/slackware6..._64-1ponce.txz |
Quote:
|
Okay, I'm not exactly sure how I managed to fix this, but here is what I did. I abandoned the slackbuild and built conky-1.9 from source. Like this:
Code:
#./configure --enable-imlib2 --enable-lua-cairo Code:
bash-4.2$ conky -v |
good to hear flyinggeorge, conky -v for shows almost same for me. I included conkyforecast
System config file: /etc/conky/conky.conf Package library path: /usr/lib64/conky under Music detection: I also have * Audacious under General: I also have * Curl * RSS * Weather (METAR) * Weather (XOAP) * wireless * support for IBM/Lenovo notebooks now I just have to figure out how get out all the bells and whistles pretty. |
1 Attachment(s)
I don't currently use Curl or Audacious and all that other stuff, and wlan0 is the only internet interface I'm using right now, and the graph works perfectly fine. I finally found a theme I was happy with and tweaked it a little to suit my liking. Thank you everyone for trying to help!
The theme I found is just this: http://harshit1990.deviantart.com/ar...nity-306921086 I adjusted it for my resolution, and changed the backtrack logo to a slackware one. Screenshot attached. |
All times are GMT -5. The time now is 07:18 AM. |