Sorrow446 / HLAT-Hogwarts-Legacy-Appearance-Tool

Tool for appearance manipulation for Hogwarts Legacy written in Go.
20 stars 2 forks source link

Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work. #2

Closed Staubgeborener closed 1 year ago

Staubgeborener commented 1 year ago

Running the pre compiled executable leads to a panic error:

C:\Windows\system32>C:\Users\user\hlat_x86.exe export -i C:\Users\user\AppData\Local\Hogwarts\Saved\SaveGames\46503878\HL-00-00.sav -o C:\Users\user\AppData\Local\Hogwarts\Saved\SaveGames\46503878\eve.json
panic: Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work. This is a stub

goroutine 1 [running]:
main.main()
        G:/go/hlat/main.go:321 +0x27e

Building the source code by my own including go-sqlite3 didn't resolve it:

C:\Users\user\Downloads\HLAT-Hogwarts-Legacy-Appearance-Tool-1>go get github.com/mattn/go-sqlite3

C:\Users\user\Downloads\HLAT-Hogwarts-Legacy-Appearance-Tool-1>go build

C:\Users\user\Downloads\HLAT-Hogwarts-Legacy-Appearance-Tool-1>main export -i C:\Users\user\AppData\Local\Hogwarts\Saved\SaveGames\46503878\HL-00-00.sav -o C:\Users\user\AppData\Local\Hogwarts\Saved\SaveGames\46503878\eve.json
panic: Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work. This is a stub

goroutine 1 [running]:
main.main()
        C:/Users/user/Downloads/HLAT-Hogwarts-Legacy-Appearance-Tool-1/main.go:321 +0x208

The executable, which is downloadable at nexusmods is working fine.

Sorrow446 commented 1 year ago

The binaries on here are identical to those on Nexus so GitHub might be corrupting them. Use x64 instead if you can.

Staubgeborener commented 1 year ago

Doesn't matter if I use x64 or x86. But I will close this issue.