Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

luarocks install lens fails #1

Open
anthillsocial opened this issue Dec 23, 2014 · 2 comments
Open

luarocks install lens fails #1

anthillsocial opened this issue Dec 23, 2014 · 2 comments

Comments

@anthillsocial
Copy link

$ sudo luarocks install lens
Error: No results matching query were found.

So how do I install?

@kylemcdonald
Copy link

same here:

  • OSX 10.11
  • lua 5.2.3
  • luarocks 2.2.0beta

edit: tried to install from source:

export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -O2 -fPIC -I/Users/kyle/torch/install/include -c src/Socket.cpp -o src/Socket.o -Iinclude -Isrc/bind
export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -O2 -fPIC -I/Users/kyle/torch/install/include -c src/bind/dub/dub.cpp -o src/bind/dub/dub.o -Iinclude -Isrc/bind
export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -O2 -fPIC -I/Users/kyle/torch/install/include -c src/bind/lens_File.cpp -o src/bind/lens_File.o -Iinclude -Isrc/bind
export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -O2 -fPIC -I/Users/kyle/torch/install/include -c src/bind/lens_Finalizer.cpp -o src/bind/lens_Finalizer.o -Iinclude -Isrc/bind
export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -O2 -fPIC -I/Users/kyle/torch/install/include -c src/bind/lens_Poller.cpp -o src/bind/lens_Poller.o -Iinclude -Isrc/bind
export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -O2 -fPIC -I/Users/kyle/torch/install/include -c src/bind/lens_Popen.cpp -o src/bind/lens_Popen.o -Iinclude -Isrc/bind
export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -O2 -fPIC -I/Users/kyle/torch/install/include -c src/bind/lens_Socket.cpp -o src/bind/lens_Socket.o -Iinclude -Isrc/bind
export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -O2 -fPIC -I/Users/kyle/torch/install/include -c src/bind/lens_core.cpp -o src/bind/lens_core.o -Iinclude -Isrc/bind
export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -O2 -fPIC -I/Users/kyle/torch/install/include -c src/file.cpp -o src/file.o -Iinclude -Isrc/bind
export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -O2 -fPIC -I/Users/kyle/torch/install/include -c src/lens.cpp -o src/lens.o -Iinclude -Isrc/bind
export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -O2 -fPIC -I/Users/kyle/torch/install/include -c src/poller.cpp -o src/poller.o -Iinclude -Isrc/bind
export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -O2 -fPIC -I/Users/kyle/torch/install/include -c src/popen.cpp -o src/popen.o -Iinclude -Isrc/bind
export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -O2 -fPIC -I/Users/kyle/torch/install/include -c src/macosx/poller.mm -o src/macosx/poller.o -Iinclude -Isrc/bind
export MACOSX_DEPLOYMENT_TARGET=10.5; gcc -bundle -undefined dynamic_lookup -all_load -o lens/core.so -L/Users/kyle/torch/install/lib src/Socket.o src/bind/dub/dub.o src/bind/lens_File.o src/bind/lens_Finalizer.o src/bind/lens_Poller.o src/bind/lens_Popen.o src/bind/lens_Socket.o src/bind/lens_core.o src/file.o src/lens.o src/poller.o src/popen.o src/macosx/poller.o -lstdc++ -l-framework Foundation -l-framework Cocoa -lobjc
ld: library not found for -l-framework Foundation
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Error: Build error: Failed compiling module lens/core.so

@lucidogen
Copy link

Hi there,

Lens is OS X only and a little experimental. It also requires special build flags for OS X frameworks. These build flags are not available in luarocks. I proposed a patch which was not included but things might have moved on this subject since then.

If you need a binary version of lens, I made a zip of the version I used for my last show: http://lubyk.org/en/download/document414.zip

Tell me if you stumble on any problems with this binary. I'll get in touch with Hisham (Luarocks) to see if something has changed with this "Framework" feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants