Re: Install fabric-chaincode-java to raspberry 4 #fabric-chaincode #fabric-questions

Brett T Logan <development.brett@...>

I believe you need to add `mavenLocal()` to like it is mentioned here:

The protos don't import your local maven repo.


On Mon, Mar 8, 2021 at 10:48 AM Nikos Karamolegkos <nkaram@...> wrote:
Hello, I have built
1) protobuf 3.12.0 using ../autogen, /configure, make, make check, sudo make install. No problems, the protobuf pack is installed in usr/local/lib
2) export LDFLAGS="-L/usr/local/lib/", export CXXFLAGS="-I/usr/local/include/". Not sure if needed
3) From grpc/compiler I run:
../gradlew java_pluginExecutable -Pprotoc=/usr/local/bin/protoc -PskipAndroid=true OK
b) .
./gradlew test -Pprotoc=/usr/local/bin/protoc -PskipAndroid=true OK
../gradlew publishToMavenLocal -PskipAndroid=true -Pprotoc=/usr/local/bin/protoc OK after changing assertEq "$format" "elf64-little" $LINENO to assertEq "$format" "elf64-littleaarch64" $LINENO.  The output:

 * Skipping the build of Android projects because skipAndroid=true

> Configure project :grpc-compiler
*** Building codegen requires Protobuf version 3.12.0
*** Please refer to

> Task :grpc-compiler:checkArtifacts

Checking format of build/artifacts/java_plugin/protoc-gen-grpc-java.exe

Checking dependencies of build/artifacts/java_plugin/protoc-gen-grpc-java.exe
Checking for expected dependencies ...
Checking for unexpected dependencies ...
Dependencies look good.

11 actionable tasks: 7 executed, 4 up-to-date

4) From the fabric-chaincode-java folder I run: ./gradlew clean build install

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':fabric-chaincode-protos:generateProto'.
> Could not resolve all files for configuration ':fabric-chaincode-protos:protobufToolsLocator_grpc'.
  > Could not find protoc-gen-grpc-java-linux-aarch_64.exe (io.grpc:protoc-gen-grpc-java:1.23.0).
    Searched in the following locations:

The same problem which I started

Join { to automatically receive all group messages.