compile

g++ xx.cpp -fpic -shared -o xx.so

g++ -I/usr/local/include/jellyfish-2.2.6 -std=c++0x -Wall -O3 -L/usr/local/lib -ljellyfish-2.0 -lpthread -Wl,--rpath=/usr/local/lib jf_count_dump.cc -o jf_count_dump

g++ jf_count_dump.cc -I/usr/local/include/jellyfish-2.2.6 -std=c++0x -fpic -shared -o libjf_counf_dump.so

g++ Hello.cc -fpic -I/usr/lib/jvm/java-1.8.0-openjdk-amd64/include -I/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux -I/home/sky7282/test/ -shared -o /home/sky7282/test/hello.so

g++ jnitest.cpp -fpic -I/usr/lib/jvm/java-1.8.0-openjdk-amd64/include -I/usr/lib/jvm/java-1.8.0-openjdk-amd64/include/linux -I/home/sky7282/ttt/ -shared -o /home/sky7282/ttt/mynative.so

你可能感兴趣的:(compile)