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 |
All times are GMT -5. The time now is 12:29 AM. |