Package Details: flatbuffers-static 1.12.0-1

Git Clone URL: https://aur.archlinux.org/flatbuffers-static.git (read-only, click to copy)
Package Base: flatbuffers-static
Description: An efficient cross platform serialization library for C++, with support for Java, C# and Go
Upstream URL: http://google.github.io/flatbuffers/
Licenses: Apache
Conflicts: flatbuffers
Provides: flatbuffers
Submitter: thrasibule
Maintainer: thrasibule
Last Packager: thrasibule
Votes: 1
Popularity: 0.000000
First Submitted: 2018-04-05 19:33
Last Updated: 2020-10-20 19:10

Required by (7)

Sources (1)

Latest Comments

vuvko commented on 2020-10-20 19:52

Thank you! It just confusing as your package provides flatbuffers but other packages do not know it's static only.

thrasibule commented on 2020-10-20 19:16

@vuvko It's called static for a reason :) I've pushed a new version that also provides the shared library. Does it work for you?

vuvko commented on 2020-10-20 18:09

Hello, I'm trying to compile python-onnxruntime with your package as it's providing flatbuffers. But CMake couldn't find the shared libraries and throws an error:

CMake Error at CMakeLists.txt:806 (add_library):
  add_library cannot create ALIAS target "flatbuffers" because target
  "flatbuffers::flatbuffers_shared" does not already exist.

Am I correct that you do not provide shared libraries and all projects should be linked statically with your package?

thrasibule commented on 2018-06-25 13:43

Thanks @halving, this is the right fix, I've pushed an update. I'm not updating it to 1.9 yet because the static version is required by arrow, and the latest released version of arrow is not compatible with flatbuffers 1.9.0 yet.

halving commented on 2018-06-25 13:28

Got the build working with the current version (1.8.0-1) by adding "-DCMAKE_CXX_FLAGS="-Wno-ignored-qualifiers" \" to the PKGBUILD build() flags. Don't know if that was the "right" way to fix this though.

arch_nomad commented on 2018-06-20 20:37

I'm getting the following error:

Is this related to it being outdated?

In member function ‘flatbuffers::CheckedError flatbuffers::Parser::ParseHexNum(int, uint64_t*)’:
/tmp/packerbuild-1001/flatbuffers-static/flatbuffers-static/src/flatbuffers-1.8.0/src/idl_parser.cpp:220:62: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers]
     if (!isxdigit(static_cast<const unsigned char>(cursor_[i])))
                                                              ^
/tmp/packerbuild-1001/flatbuffers-static/flatbuffers-static/src/flatbuffers-1.8.0/src/idl_parser.cpp: In member function ‘flatbuffers::CheckedError flatbuffers::Parser::Next()’:
/tmp/packerbuild-1001/flatbuffers-static/flatbuffers-static/src/flatbuffers-1.8.0/src/idl_parser.cpp:260:62: error: type qualifiers ignored on cast result type [-Werror=ignored-qualifiers]
         if(!isdigit(static_cast<const unsigned char>(*cursor_))) return NoError();
                                                              ^
cc1plus: all warnings being treated as errors
make[2]: *** [CMakeFiles/flatc.dir/build.make:76: CMakeFiles/flatc.dir/src/idl_parser.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:68: CMakeFiles/flatc.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
==> ERROR: A failure occurred in build().