-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
corss compile failed from when build on a mac #560
Comments
Please read README. |
You need set CC to cross compiler. |
Compile Section Closes mattn#175 Compile Section Closes mattn#201 Compile Section Closes mattn#206 Compile Section Closes mattn#404 Compile Section Closes mattn#217 Compile Section Closes mattn#224 Compile Section Closes mattn#234 Compile Section Closes mattn#242 Feature table Closes mattn#255 Description Section Closes mattn#232 Golang:1.6 not supported Closes mattn#272 Golang:1.5 not supported + compilation section Closes mattn#283 usleep Implemented Closes mattn#285 FAQ Section Closes mattn#289 Compile Section closes mattn#295 FAQ Section Closes mattn#305 PR339 Closes mattn#318 mattn#321 Compilation Section Closes mattn#341 PR407 Closes mattn#364 Feature `sqlite_vtable` Closes mattn#393 Compile Section Closes mattn#416 sqlite_trace feature Closes mattn#433 Compilation Section Closes mattn#435 Compilation Section Closes mattn#443 Golang:1.6 Not Supported Closes mattn#445 Compilation Section Closes mattn#451 Compilation Section Closes mattn#467 Compilation Section Closes mattn#491 Compilation Section Closes mattn#495 Compilation Section Closes mattn#505 Compilation Section Closes mattn#557 Compilation Section Closes mattn#560
For anyone looking for a solution to compile from Mac to Windows amd64 and include sqlite, if you use Homebrew:
Then to build:
This worked for me. I used information from: docwhat's post. |
if use win x86, how can i complier? what to set ? |
If you mean from macOS to windows x86 32bit:
I'm trying to build from macOS to linux amd64, but without success. Does anybody have a set of envs/configs ( My gcc is trying to link with the macOS export GOOS=linux
export GOARCH=amd64
export CGO_ENABLED=1
export CC=gcc-9
export OS=linux
export ARCH=amd64
export CGO_CPPFLAGS="-I /usr/local/Cellar/gcc/9.1.0/include/c++/9.1.0"
go build -ldflags "-s -w" -o example.bin main.go Output:
|
@vishnukvmd what if you're using Go modules? |
@anacrolix Placing your project inside |
go env below :
and I input
the error is:
I have installed the
gcc-4.8.1-for-linux64.dmg
on my mac.then I changed this line in sqlite3.go
but still error……
The text was updated successfully, but these errors were encountered: