bkaradzic / bgfx

Cross-platform, graphics API agnostic, "Bring Your Own Engine/Framework" style rendering library.
https://bkaradzic.github.io/bgfx/overview.html
BSD 2-Clause "Simplified" License
15.02k stars 1.95k forks source link

GENie with action "idl" throw module 'bgfx-codegen' not found #2771

Closed Ridten closed 2 years ago

Ridten commented 2 years ago

Describe the bug Genie with action "idl" or "version" trying find modules in self root folder To Reproduce Steps to reproduce the behavior:

  1. Clone bgfx, bx, bimg
  2. Run ..\bx\tools\bin\windows\genie idl
  3. Get output

Building configurations... Running action 'idl'... ...Name/Documents/Development/Cloned/bgfx/scripts/genie.lua:63: module 'bgfx-codegen' not found: no field package.preload['bgfx-codegen'] no file 'C:\Users\NoName\Documents\Development\Cloned\bx\tools\bin\windows\lua\bgfx-codegen.lua' no file 'C:\Users\NoName\Documents\Development\Cloned\bx\tools\bin\windows\lua\bgfx-codegen\init.lua' no file 'C:\Users\NoName\Documents\Development\Cloned\bx\tools\bin\windows\bgfx-codegen.lua' no file 'C:\Users\NoName\Documents\Development\Cloned\bx\tools\bin\windows\bgfx-codegen\init.lua' no file 'C:\Users\NoName\Documents\Development\Cloned\bx\tools\bin\windows\..\share\lua\5.3\bgfx-codegen.lua' no file 'C:\Users\NoName\Documents\Development\Cloned\bx\tools\bin\windows\..\share\lua\5.3\bgfx-codegen\init.lua' no file '.\bgfx-codegen.lua' no file '.\bgfx-codegen\init.lua' no file 'C:\Users\NoName\Documents\Development\Cloned\bx\tools\bin\windows\bgfx-codegen.dll' no file 'C:\Users\NoName\Documents\Development\Cloned\bx\tools\bin\windows\..\lib\lua\5.3\bgfx-codegen.dll' no file 'C:\Users\NoName\Documents\Development\Cloned\bx\tools\bin\windows\loadall.dll' no file '.\bgfx-codegen.dll' stack traceback: [C]: in function 'require' ...Name/Documents/Development/Cloned/bgfx/scripts/genie.lua:63: in field 'execute' [string "premake.action = { }..."]:38: in field 'call' [string "_WORKING_DIR = os.getcwd()..."]:76: in function '_premake_main'

Expected behavior Generated idl Screenshots image

Additional context OS: Win 10; Terminal: Git BASH for windows

Ridten commented 2 years ago

Solved. CD must be scripts, not bgfx root.