[Slackbuilds-users] conky compile error

Konrad J Hambrick kjhambrick at gmail.com
Sun Feb 26 18:50:44 UTC 2023


On Sun, Feb 26, 2023 at 8:25 AM Luiz Carlos Ramos via SlackBuilds-users <
slackbuilds-users at slackbuilds.org> wrote:

> Hi,
>
> I could do a trick here to make it build in machines where lua 5.3 is
> installed alongside lua 5.1. It is done simply adding these two lines in
> the cmake invocation:
>
>     -DLUA_LIBRARIES=/usr/lib64/liblua5.3.so \
>     -DLUA_INCLUDE_DIR=/usr/include/lua5.3 \
>
> Don't know exactly how it works in the inner bits, but the intention is
> to instruct CMake to find the correct version of Lua.
>
> Hope it helps,
>
> Luiz Carlos Ramos
> São Paulo - Brazil
> lramos.prof at yahoo.com.br


Luiz Carlos Ramos --

Those two defines worked for me too with these two lua packages installed:

   lua-5.1.5-x86_64-1_SBo
   lua53-5.3.4-x86_64-1_SBo

Attached is a patch for the conky.SlackBuild with your two defines.

It looks like a Keeper.

Thanks !

-- kjh

>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20230226/f6d2b56b/attachment.htm>
-------------- next part --------------
--- a/conky.SlackBuild	2023-02-25 04:07:14.715677083 -0600
+++ b/conky.SlackBuild	2023-02-26 12:33:42.200737775 -0600
@@ -102,6 +102,8 @@
     -DCMAKE_INSTALL_PREFIX=/usr \
     -DLIB_SUFFIX=${LIBDIRSUFFIX} \
     -DDOC_PATH=/usr/doc/$PRGNAM-$VERSION \
+    -DLUA_LIBRARIES=/usr/lib64/liblua5.3.so \
+    -DLUA_INCLUDE_DIR=/usr/include/lua5.3 \
     -DMAINTAINER_MODE=ON \
     -DBUILD_DOCS=OFF \
     -DBUILD_EXTRAS=ON \


More information about the SlackBuilds-users mailing list