senzing-garage/senzing-tools

Remove make build-all, fix make run

Closed this issue · 1 comments

When running make build-all on macOS, the following is seen:

% make build-all

Building /Users/michaeldockter/senzing.git/senzing-tools/target/darwin-amd64/senzing-tools
Building /Users/michaeldockter/senzing.git/senzing-tools/target/linux-amd64/senzing-tools
# github.com/senzing/serve-grpc/g2configmgrserver
../../go/pkg/mod/github.com/senzing/serve-grpc@v0.4.13/g2configmgrserver/g2configmgrserver.go:65:33: undefined: g2sdk.G2configmgr
# github.com/senzing/serve-grpc/g2configserver
../../go/pkg/mod/github.com/senzing/serve-grpc@v0.4.13/g2configserver/g2configserver.go:65:30: undefined: g2sdk.G2config
# github.com/senzing/serve-grpc/g2productserver
../../go/pkg/mod/github.com/senzing/serve-grpc@v0.4.13/g2productserver/g2productserver.go:65:31: undefined: g2sdk.G2product
# github.com/senzing/serve-grpc/g2diagnosticserver
../../go/pkg/mod/github.com/senzing/serve-grpc@v0.4.13/g2diagnosticserver/g2diagnosticserver.go:66:34: undefined: g2sdk.G2diagnostic
# github.com/senzing/serve-grpc/g2engineserver
../../go/pkg/mod/github.com/senzing/serve-grpc@v0.4.13/g2engineserver/g2engineserver.go:65:30: undefined: g2sdk.G2engine
# github.com/senzing/go-sdk-abstract-factory/factory
../../go/pkg/mod/github.com/senzing/go-sdk-abstract-factory@v0.3.2/factory/factory.go:109:46: undefined: g2configbase.G2config
../../go/pkg/mod/github.com/senzing/go-sdk-abstract-factory@v0.3.2/factory/factory.go:144:52: undefined: g2configmgrbase.G2configmgr
../../go/pkg/mod/github.com/senzing/go-sdk-abstract-factory@v0.3.2/factory/factory.go:179:54: undefined: g2diagnosticbase.G2diagnostic
../../go/pkg/mod/github.com/senzing/go-sdk-abstract-factory@v0.3.2/factory/factory.go:214:46: undefined: g2enginebase.G2engine
../../go/pkg/mod/github.com/senzing/go-sdk-abstract-factory@v0.3.2/factory/factory.go:249:48: undefined: g2productbase.G2product
make: *** [linux/amd64] Error 1

Given that dependencies can't be built (due to the dependence on the Senzing binaries), senzing-tools can be built cross-platform.

When running make run, the following is seen:

% make run 

dyld[16516]: Library not loaded: '@rpath/libG2.so'
  Referenced from: '/private/var/folders/rd/zwh2c8ns7sl8k2b07rv56d100000gn/T/go-build2680064064/b001/exe/main'
  Reason: tried: '/usr/local/lib/libG2.so' (no such file), '/usr/lib/libG2.so' (no such file)
signal: abort trap
make: *** [run] Error 1

Pull requests: