GithubHelp home page GithubHelp logo

Build error on OSX Mavericks about lzmq HOT 6 CLOSED

zeromq avatar zeromq commented on June 4, 2024
Build error on OSX Mavericks

from lzmq.

Comments (6)

moteus avatar moteus commented on June 4, 2024

Error occur because of OSX does not implement clock_gettime function.
In fact fail only lzmq.timer module. This module does not use in lzmq itself, but uses in lzmq.loop mudule and in some tests.
May be you can just remove definition of USE_CLOCK_MONOTONIC or remove lzmq.timer module at all from rockspec.
I have not OSX so i can not fix that on myself so may be you can help with that.
This is part of code that need to implement.
As i understand we need only GetMonotonicTime. I found this.

from lzmq.

moteus avatar moteus commented on June 4, 2024

Please try luarocks install https://raw2.github.com/moteus/lzmq/master/rockspecs/lzmq-scm-0.rockspec

from lzmq.

Atcold avatar Atcold commented on June 4, 2024

It did work to me, but it is still unable to use ffi correctly.

atcold@Alf /usr/local/share/lua/5.1/lzmq [master*]$ qlua
Lua 5.1  Copyright (C) 1994-2008 Lua.org, PUC-Rio
> = package.path
./?.lua;/usr/local/share/lua/5.1/?.lua;/usr/local/share/lua/5.1/?/init.lua;/usr/local/lib/lua/5.1/?.lua;/usr/local/lib/lua/5.1/?/init.lua
> package.path = package.path .. ';/usr/local/lib/lua/5.1/lzmq/?.lua'
> require 'image'
/usr/local/share/lua/5.1/lzmq/ffi/api.lua:1: loop or previous error loading module 'ffi'
stack traceback:
    [C]: in function 'require'
    /usr/local/share/lua/5.1/lzmq/ffi/api.lua:1: in main chunk
    [C]: in function 'require'
    ./ffi.lua:17: in main chunk
    [C]: in function 'require'
    /usr/local/share/lua/5.1/sundown/init.lua:1: in main chunk
    [C]: in function 'require'
    /usr/local/share/lua/5.1/dok/init.lua:1: in main chunk
    [C]: in function 'require'
    /usr/local/share/lua/5.1/image/init.lua:35: in main chunk
    [C]: in function 'require'
    [string "require 'image'"]:1: in main chunk
    [C]: ?

from lzmq.

moteus avatar moteus commented on June 4, 2024

Thnks for testing.
You should not add lzmq/.? to lua path. If you just copy src/lua you should require ffi module as lzmq.ffi.
But if you want only ffi binding you should copy src/lua/lzmq/ffi/lzmq.lua to lua dir, also you need copy src/lua/lzmq/ffi/poller.lua to lzmq dir. See lzmq-ffi-scm-0.rockspec

from lzmq.

kevwil avatar kevwil commented on June 4, 2024

luarocks install https://raw2.github.com/moteus/lzmq/master/rockspecs/lzmq-scm-0.rockspec installed for me. I haven't had a chance to verify its functionality, though.

from lzmq.

moteus avatar moteus commented on June 4, 2024

So i close this issue and i assume it fixed.
You could install lunitx luarocks install https://raw.github.com/moteus/lunit/moteus-skip/rockspecs/lunitx-scm.mot.skip-0.rockspec and run utest.lua file to full test lzmq library.
You could run simply etime lua -e"z=require'lzmq.timer't=z.monotonic():start()z.sleep(10000)print(t:stop())" to test monotonic timer.

from lzmq.

Related Issues (20)

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.