Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

Luabind: a library that helps you create bindings between C++ and Lua. #15132

Closed
wants to merge 2 commits into from
Closed

Conversation

DennisOSRM
Copy link
Contributor

This pull request adds luabind (LUA->C++ bindings) to OS X. Replaces pull request #14914.

@emiltin
Copy link
Contributor

emiltin commented Oct 2, 2012

hope this can get accepted

@limoges
Copy link

limoges commented Oct 19, 2012

There is an error with the luabind source zip file. The sha should be corrected to the current one : '8b073335a8e6e19acc2bdb7d5b22dc9cc36a3090'.

Otherwise successfully installed.

@adamv
Copy link
Contributor

adamv commented Oct 31, 2012

This doesn't set the prefix anywhere; where does it install to? Directly into /usr/local?

@emiltin
Copy link
Contributor

emiltin commented Dec 30, 2012

it's a library without binaries. is the correct behaviour to install to /usr/local?
the cookbook states that keg_only is for libs that "does not need to be linked for public use in /usr/local", but i assume this is not the case, since it will be for public use.

@emiltin
Copy link
Contributor

emiltin commented Dec 30, 2012

i can confirm the sha1 needs to be 8b073335a8e6e19acc2bdb7d5b22dc9cc36a3090, as stated above by limoges.

i upgraded all my brews today, but luabind fails to build:

/usr/local$ (master) brew install luabind --debug
/usr/local/bin/brew: loading /usr/local/Library/Formula/luabind.rb
/usr/local/bin/brew: loading /usr/local/Library/Formula/lua.rb
/usr/local/bin/brew: loading /usr/local/Library/Formula/boost.rb
/usr/local/bin/brew: loading /usr/local/Library/Formula/boost-build.rb
/usr/local/Library/Formula/luabind.rb: loading /usr/local/Library/Formula/lua.rb
/usr/local/Library/Formula/luabind.rb: loading /usr/local/Library/Formula/boost.rb
/usr/local/Library/Formula/luabind.rb: loading /usr/local/Library/Formula/boost-build.rb
/usr/local/Library/Formula/luabind.rb: loading /usr/local/Library/Formula/python.rb
==> Downloading https://github.com/luabind/luabind/zipball/v0.9.1
Already downloaded: /Library/Caches/Homebrew/luabind-0.9.1.zip
==> Downloading patches
######################################################################## 100.0%
######################################################################## 100.0%
==> Patching
patching file Jamroot
patching file luabind/detail/format_signature.hpp
==> bjam release install --toolset=clang
...skipped <p/usr/local/lib>libluabind.dylib for lack of <pbin/clang-darwin-4.2.1/release>libluabind.dylib...
common.copy /usr/local/include/luabind/detail/format_signature.hpp
...failed updating 12 targets...
...skipped 2 targets...
...updated 10 targets...
/usr/local/Library/Homebrew/formula.rb:566:in `system'

not sure what's causing this?

@mistydemeo
Copy link
Contributor

@adamv You're right, it's installing right into /usr/local.

The formula will need to be altered so that it installs into the correct prefix.

@adamv
Copy link
Contributor

adamv commented Jan 1, 2013

Closing due to no response from the submitter. At the very least this will need to specify the prefix, instead of hard-coding to /usr/local, so non-/usr/local Homebrew installs work.

It may also need to use the previous version of Boost that we package, if this doesn't work against current versions of Boost. It looks like this software hasn't been updated in quite a while, so it may have some compatibility issues.

@adamv adamv closed this Jan 1, 2013
@emiltin
Copy link
Contributor

emiltin commented Jan 4, 2013

you mean setting the bjam istall location from the prefix variable? something along these lines?

  def install
    args = [
      "release",
      "install"
    ]
    if ENV.compiler == :clang
      args << "--toolset=clang"
    elsif ENV.compiler == :llvm
      args << "--toolset=llvm"
    elsif ENV.compiler == :gcc
      args << "--toolset=darwin"
    end
    args << "--prefix=#{prefix}"    # set prefix
    system "bjam", *args
  end

@emiltin
Copy link
Contributor

emiltin commented Jan 4, 2013

it builds ok with the latest boost 1.52 (and the two patches included in the PR)

@adamv adamv reopened this Jan 4, 2013
@DennisOSRM
Copy link
Contributor Author

Updated the formula according to your suggestions.

@adamv adamv closed this in 9566425 Feb 2, 2013
@happychunhua
Copy link

How to install luabind on CentOS?

@Homebrew Homebrew locked and limited conversation to collaborators Feb 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants