keharriso / love-nuklear

Lightweight immediate mode GUI for LÖVE games
MIT License
351 stars 32 forks source link

Specified procedure could not be found. #38

Closed Jugbot closed 5 years ago

Jugbot commented 5 years ago
Error: error loading module 'lib.nuklear' from file '.\lib\nuklear.dll':
        The specified procedure could not be found.

stack traceback:
        [string "boot.lua"]:637: in function <[string "boot.lua"]:633>
        [C]: at 0x7ff9a4486130
        [C]: in function 'require'
        main.lua:6: in main chunk
        [C]: in function 'require'
        [string "boot.lua"]:475: in function <[string "boot.lua"]:311>
        [C]: in function 'xpcall'
        [string "boot.lua"]:645: in function <[string "boot.lua"]:639>
        [C]: in function 'xpcall'

This is 64 bit version, no build straight from latest release.

keharriso commented 5 years ago

Try this:

1) Put package.cpath = "./lib/?.dll;./lib/?.so;"..package.cpath at the top of your main.lua. 2) Use require "nuklear" instead of require "lib.nuklear".

Let me know if this fixes your problem.

Jugbot commented 5 years ago

First option worked thank you :)