mo22 / jnipp Goto Github PK
View Code? Open in Web Editor NEWC++11 JNI wrapper
License: Apache License 2.0
C++11 JNI wrapper
License: Apache License 2.0
The closest I could get to building with gcc or clang is as follows:
g++ -std=c++11 -fvisibility=hidden -fvisibility-inlines-hidden test.cpp _java.cpp -o test -I .. -I /usr/lib/jvm/default-java/include -I .
I need the "-I" include the jni headers, but this will need to be adjusted per platform. Perhaps a build system, like cmake and find_package command could be used to facilitate this. Also, "_java.cpp" was not included and needs to be.
The generate script should state that needs bash if it needs bash.
On line 299 there is a todo. This likely needs to beremoved. The commented code cannot work correctly, the destructor for std::string is allowed to (expected to?) free the memory that is pointed at by the return of string::c_str().
/*
// @TODO: this is buggy.
const char* c_str() const {
std::string tmp = std_str();
return tmp.c_str();
}
*/
Stray android include around line 63 of jnicpp.h
Should be either an #else or an #elif defined. I have sample fixed for this at: https://github.com/Sqeaky/jnipp/blob/master/jnipp.h
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.