Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacOs installation issue #94

Open
vittorione94 opened this issue Dec 5, 2022 · 1 comment
Open

MacOs installation issue #94

vittorione94 opened this issue Dec 5, 2022 · 1 comment

Comments

@vittorione94
Copy link

Hello,

Thanks for open sourcing this project :)

I'm having troubles installing this repo on mac. After modifying a bit the cmake file I managed to get it to produce the make file but then I have some issues with protobuf versions (at least I believe I do).

The only difference is instead of using ${FIJI_DIR}/jars/ I replaced it with ${FIJI_DIR}/../../jars/ due to how macOS sorts stuff in the directory.

The error I get after make install is:

symbol:   method emptyFloatList()
  location: class Builder
caffe/Caffe.java:1930: error: cannot find symbol
          data_ = mutableCopy(data_);
                  ^
  symbol:   method mutableCopy(FloatList)
  location: class Builder
caffe/Caffe.java:2000: error: cannot find symbol
        data_ = emptyFloatList();
                ^
  symbol:   method emptyFloatList()
  location: class Builder
caffe/Caffe.java:2006: error: cannot find symbol
      private com.google.protobuf.Internal.FloatList diff_ = emptyFloatList();
                                                             ^
  symbol:   method emptyFloatList()
  location: class Builder
caffe/Caffe.java:2009: error: cannot find symbol
          diff_ = mutableCopy(diff_);
                  ^
  symbol:   method mutableCopy(FloatList)
  location: class Builder
caffe/Caffe.java:2079: error: cannot find symbol
        diff_ = emptyFloatList();
                ^
  symbol:   method emptyFloatList()
  location: class Builder
caffe/Caffe.java:2085: error: cannot find symbol
      private com.google.protobuf.Internal.DoubleList doubleData_ = emptyDoubleList();
                                                                    ^
  symbol:   method emptyDoubleList()
  location: class Builder
caffe/Caffe.java:2088: error: cannot find symbol
          doubleData_ = mutableCopy(doubleData_);
                        ^
  symbol:   method mutableCopy(DoubleList)
  location: class Builder
caffe/Caffe.java:2158: error: cannot find symbol
        doubleData_ = emptyDoubleList();
                      ^
  symbol:   method emptyDoubleList()
  location: class Builder
caffe/Caffe.java:2164: error: cannot find symbol
      private com.google.protobuf.Internal.DoubleList doubleDiff_ = emptyDoubleList();
                                                                    ^
  symbol:   method emptyDoubleList()
  location: class Builder
caffe/Caffe.java:2167: error: cannot find symbol
          doubleDiff_ = mutableCopy(doubleDiff_);
                        ^
  symbol:   method mutableCopy(DoubleList)
  location: class Builder
caffe/Caffe.java:2237: error: cannot find symbol
        doubleDiff_ = emptyDoubleList();
                      ^
  symbol:   method emptyDoubleList()
  location: class Builder
caffe/Caffe.java:2527: error: method does not override or implement a method from a supertype
    @java.lang.Override
    ^
caffe/Caffe.java:2944: error: method parseUnknownField in class com.google.protobuf.GeneratedMessageV3.Builder<BuilderType> cannot be applied to given types;
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                          ^
  required: CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,ExtensionRegistryLite,int
  found:    CodedInputStream,ExtensionRegistryLite,int
  reason: actual and formal argument lists differ in length
  where BuilderType is a type-variable:
    BuilderType extends com.google.protobuf.GeneratedMessageV3.Builder<BuilderType> declared in class com.google.protobuf.GeneratedMessageV3.Builder

I believe that this is due to protobuf versions incompatibility.

My system is the follwing:

  macOS Monterey  
  Model Name:	MacBook Pro
  Processor Name:	Quad-Core Intel Core i7
  Processor Speed:	2.3 GHz

protoc --version
libprotoc 3.3.0

NOTE: this is also not working for libprotoc version 3.21 (the latest)

Any help with this would be greatly appreciated.

Best,
-Vittorio

@ThorstenFalk
Copy link
Collaborator

Please check the version of protobuf jars contained in your Fiji installation. Use the same version of protoc for building Caffe.java.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants