On Wed, Feb 26, 2020 at 6:34 PM Robert Engels <reng...@ix.netcom.com> wrote:
> Depending on your use of SQLite there are a few pure Go libraries that > might simplify things. > such as: - https://github.com/go-sqlite/sqlite3 (incomplete) - https://github.com/alicebob/sqlittle (much more complete) (I am the original author of the first one) -s > > On Feb 26, 2020, at 9:11 AM, Jan Flyborg <jan.flyb...@gmail.com> wrote: > > > We are building a system that targets many different combinations of OS's > and architectures. > > Up until now we have been able to keep the whole code base and external > packages in pure Go (no CGO), which means that the cross compiler > functionality of GC has been sufficient for us. > > However, recently we have introduced a dependency to an SQLite library ( > https://github.com/mattn/go-sqlite3) which needs CGO and I want to avoid > having each developer to install C compilers for all combinations, so I'm > investigating if it would be possible to simplify this process. > > So let's say I am running Linux/AMD64 on my PC and that my colleague is > using a Windows machine. Could I build the CGO part on my machine as an > archive file and then ship this archive to my colleagues machine in order > to make it possible for him to change GOOS and GOARCH to Linux/AMD64 and > thereby enabling him to cross compile (with "go build") for this > architecture (without having a C compiler for Linux/AMD64 available)? > > Is this possible or do we always have to have a C-toolchain available on > the machine where we perform the cross compilation? > > Best Regards > //Jan Flyborg > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/660a29f0-7dc9-43c6-ad46-6dd26ff5146e%40googlegroups.com > <https://groups.google.com/d/msgid/golang-nuts/660a29f0-7dc9-43c6-ad46-6dd26ff5146e%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/32008098-4891-44DB-AE42-94507F049379%40ix.netcom.com > <https://groups.google.com/d/msgid/golang-nuts/32008098-4891-44DB-AE42-94507F049379%40ix.netcom.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAAV3P_AgQEgSEYcm-vP6q2fkg47wULmZxOpED5McAEr%3DvBVRaA%40mail.gmail.com.