Giter VIP home page Giter VIP logo

Comments (3)

Jaaaaaay avatar Jaaaaaay commented on June 20, 2024

I solved the problem, compiling the FlatBuffers(v1.10.0, because the latest version cannot fit). replacing the command "${project.build.directory}/bin/flatc" with compiled flatc in pom.xml. then mvn clean install work. Thank you!

from jpmml-catboost.

akhnatal avatar akhnatal commented on June 20, 2024

Download
https://github.com/google/flatbuffers/releases/tag/v1.10.0

Extract and compile

  • tar xzf flatbuffers-1.10.0.tar.gz
  • cd flatbuffers-1.10.0
  • cmake -G "Unix Makefiles"
  • make

Modify the pom.xml

<configuration>
	<executable>flatbuffers-1.10.0/flatc</executable>
	<workingDirectory>src/main/fbs</workingDirectory>
	<arguments>
		<argument>--java</argument>
		<argument>--gen-all</argument>
		<argument>-o</argument>
		<argument>${project.build.directory}/generated-sources/java</argument>
		<argument>model.fbs</argument>
	</arguments>
</configuration>

To be more specific.

from jpmml-catboost.

moideen avatar moideen commented on June 20, 2024

This approach does not work on MacOS Sonoma 14.3.1

Running make results in the following error:

/path/to/flatbuffers-1.10.0/include/flatbuffers/flatbuffers.h:1613:25: **error**: definition of implicit copy constructor for 'TableKeyComparator<reflection::Object>' is deprecated because it has a user-provided copy assignment operator [-Werror,-Wdeprecated-copy-with-user-provided-copy]
    TableKeyComparator &operator=(const TableKeyComparator &);

Compiler / OS details:

Apple clang version 15.0.0 (clang-1500.1.0.2.5)
Target: arm64-apple-darwin23.3.0
Thread model: posix

This is actually a flatbuffers issue but just flagging here that the above resolution may not work.

from jpmml-catboost.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.