GithubHelp home page GithubHelp logo

Comments (5)

karlp avatar karlp commented on May 27, 2024 1

I've pushed a 0.4.1-2 which adds this define, can you verify that it works for you?

from lua-mosquitto.

jimt avatar jimt commented on May 27, 2024 1

Yes, I was able to compile/install on a fresh Ubuntu 20.04 installation. Thank you for the quick resolution to my problem.

from lua-mosquitto.

karlp avatar karlp commented on May 27, 2024

maybe? Could you elaborate further on how it fails for you?

karlp@strem:~/src (master *)$ luarocks53 install lua-mosquitto
Installing https://luarocks.org/lua-mosquitto-0.4.1-1.src.rock

gcc -O2 -fPIC -I/usr/include -c lua-mosquitto.c -o lua-mosquitto.o -I$LIBMOSQUITTO_INCDIR
gcc -shared -o mosquitto.so lua-mosquitto.o -L$LIBMOSQUITTO_LIBDIR -Wl,-rpath,$LIBMOSQUITTO_LIBDIR: -lmosquitto
lua-mosquitto 0.4.1-1 is now installed in /home/karlp/.luarocks53 (license: MIT)

karlp@strem:~/src (master *)$ lua
Lua 5.3.5  Copyright (C) 1994-2018 Lua.org, PUC-Rio
> m = require("mosquitto")
> 

Is this exposing differences in system lua configurations?

from lua-mosquitto.

karlp avatar karlp commented on May 27, 2024

Looks like my fedora32 at least has #define LUA_COMPAT_5_2 enabled, which enables COMPAT_APIINTCASTS? Is that not default?

from lua-mosquitto.

jimt avatar jimt commented on May 27, 2024

On Ubuntu 20.04.2 it isn't the default. I stuck variables.CC = "gcc -DLUA_COMPAT_APIINTCASTS" in my /etc/luarocks/config.lua so that I could install, but I was guessing it made more sense in the package's rockspec.

from lua-mosquitto.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.