OCAP2 / OCAP

OCAP is an Arma 3 mission recording suite. It consists of a serverside addon and a packaged web server executable that allows for after-action review and better insight into what really happened.
Other
58 stars 14 forks source link

CGO_ENABLED=0 #79

Closed NiklasKy closed 9 months ago

NiklasKy commented 9 months ago

Hi, I'm trying to install OCAP on a Windows Server. I installed everything according to the guide but when I try to run the OCAP-webserver.exe I get an error when it's trying to create the Database.

panic: could be create table operation: Binary was compiled with 'CGO_ENABLED=0', go-sqlite3 requires cgo to work. This is a stub

goroutine 1 [running]:
main.check(...)
        C:/A3OCAP/cmd/main.go:14
main.main()
        C:/A3OCAP/cmd/main.go:23 +0x694

I also tried to set the variable for CGO to 1 but that didn't change anything. Does someone know how to fix that?

image

NiklasKy commented 9 months ago

I fixed it myself. the go build -o ocap-webserver.exe ./src/web command on the web tree looks wrong.

I used go build -o ocap-webserver.exe ./cmd/main.go and now it works