hiking90 / aidl-cpp Goto Github PK
View Code? Open in Web Editor NEWAIDL compiler for C++ on Linux Desktop
License: Apache License 2.0
AIDL compiler for C++ on Linux Desktop
License: Apache License 2.0
I reclone the whole project , and rebuild. Before problem has gone.But comes a new one.
aidl-cpp-mine/base/logging.cpp:87:10: warning: 'syscall' is deprecated: first deprecated in
macOS 10.12 - syscall(2) is unsupported; please switch to a supported interface. For SYS_kdebug_trace use
kdebug_signpost(). [-Wdeprecated-declarations]
return syscall(SYS_thread_selfid);
^
/usr/include/unistd.h:745:6: note: 'syscall' has been explicitly marked deprecated here
int syscall(int, ...);
^
1 warning generated.
[ 91%] Building CXX object CMakeFiles/aidl-cpp.dir/base/stringprintf.o
[ 95%] Building CXX object CMakeFiles/aidl-cpp.dir/base/strings.o
[100%] Linking CXX executable aidl-cpp
ld: library not found for -lbinder
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [aidl-cpp] Error 1
make[1]: *** [CMakeFiles/aidl-cpp.dir/all] Error 2
make: *** [all] Error 2
If this project don't support build on macOS 10.13.3?
When I run "make" on commandline, the error occured.The whole stack like below:
Scanning dependencies of target aidl-cpp
[ 4%] Building CXX object CMakeFiles/aidl-cpp.dir/aidl.cpp.o
[ 8%] Building CXX object CMakeFiles/aidl-cpp.dir/aidl_language.cpp.o
In file included from /path/to/aidl-cpp/aidl_language.cpp:12:
aidl_language_y.yy:8:11: error: no member named 'parser' in namespace 'yy'; did you mean 'Parser'?
int yylex(yy::parser::semantic_type *, yy::parser::location_type *, void *);
^~~~~~~~~~
Parser
/path/to/aidl-cpp/./aidl_language.h:382:7: note: 'Parser' declared here
class Parser {
^
In file included from /path/to/aidl-cpp/aidl_language.cpp:12:
aidl_language_y.yy:8:40: error: no member named 'parser' in namespace 'yy'; did you mean 'Parser'?
int yylex(yy::parser::semantic_type *, yy::parser::location_type *, void *);
^~~~~~~~~~
Parser
/path/to/aidl-cpp/./aidl_language.h:382:7: note: 'Parser' declared here
class Parser {
^
In file included from /path/to/aidl-cpp/aidl_language.cpp:12:
aidl_language_y.yy:8:23: error: no type named 'semantic_type' in 'Parser'
int yylex(yy::parser::semantic_type *, yy::parser::location_type *, void *);
~~~~~~~~~~~~^
aidl_language_y.yy:8:52: error: no type named 'location_type' in 'Parser'
int yylex(yy::parser::semantic_type *, yy::parser::location_type *, void *);
~~~~~~~~~~~~^
4 errors generated.
And the version of related tools list below:
bison v3.0.5
flex v2.6.4
cmake 3.11.2
GNU Make 3.81
Apple LLVM version 9.0.0 (clang-900.0.39.2)
Where is wrong?
I found "-lbinder" in CMakeFiles/aidl-cpp.dir/link.txt.The whole content is:
/Library/Developer/CommandLineTools/usr/bin/c++
-std=gnu++11 -fPIC -DPIC -Wno-unused-parameter -Wno-unused-function -Wl,-search_paths_first -Wl,-headerpad_max_install_names
CMakeFiles/aidl-cpp.dir/aidl.cpp.o
CMakeFiles/aidl-cpp.dir/aidl_language.cpp.o ...... -o aidl-cpp -lbinder
but I find c++/g++ help page ,there isn't a "-l" options definition.How's this going?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.