#odin build issues

1 messages · Page 1 of 1 (latest)

exotic gorge
#

I encountered two problems when packaging the project.

First, the font import path on macOS is incorrect. While working well before packaging.

Second, on Windows, it prompts a DLL file error.

Here is my packaging command:

odin build src -collection:deps=./deps -target:darwin_arm64 -source-code-locations:obfuscated -define:ODIN_STATIC_LINK=true -out:macos_arm64

odin build src -collection=deps=./deps -target:windows_amd64 -source-code-locations:obfuscated -out:window_amd64.exe

Can anyone helps? thanks

sterile grove
#

for windows, what's the dll error say?

exotic gorge
#

can't find cimplot.ddl. The implot_x64.lib is under deps

sterile grove
#

dlls need to be next to the exe, as that's where windows searches for them.

exotic gorge
#

thanks. how about font path? my font path is like this

font = imgui.FontAtlas_AddFontFromFileTTF(
io.Fonts,
"assets/AlibabaSans-Medium.ttf",}

sterile grove
#

paths relative are from the current working directory. which by default is where the binary is run from.

clear idol
exotic gorge
#

thanks