-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
windows build recipe #18
Comments
I built There was windows branch with the changes; it has been merged. Notes: install mingw64, which is a port of the gcc compiler to windows. While LuaJIT builds fine with gcc or with microsoft compilers, CGO only supports gcc. (msvc not supported, clang not supported, links in this SO https://stackoverflow.com/questions/48541882/cgo-flags-and-cgo-ldflags-for-msvc-cl-exe ) to extract mingw64 binary above, you'll need an 7z extractor, which is here command to extract the mingw64 .7z archive: "\Program Files\7-Zip\7z.exe" x .\x64-4.8.1-release-posix-seh-rev5.7z I installed gcc as C:\mingw64\bin\gcc.exe then added C:\mingw64\bin to my %PATH% (system, advanced settings, environment vars) then re-open the command prompt window. also gnu make installed from to and add C:\GnuWin32\bin to %PATH% At the moment, the "make onetime" target doesn't work: |
Be sure to install gnuwin32/make in path that does not have spaces or parenthesis in it. So the default is bad. "C:\Program Files (x86)\GnuWin32\bin\make.exe" is bad. Instead use "C:\GnuWin32\bin\make.exe" or similar. The spaces and parenthesis will give gnu make problems on windows. |
Since this is solved, closing issue. |
So when the windows build gets to this part |
Yeah, I see that too. I had hacked the makefile to produce a differently named luajit, namely gijit_luajit, to keep it separate from any other luajit, as gijit_luajit has some additional patches, and it seemed nice to keep them separate. So I can see from reading the Makefile that on Windows the LuaJIT/src/Makefile line 514 is overridden by line 536. It doesn't really matter since the .a is the only thing we're really after to link against. |
@jordan4ibanez just by-the-by, gi isn't something I'm putting effort into. If you want a pretty functional go interpreter, https://github.com/cosmos72/gomacro is much more complete. Its only drawback I would say is the MPL license. |
todo: figure out how to get
gijit
to build on windowsUpdate NB: there are binaries available, at least since v1.0.9, here https://github.com/gijit/gi/releases so if you want to try
gijit
on windows, you don't need to compile it.Update: Also binaries for Windows at v1.3.2: https://github.com/gijit/gi/releases/tag/v1.3.2
The text was updated successfully, but these errors were encountered: