`

在mac下静态编译tolua++

 
阅读更多

 

1.用brew安装lua

brew install lua

2.到官网下载tolua++

http://www.codenix.com/~tolua/

3.编译生成tolua++.a静态库

cd Downloads/tolua++-1.0.93/src/lib

gcc -c *.c -I../../include

ar rcsv libtolua++.a *.o

4.编译tolua++

cd Downloads/tolua++-1.0.93/src/bin

gcc tolua.c toluabind.c -I../../include -L../lib/ -ltolua++ -llua -o tolua++

5.done


参考:gcc 4.4.1 编译tolua++ 1.0.93 方法(非常简单,就2个步骤,几秒钟编译完成)

http://bbs.luaer.cn/read-Lua-tid-1008-fpage-2.html


 

分享到:
评论

相关推荐

    tolua++ 编译 及使用 简单介绍

    tolua++ 编译 及使用 简单介绍 tolua++ 是用来把 C++代码 生成 在Lua中使用的接口的工具,编译步骤比较繁琐。

    tolua++-1.0.93

    tolua++-1.0.93.tar.bz

    tolua++-1.0.92源码

    本人在windows7上用VS2012编译过,里面有二个工程,一个是编译生成tolua++.exe的,另一个是本人自己添加的,用来生成tolua++.lib。要编译tolua++的前提是你已经安装好lua5.1(有对应的头文件和库文件)。

    tolua++参考手册中文版-[刘源霖(译)].rar

    tolua++参考手册中文版-[刘源霖(译)] PDF格式 写的很详细 留给需要的人

    tolua++1.0.93编译器(Mac版)

    编译好的tolua++ 编译器基于1.0.93版编译,可以直接使用

    tolua++学习指南

    本文是tolua++学习的入门教程,包括tolua++简介、tolua++资源文件编译 tolua++示例程序

    lua5.1.4类库和tolua++1.0.93类库及工具打包

    lua5.1.4类库和tolua++1.0.93类库及工具打包 使用CodeBlocks 8.02 gcc 3.4.5编译的 lua 5.1.4 tolua++ 1.0.93 文件列表 liblua.a,libtolua++.a,lua51.dll,lua.exe,luac.exe,tolua++.exe

    tolua++ 1.0.92

    tolua++-1.0.92 源码 tolua++ is an extended version of tolua, a tool to integrate C/C++ code with Lua. tolua++ includes new features oriented to c++ such as: Support for std::string as a basic type ...

    tolua++ tool test

    Lua c++ ,tolua++工具注册C++类

    lua和C++通过tolua++进行互调的demo

    lua和c++通过tolua++互调,内含有demo,以及tolua++.exe,lua5.1

    tolua++编译pkg脚本工具及CurlDown源码

    tolua++编译pkg脚本工具及CurlDown源码,源码和工具在:toluapp-master\bin 目录下面,附tolua++ pkg脚本教程。

    tolua++1.0.93编译器 (win版)

    编译好的tolua++ 编译器基于1.0.93版编译,可以直接使用

    toLUA++ 1.0.92

    tolua++ 源代码,希望各位大侠能够看懂,希望你们维护它,它很强

    tolua++ 1.0.93

    tolua++.exe 可执行,带liblua.dll,lua.dll

    tolua++ 版helloworld (lua脚本调用C++类的成员函数方法)

    关于tolua++的资料太少,这个通过实例让你知道如何通过tolua++和C++交互,简单明了。 通过5个文件来演示这个tolua++版 ...3.运行编译即可看到我们的tolua++版的Hello world.这个程序实现了脚本调用C++类的成员函数方法

    tolua++源码

    tolua++的源码和代码生成工具,已经建好了项目,只要将新建解决方案,然后将项目加进去。当然你还是要自己将lua库和头文件链接过去

    tolua ++ 使用例子

    tolua++是一种第三方的软件包,可以为Lua提供面向对象的特性,这样我们就可以使用Lua来编写使用C++语言库的脚本文件. tolua使用例子.

    tolua++测试

    tolua++工具的测试,lua脚本测试. vs7编译。 包含完整编译环境,lib,inc.

    toLua++工具及易懂演示实例.zip

    使用tolua++ 工具导出c++文件到lua接口, 包含全部工具及演示代码,条理清晰,简单易懂。https://blog.csdn.net/u012278016/article/details/101269992

Global site tag (gtag.js) - Google Analytics