在windows下编译lua

技术调查Blog 技术调查Blog     2022-08-30     630

关键词:

http://blog.csdn.net/yue7603835/article/details/41739085

http://blog.csdn.net/birdflyto206/article/details/49403801

 

Building Lua on other systems

If you‘re not using the usual Unix tools, then the instructions for building Lua depend on the compiler you use. You‘ll need to create projects (or whatever your compiler uses) for building the library, the interpreter, and the compiler, as follows:

library:
lapi.c lcode.c lctype.c ldebug.c ldo.c ldump.c lfunc.c lgc.c llex.c lmem.c lobject.c lopcodes.c lparser.c lstate.c lstring.c ltable.c ltm.c lundump.c lvm.c lzio.c lauxlib.c lbaselib.c lbitlib.c lcorolib.c ldblib.c liolib.c lmathlib.c loslib.c lstrlib.c ltablib.c lutf8lib.c loadlib.c linit.c
interpreter:
library, lua.c
compiler:
library, luac.c

To use Lua as a library in your own programs you‘ll need to know how to create and use libraries with your compiler. Moreover, to dynamically load C libraries for Lua you‘ll need to know how to create dynamic libraries and you‘ll need to make sure that the Lua API functions are accessible to those dynamic libraries — butdon‘t link the Lua library into each dynamic library. For Unix, we recommend that the Lua library be linked statically into the host program and its symbols exported for dynamic linking; src/Makefile does this for the Lua interpreter. For Windows, we recommend that the Lua library be a DLL. In all cases, the compiler luac should be linked statically.

As mentioned above, you may edit src/luaconf.h to customize some features before building Lua.

在windows环境idea下编译运行elasticsearch7.14.1(代码片段)

文章目录在Windows环境中IDEA下编译运行Elasticsearch7.14.1环境准备操作步骤获取源码方式一:直接通过`gitbash`执行`gitclone`命令方式二:通过IDEA界面化操作编译源码本地运行遇到的问题1.权限问题2.版本问题3.geoip报... 查看详情

[原]win10下编译lua5.3.4

1、下载lua源码http://www.lua.org/ftp/2、打开vs2012工具命令提示3、cd到lua源码的src目录4、依次执行以下代码cl/MD/O2/c/DLUA_BUILD_AS_DLL*.crenlua.objlua.orenluac.objluac.olink/DLL/IMPLIB:lua5.3.0.lib/OUT:lua5.3.0.dll*.objlink/OUT:lua. 查看详情

qt在windows下编译遇到的一些问题

软件是在linux上写的,然而搬到windows上来遇到了好多问题。。。。想跪。。。。 首先就是压根编译不了的问题。。。。这个问题困扰我好久了。。。。一直报错undefinedreferencetoRInside和deplicatesection....如贴:http://www.qter.org/forum... 查看详情

windows下编译及使用libevent

Libevent官网:http://libevent.org/windows7下编译:编译环境: windows7+VS2010(1)解压libevent到F:libeventlibevent-2.0.21-stable(2)打开Microsoftvisualstudio2010命令行工具(3)修改以下三个文件,添加宏定义:在以下3个文件开头添加“#define_... 查看详情

在 Windows (XP) 下编译 C/C++ makefile 文件

】在Windows(XP)下编译C/C++makefile文件【英文标题】:CompilngC/C++makefilefilesunderWindows(XP)【发布时间】:2009-07-1023:06:19【问题描述】:我正在尝试使用具有一些非Python必备库的Python库(pyMedia)。(libogg、libvorbis、liblame和libfaad2-这与具体... 查看详情

在window下编译libgeotiff(含libtiff)

核心提示:1.GeoTiff简介GeoTiff是包含地理信息的一种Tiff格式的文件。1.GeoTiff简介    GeoTiff是包含地理信息的一种Tiff格式的文件。Libgeotiff就是一个操作GeoTiff文件的库。同GDAL,GeoTiff库功能强大,也是开源的。其主页... 查看详情

Delphi 7:在 Win XP 或 Windows Server 2003 下编译有啥区别?

】Delphi7:在WinXP或WindowsServer2003下编译有啥区别?【英文标题】:Delphi7:AnydifferencesbetweencompilingunderWinXPorWindowsServer2003?Delphi7:在WinXP或WindowsServer2003下编译有什么区别?【发布时间】:2010-10-2316:15:24【问题描述】:我有一个遗留应... 查看详情

Windows下编译Mongoose的hello.c

】Windows下编译Mongoose的hello.c【英文标题】:CompilingMongoose\'shello.cunderWindows【发布时间】:2013-03-2011:48:43【问题描述】:我正在尝试在Windows下从Mongoose编译包含的hello.c示例。我正在使用MicrosoftVisual命令提示符,并且已将mongoose.c和... 查看详情

怎样将windows下写的c程序在linux下编译运行,谢谢?

参考技术A先确保你的c程序没有调用win下专有的api,比如win32api或.net等,如果有,就需要另写接口层。最好能只调用posix库或跨平台的库,或完全原创的算法库。c程序满足和win专有接口能脱离直接关系,就能在linux下编译。 查看详情

gcc dll - 在 Linux 下编译

...都实现为*.so文件,并从python-tkinter图形表面调用。需要在Windows上运行它。但是,我会避免安装与gcc-bison-flex程序等效的所有Windows程序。是否可以强制gccIN 查看详情

如何在windows的命令行环境下编译c++程序?

参考技术A你使用VS2008的话,安装完成后选择VisualStudio2008CommandPrompt,出现一个cmd窗口,\\x0d\\x0a使用\\x0d\\x0aclmain.cpp\\x0d\\x0a就可以编译!\\x0d\\x0a如果你的项目比较复杂,就自己写一个Makefile文件吧! 查看详情

windows(msvc)下编译boost库

下载&解压从http://www.boost.org/上下载源码并解压打开vs的本机工具命令提示符cdboost_sourcecode_dirbootstrap如果需要编译boost.python需要在boost_sourcecode_dir oolsuildexampleuser-config.jam中添加如下内容:usingmsvc:14.0;usingpython:2.7: 查看详情

mac下编译lua引用的c共享库失败,求解

...myCfunc,NULL,NULL;luaL_register(L,"cstuff",Map);return1;Mac10.7.5下编译出错我先试了这个:william:Desktopwilliam$gcc-oexample.so-I/usr/local/include-L/usr/local/lib-fpic-sharedtest.c-llua-Walltest.c:Infunction‘main’:test.c:43:warning:implicitdeclarationoffunction‘lua_open’... 查看详情

caffe在window下编译(windows7,cuda8.0,matlab接口编译)

1.环境:Windows7,Cuda8.0,显卡GTX1080,Matlab2016a,VS2013 (ps:老板说服务器要装windows系统,没办法,又要折腾一番)2.下载caffe包:https://github.com/BVLC/caffe/tree/windows  按照Github上的命令行就行:    这里的Pro 查看详情

[转]windows下编译及使用libevent

http://www.cnblogs.com/luxiaoxun/p/3603399.html  Libevent官网:http://libevent.org/windows7下编译:编译环境: windows7+VS2010(1)解压libevent到F:libeventlibevent-2.0.21-stable(2)打开Microsoftvisualstud 查看详情

windows下编译libevent

  1从github上gitclonehttps://github.com/nmathewson/Libevent.git或者直接下载zip包.然后找到vs2015命令行,打开2:3:等待结果  4使用demo测试包含目录 库目录附加依赖项:  查看详情

在windows下编译多种vs版本的skia(代码片段)

转载请说明原出处,谢谢~~:http://blog.csdn.net/zhuhongshu/article/details/51272050    这几天刚改了改Duilib,之前为了让Duilib更好的支持透明异形窗体所以把Duilib改为Gdi和Gdi+的双渲染引擎。于是想到了有时间就把渲染引擎... 查看详情

在windows环境下编译pb(protobuf)文件

参考技术Aprotoc --plugin=protoc-gen-go.exe  --go_out=.  xx.protoprotoc --plugin=protoc-gen-go.exe  --go-grpc_out=.  xx.proto若提示:--go-grpc_out:protoc-gen-go-grpc:系统找不到指定的文件。需在grpc-go-1.31.0\cmd\protoc-gen-... 查看详情