OAID / Tengine-Convert-Tools

Tengine Convert Tool supports converting multi framworks' models into tmfile that suitable for Tengine-Lite AI framework.
Apache License 2.0
94 stars 34 forks source link

Compilation error on macOS #92

Closed Nullkooland closed 3 years ago

Nullkooland commented 3 years ago
.../tengine_convert_tools/core/lib/tengine_filed_infos.cpp:33:31: error: argument to 'section' attribute is not valid for this target: mach-o section specifier requires a segment and section separated by a comma
char tengine_field_info[1024] __TENGINE_ARRT_ENV__ = {
                              ^
.../tengine_convert_tools/core/lib/tengine_filed_infos.cpp:1:53: note: expanded from macro '__TENGINE_ARRT_ENV__'
#define __TENGINE_ARRT_ENV__ __attribute__((section(".tengine")))
                                                    ^

1 error generated.
make[2]: *** [CMakeFiles/tengine-serializer.dir/core/lib/tengine_filed_infos.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
.../tengine_convert_tools/core/lib/tengine_c_helper.cpp:190:27: error: use of undeclared identifier 'EBADSLT'
        set_tengine_errno(EBADSLT);
                          ^

1 error generated.
make[2]: *** [CMakeFiles/tengine-serializer.dir/core/lib/tengine_c_helper.cpp.o] Error 1
make[1]: *** [CMakeFiles/tengine-serializer.dir/all] Error 2
make: *** [all] Error 2

Compiler: Clang 12.0.1

Nullkooland commented 3 years ago

Sorry, I didn't notice that is tool is only compatible with Linux. However, I do hope there will be a macOS option.