You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
go get -v github.com/TileDB-Inc/TileDB-Go
github.com/TileDB-Inc/TileDB-Go
github.com/TileDB-Inc/TileDB-Go
D:\gowork\Service\src\github.com\TileDB-Inc\TileDB-Go\array.go:5:10: fatal error: tiledb/tiledb.h: No such file or directory
#include <tiledb/tiledb.h>
^~~~~~~~~~~~~~~~~
compilation terminated.
The text was updated successfully, but these errors were encountered:
yahengqi
changed the title
#include <tiledb/tiledb.h> array.go
Can tileDB-go be used on Windows? And how to install tileDB on Windows?
Feb 17, 2019
In general TileDB is able to be installed and configured on Windows. It can be installed from a pre-compiled binary we offer, from conda or from source. See the windows sections of installation documentation for full details.
For TileDB-Go we use cgo to link against libtiledb. Unfortunately for windows, golang only supports gcc for linking and compiling so you will need to install a version of gcc for windows (mingw) and compile TileDB from source. We don't have specific build instructions for mingw and TileDB but it should compile without issue.
After you compile tiledb with mingw you can copy the resulting library to the TileDB-Go folder and go should be able to link to it. On unix operating systems the tiledb library is only required to be in the library search path, for windows this is easiest to achieve by putting the library inside the folder where the link command is running which should be the TileDB-Go folder, i.e. D:\gowork\Service\src\github.com\TileDB-Inc\TileDB-Go in your case.
It is also possible to set the CGO_CFLAGS or CGO_LDFLAGS environmental variables to override the location of the tiledb header or library. See our usage in the TileDB-Go travis configuration for setting the osx and linux library and include paths.
Let us know if you have any issue compiling with mingw or linking with cgo after its compiled.
go get -v github.com/TileDB-Inc/TileDB-Go
github.com/TileDB-Inc/TileDB-Go
github.com/TileDB-Inc/TileDB-Go
D:\gowork\Service\src\github.com\TileDB-Inc\TileDB-Go\array.go:5:10: fatal error: tiledb/tiledb.h: No such file or directory
#include <tiledb/tiledb.h>
^~~~~~~~~~~~~~~~~
compilation terminated.
The text was updated successfully, but these errors were encountered: