Compiling Luabind in MacOSX 10.5

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Compiling Luabind in MacOSX 10.5

David Huynh-5
Hi guys,

I've been trying to compile luabind on my macbook for a good week now, but I'm kinda lost and I'm not sure what's wrong with my build.

I read a previous post of a similar problem, but in my case I am using "darwin"

But when I try to compile luabind, I get the following error:

darwin.compile.c++ bin/darwin/debug/class.o
./luabind/class.hpp: In member function ‘luabind::class_<T, X1, X2, X3>& luabind::class_<T, X1, X2, X3>::def(luabind::detail::operator_<Derived>, const Policies&)’:
./luabind/class.hpp:1202: error: no matching function for call to ‘raw(boost::arg<1>&)’
./luabind/class.hpp: In member function ‘luabind::class_<T, X1, X2, X3>& luabind::class_<T, X1, X2, X3>::def(luabind::detail::operator_<Derived>)’:
./luabind/class.hpp:1212: error: no matching function for call to ‘raw(boost::arg<1>&)’

    "g++"  -ftemplate-depth-128 -O0 -fno-inline -Wall -g -fPIC -dynamic -Wno-long-double -no-cpp-precomp  -DLUABIND_DYNAMIC_LINK  -I"." -I"/Users/davidotcom/Development/build/lua/include" -I"/usr/local/include/boost-1_39" -c -o "bin/darwin/debug/class.o" "src/class.cpp"

...failed darwin.compile.c++ bin/darwin/debug/class.o...

Should I be building against something else? Right now I'm building against boost 1.39 and lua 5.1.4. I'm not sure what's going on. 

Any thoughts?


Thanks,

David

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
luabind-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/luabind-user
Reply | Threaded
Open this post in threaded view
|

Re: Compiling Luabind in MacOSX 10.5

Daniel Wallin
David Huynh wrote:
> Hi guys,
> I've been trying to compile luabind on my macbook for a good week now, but
> I'm kinda lost and I'm not sure what's wrong with my build.
[... snip error ...]
> Any thoughts?

Yes, someone had this problem on IRC yesterday. I just checked in this
fix to the 0.8 branch:

diff --git a/luabind/detail/policy.hpp b/luabind/detail/policy.hpp
index d011db8..83bb3dd 100644
--- a/luabind/detail/policy.hpp
+++ b/luabind/detail/policy.hpp
@@ -1044,7 +1044,7 @@ namespace detail
 namespace luabind { namespace
 {
 #if defined(__GNUC__) && \
-  (__GNUC__ * 100 + __GNUC_MINOR__ <= 400 || BOOST_VERSION <= 103401)
+  (__GNUC__ * 100 + __GNUC_MINOR__ < 400 || BOOST_VERSION <= 103401)
   static inline boost::arg<0> return_value()
   {
          return boost::arg<0>();


--
Daniel Wallin
BoostPro Computing
http://www.boostpro.com

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
luabind-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/luabind-user
Reply | Threaded
Open this post in threaded view
|

Re: Compiling Luabind in MacOSX 10.5

David Huynh-5
Thank you so much!! That worked like a charm. 
Thanks for the quick reply too.

- David



On Fri, Jun 5, 2009 at 4:13 PM, Daniel Wallin <[hidden email]> wrote:
David Huynh wrote:
> Hi guys,
> I've been trying to compile luabind on my macbook for a good week now, but
> I'm kinda lost and I'm not sure what's wrong with my build.
[... snip error ...]
> Any thoughts?

Yes, someone had this problem on IRC yesterday. I just checked in this
fix to the 0.8 branch:

diff --git a/luabind/detail/policy.hpp b/luabind/detail/policy.hpp
index d011db8..83bb3dd 100644
--- a/luabind/detail/policy.hpp
+++ b/luabind/detail/policy.hpp
@@ -1044,7 +1044,7 @@ namespace detail
 namespace luabind { namespace
 {
 #if defined(__GNUC__) && \
-  (__GNUC__ * 100 + __GNUC_MINOR__ <= 400 || BOOST_VERSION <= 103401)
+  (__GNUC__ * 100 + __GNUC_MINOR__ < 400 || BOOST_VERSION <= 103401)
  static inline boost::arg<0> return_value()
  {
         return boost::arg<0>();


--
Daniel Wallin
BoostPro Computing
http://www.boostpro.com

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
luabind-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/luabind-user


------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
luabind-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/luabind-user