Giter Site home page Giter Site logo

Does it work on macos? about nerd HOT 14 CLOSED

nerdlang avatar nerdlang commented on May 22, 2024
Does it work on macos?

from nerd.

Comments (14)

adrien-thierry avatar adrien-thierry commented on May 22, 2024

It works, I have to add compile option for MacOS

from nerd.

p3k avatar p3k commented on May 22, 2024

um, in the meantime i tried it on a linux machine with similar problems:

# uname -morp && lsb_release -d
4.4.0-112-generic x86_64 x86_64 GNU/Linux
Description:    Ubuntu 16.04.3 LTS

# nectar --example
[+] Copy of arduino.js done
[+] Copy of bad.js done
[+] Copy of bool.js done
[+] Copy of c/test.c done
[+] Copy of c_interface.js done
[+] Copy of child_process.js done
[+] Copy of fibo.js done
[+] Copy of fiboit.js done
[+] Copy of fs.js done
[+] Copy of http_demo.js done
[+] Copy of log.ts done
[+] Copy of loop.js done
[+] Copy of example.js done
[+] Copy of object.js done
[+] Copy of operation.js done
[+] Copy of print.py done
[+] Copy of protoclass.js done
[+] Copy of require.js done
[+] Copy of source.js done
[+] Copy of string.js done

# nectar example.js
Missing project.json

# cat project.json 
{"main": "example.js", "out": "example-linux-x86-64.bin", "target":"linux-x86-64", "preset":"speed"}

# nectar example.js
Missing project.json

shouldn’t this work?

from nerd.

adrien-thierry avatar adrien-thierry commented on May 22, 2024

It should, I've just tried on my debian and it works well

from nerd.

p3k avatar p3k commented on May 22, 2024

i see. any suggestions what i could try to make it work for me, too? could i check / provide any configuration settings or the like?

from nerd.

adrien-thierry avatar adrien-thierry commented on May 22, 2024

Could you give me your NodeJS version ?

from nerd.

p3k avatar p3k commented on May 22, 2024
# node -v
v8.9.4

from nerd.

ilearnio avatar ilearnio commented on May 22, 2024

This project looks promising! But I can't test it. When can we expect it to work on macOS?

from nerd.

ilearnio avatar ilearnio commented on May 22, 2024

I also have the same error "Missing project.json" even though I have it. See video http://take.ms/Jhh71

from nerd.

adrien-thierry avatar adrien-thierry commented on May 22, 2024

Thank you ilearnio, we will work soon on MacOS compatibilty

from nerd.

adrien-thierry avatar adrien-thierry commented on May 22, 2024

Mac OS X compilation is now supported

from nerd.

glockjt avatar glockjt commented on May 22, 2024

Just tried running the example on mac and getting this error

{ Error: Command failed: ./file-mac-osx.bin
dyld: Symbol not found: __ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE
  Referenced from: /Users/jglock/personal-repo/test-nectarjs/./file-mac-osx.bin
  Expected in: /usr/lib/libstdc++.6.0.9.dylib
 in /Users/jglock/personal-repo/test-nectarjs/./file-mac-osx.bin

    at ChildProcess.exithandler (child_process.js:275:12)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:925:16)
    at Socket.stream.socket.on (internal/child_process.js:346:11)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at Pipe._handle.close [as _onclose] (net.js:557:12)
  killed: false,
  code: null,
  signal: 'SIGABRT',
  cmd: './file-mac-osx.bin' }

any help would be greatly appreciated!

from nerd.

adrien-thierry avatar adrien-thierry commented on May 22, 2024

Hi,

Could you try again ?

from nerd.

glockjt avatar glockjt commented on May 22, 2024

Worked. What fixed it?

from nerd.

adrien-thierry avatar adrien-thierry commented on May 22, 2024

Static linking

I tried to optimize binary size by linking parts of libs, but I need to take more time

from nerd.

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.