GithubHelp home page GithubHelp logo

Comments (3)

JanWerder avatar JanWerder commented on June 14, 2024

Just to write it down what I got this far:

  1. Clone the love-nuklear repo
  2. Install TDM-GCC-64 (used in this guide) or MinGW
  3. Download and Install the Visual Studio C++ Build Tools
  4. Download LuaJit 2.0.4 as well
  5. Open the "Visual C++ 2015 x64 Native Build Tools Command Prompt" (may vary) and cd into your LuaJIT folder
  6. Run the msvcbuild.bat, which should build LuaJIT
  7. Modify the CMakeLists.txt (should be doabl with env vars as well, but didn't work in my case). Add the following lines at the top:
SET(CMAKE_C_COMPILER "C:/TDM-GCC-64/bin/gcc.exe")
SET(LUA_LIBRARIES "C:/Users/janwe/dev/luajit-2.0/src/lua51.dll")
SET(LUA_INCLUDE_DIR "C:/Users/janwe/dev/luajit-2.0/src")

This may vary depending on your paths.

After that open the cmd.exe

  1. Run cmake . when you are in the path

Expected result:

-- Building for: NMake Makefiles
-- The C compiler identification is GNU 5.1.0
-- Check for working C compiler: C:/TDM-GCC-64/bin/gcc.exe
-- Check for working C compiler: C:/TDM-GCC-64/bin/gcc.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found LuaJIT: C:/Users/janwe/dev/luajit-2.0/src/lua51.lib (found version "2.0.4")
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/janwe/dev/love-nuklear
  1. Run cmake --build . --config Release while still being in the same path

Expected result:

[ 50%] Linking C shared module nuklear.dll
[100%] Built target nuklear

This spits out a nuklear.dll in the nuklear folder, which you can copy into your path or your Lรถve folder, which works on your Windows Platform.

from love-nuklear.

JanWerder avatar JanWerder commented on June 14, 2024

So I got this to work and I would like to leave it here for the future. I updated my original comment

from love-nuklear.

keharriso avatar keharriso commented on June 14, 2024

I hope the current build instructions are to your satisfaction.

from love-nuklear.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.