poco icon indicating copy to clipboard operation
poco copied to clipboard

Build failure for Android on Linux with OpenSSL

Open ElephantInTheRoomFirst opened this issue 9 years ago • 1 comments

Thanks to POCO Team for providing such useful and high level library. I succeeded to build the library on Linux. Then I tried to cross build for Android on Linux.

#####During the cross build I encountered following errors. This error is present on both x86 and armeabi ABI.

** Creating dependency info for src/JSONConfiguration.cpp
In file included from include/Poco/Crypto/CipherKeyImpl.h:24:0,
				 from include/Poco/Crypto/CipherKey.h:24,
				 from src/CipherFactory.cpp:19:
include/Poco/Crypto/OpenSSLInitializer.h:26:28: fatal error: openssl/crypto.h: No such file or directory
 #include <openssl/crypto.h>
							^
compilation terminated.
make[1]: *** [/home/ninja/Downloads/poco-1.7.8p2-all/Crypto/obj/Android/x86/debug_static/CipherFactory.o] Error 1
make[1]: *** Waiting for unfinished jobs....
** Creating dependency info for src/StatementImpl.cpp
In file included from include/Poco/Crypto/CipherKeyImpl.h:24:0,
				 from include/Poco/Crypto/CipherKey.h:24,
				 from include/Poco/Crypto/CipherImpl.h:25,
				 from src/CipherImpl.cpp:17:
include/Poco/Crypto/OpenSSLInitializer.h:26:28: fatal error: openssl/crypto.h: No such file or directory
 #include <openssl/crypto.h>
							^
compilation terminated.
make[1]: *** [/home/ninja/Downloads/poco-1.7.8p2-all/Crypto/obj/Android/x86/debug_static/CipherImpl.o] Error 1
make: *** [Crypto-libexec] Error 2
make: *** Waiting for unfinished jobs....
** Creating dependency info for src/XMLConfiguration.cpp

 
It is present in my 
[root@localhost /]# find / -name crypto.h
/usr/include/openssl/crypto.h

  How can I give this path in INCLUDE path var? Or do I need some thing else?

It will be great if you tell me how to fix this compilation error.

#####What is meaning of j4 and its significance in command ./make -s -j4? I believe, -s is for static library.

ElephantInTheRoomFirst avatar May 13 '17 09:05 ElephantInTheRoomFirst

Decided to use another library.

ElephantInTheRoomFirst avatar Jun 26 '17 20:06 ElephantInTheRoomFirst