luaplus51-all icon indicating copy to clipboard operation
luaplus51-all copied to clipboard

Can't compile LuaPlus.sln

Open RKGekk opened this issue 3 years ago • 12 comments

VS throws an error - Error MSB3073 The command "E:\luaplus\build2019\jam.bat "-CE:/luaplus/build2019/" -g C.TOOLCHAIN=win64/debug -a" exited with code 1. And command line says - don't know how to make lua5.1

RKGekk avatar May 19 '21 17:05 RKGekk

Using the instructions provided for cloning and building LuaPlus, you got this? Is there any additional information?

jjensen avatar May 19 '21 17:05 jjensen

I did everything according to the instructions.

RKGekk avatar May 19 '21 18:05 RKGekk

visual studio 2019 enterprise and windows 10. Also fixed the file jmakehelper.cmd for COMNTOOLS not for community.

RKGekk avatar May 19 '21 19:05 RKGekk

Version 51 falls with an error, but version 53 compiles just fine.

RKGekk avatar May 19 '21 19:05 RKGekk

I pushed an update that uses the latest JamPlus commits. The instructions for building have changed. Be sure to look at the README.md.

In Tools/JamPlus/bin/modules/c/toolchain/vc/detect.jam, you'll find some detection code for Visual Studio Professional and Community. I do not know what Enterprise looks like. If you change that to account for your Enterprise install, everything should build up nicely.

jjensen avatar May 19 '21 19:05 jjensen

btw your unzip link is not working. had to download and compile from here https://sourceforge.net/projects/infozip/

RKGekk avatar May 20 '21 07:05 RKGekk

I think the problem may be that JamPlus is taking the wrong version of the Windows SDK C:\Program Files (x86)\Windows Kits\10\Include\10.0.10150.0 a cut version of this SDK is installed on my computer (without um folder)

RKGekk avatar May 20 '21 08:05 RKGekk

i tried to changing the file E:\luaplus\Tools\JamPlus\bin\modules\c\toolchain\vc\win32.jam from local MSSDK_VERSION = $(dirs[1]:P) ; to local MSSDK_VERSION = $(dirs[2]:P) ; it looks like it started to working

RKGekk avatar May 20 '21 09:05 RKGekk

根据网上教程,VS2022编译成功,静态和动态均可 VS2022 Compiled successfully,dll lib OK See:https://gitee.com/qzez/luaplus51-all-build

ashwolfatgit avatar Apr 28 '22 01:04 ashwolfatgit

I tried to compile this library twice and I ended up with a .sln that does nothing. I don't even know what is supposed to be the "jam c.toolchain=win64/debug" I'd also like to know what to do to use the external modules that come with this library like sqlite3

Thank you and sorry to bother you

MasterDrake avatar May 06 '22 17:05 MasterDrake

I just followed the Building LuaPlus for Windows instructions that are found at https://github.com/jjensen/luaplus51-all. Everything built fine.

Can you give me some more information about where you are having trouble?

Thanks!

jjensen avatar May 06 '22 18:05 jjensen

I just followed the Building LuaPlus for Windows instructions that are found at https://github.com/jjensen/luaplus51-all. Everything built fine.

Can you give me some more information about where you are having trouble?

Thanks!

Ok, I'll retry and post each step. I downloaded wget and I put it on C:\Program Files\wget\wget.exe and I added it to the PATH env. I couldn't find a .exe for unzip since the links don't work. I downloaded the repo and I ran the bootstrap bat with x64 cmd. I run the CreateVS2019Workspace and I choose lua53 I tried to compile with cmd first and I went to build2019 and executed "jam c.toolchain=win64/debug"

Then at this point I don't know what to do. I have a "bin.lua53.vs2019.win64" folder with a bunch of lua files that I don't know how to use. There are no LuaPlus cpp files or .lib/.dll or whatever. The .sln does nothing image

I'm kinda lost on how I'm supposed to proceed from here to add all of this to another project.

Thanks and sorry to bother you so much.

MasterDrake avatar May 07 '22 12:05 MasterDrake