在Windows中构建Luabind [英] Building Luabind in Windows
问题描述
我在使用Lua& Luabind使用VS 2010在Windows 7下工作。到目前为止,我已从 http://luabinaries.sourceforge.net下载了LuaBinaries < a>和Luabind从 http://www.hci.iastate.edu /~rpavlik/doxygen/luabind/docs.html 。我在Luabind的INSTALL文件中提到的命令行中相应地设置了我的环境变量BOOST_ROOT和LUA_PATH,我不能超过这个错误:
I'm having problems making Lua & Luabind work under Windows 7 using VS 2010. So far, I've downloaded LuaBinaries from http://luabinaries.sourceforge.net and Luabind from http://www.hci.iastate.edu/~rpavlik/doxygen/luabind/docs.html . I've set up my environment variables BOOST_ROOT and LUA_PATH accordingly in the Command Line as mentioned in Luabind's INSTALL file and I can't get past this error:
C:\lua\luabind>bjam stage
error: at Jamroot:41
error: *** Unable to determine Lua include directory.
如果任何人已经能够在Windows下构建Luabind,任何提示都非常感谢!更重要的是,如果任何人已经能够设置一个VS 2010 C ++项目与Lua&
If anyone has been able to build Luabind under Windows any hint is much appreciated! Even more, if anyone has been able to set up a VS 2010 C++ project with Lua & Luabind and is willing to share I'll be more than thankful!
推荐答案
Hm ...很奇怪...
如何在MSVS2008Express下构建luabind。
我下载lua5_1_4_Win32_dll8_lib.zip(luabind jam-file没有为lua 5.2正确配置),设置环境,build boost,build luabind。
Hm... Very strange... How I build luabind under MSVS2008Express. I download lua5_1_4_Win32_dll8_lib.zip (luabind jam-file not properly configured for lua 5.2 ), setup enviroment, build boost, build luabind.
- 下载boost,luabinaries(5.1),luabind
- 1,不重建它)
-
设置环境变量(右键单击我的电脑 - >属性 - >高级 - >按钮环境变量 for local)
在命令解释器中:
- Download boost, luabinaries (5.1), luabind
- Build boost (I already have 1.46.1 and not rebuild it)
Setup enviroment variable (right-click on My Computer->Properties->Advanced-> button "Environment Variables" for permanent variables, or use SET for local) In the command interpreter:
set BOOST_ROOT = g:\from_work\repo\Env\Boost
set LUA_PATH = d:\test\sover\lua
转到 luabind
目录并运行 bjam stage
( bjam
必须在 PATH
中),luabind已构建。我不测试它,只是构建。
我希望有帮助。
Go to the luabind
directory and run bjam stage
(bjam
must be in PATH
), luabind was builded. I don't test it, just build.
I hope this help.
这篇关于在Windows中构建Luabind的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!