Problems encountered in porting Beego+go-sqlite3 Arm platform
Use Beego+go-sqlite3 for simple blog development under windows, but after compilation, insert it into the Arm platform to run exceptions:
Compile parameter settings:
SET GOARCH=arm
SET GOOS=linux
SET GOARM=7
Go build
First of all, prompt the sqlite3 application problem, you should turn on the item CGO_ENABLED=1.
Resolve:
SET GOARCH=arm
SET GOOS=linux
SET GOARM=7
SET CGO_ENABLED=1
SET CC=arm-linux-gnueabihf-gcc
Go build
Next, the error is as follows F:\ Program Files (x86)\ GO\ pkg\ tool\ windows_amd64\ link.exe: running arm-linux-gnueabihf-gcc failed: exec: "arm-linux-gnueabihf-gcc": executable fil
E not found in PATH%
Resolve:
Install the cross-compilation tool chain under windows and add it to the system environment "PATH"
Recompile, through