Overview
Features
Download
Documentation
Community
Add-Ons & Services

iOS compile error - NetSSL_OpenSSL

Please post support and help requests here.

iOS compile error - NetSSL_OpenSSL

Postby msavant » 04 Sep 2012, 08:08

Hi Everyone,

I had to compile and build openssl myself for iPhone.
After updating /build/config/iPhone SYSFLAGS and SYSLIBS entries, I have successfully managed to build everything including libPocoCrypto.a for iPhoneSimulator, however the build process stops at the very first file of libNetSSL_OpenSSL.

...
** Compiling src/RSAKey.cpp (release, static)
** Compiling src/RSAKeyImpl.cpp (release, static)
** Compiling src/RSADigestEngine.cpp (release, static)
** Compiling src/X509Certificate.cpp (release, static)
** Compiling src/OpenSSLInitializer.cpp (release, static)
** Building library (release) /Users/tester/poco-1.4.3p1-all/lib/iPhoneSimulator/i686/libPocoCrypto.a
** Compiling src/AcceptCertificateHandler.cpp (debug, static)
In file included from include/Poco/Net/VerificationErrorArgs.h:44,
from include/Poco/Net/InvalidCertificateHandler.h:44,
from include/Poco/Net/AcceptCertificateHandler.h:44,
from src/AcceptCertificateHandler.cpp:37:
include/Poco/Net/X509Certificate.h:45:41: error: Poco/Crypto/X509Certificate.h: No such file or directory
In file included from include/Poco/Net/VerificationErrorArgs.h:44,
from include/Poco/Net/InvalidCertificateHandler.h:44,
from include/Poco/Net/AcceptCertificateHandler.h:44,
from src/AcceptCertificateHandler.cpp:37:
include/Poco/Net/X509Certificate.h:58: error: ‘Poco::Crypto’ has not been declared
include/Poco/Net/X509Certificate.h:58: error: expected `{' before ‘X509Certificate’
include/Poco/Net/X509Certificate.h:58: error: function definition does not declare parameters
In file included from include/Poco/Net/InvalidCertificateHandler.h:44,
from include/Poco/Net/AcceptCertificateHandler.h:44,
from src/AcceptCertificateHandler.cpp:37:
include/Poco/Net/VerificationErrorArgs.h:80: error: field ‘_cert’ has incomplete type
include/Poco/Net/VerificationErrorArgs.h: In member function ‘const Poco::Net::X509Certificate& Poco::Net::VerificationErrorArgs::certificate() const’:
include/Poco/Net/VerificationErrorArgs.h:93: error: ‘_cert’ was not declared in this scope
...

Would the include path be an issue ? I am new to 'make' and Mac world :-(

I know I am very close. Any help would be greatly appreciated.

Thanks a lot in advance.
msavant
 
Posts: 2
Joined: 04 Sep 2012, 07:44

Re: iOS compile error - NetSSL_OpenSSL

Postby msavant » 04 Sep 2012, 09:39

Fixed it. For some reason, I had to add the NetSSL_OpenSSL and Crypto include paths together with the openssl include path.

Just using 'make' (not the silent 'make -s' ) showed that these are not included in path for the NetSSL_OpenSSL files.

I am not sure if this is related to my environment, or other people also are experiencing this.
msavant
 
Posts: 2
Joined: 04 Sep 2012, 07:44


Return to Support

Who is online

Users browsing this forum: No registered users and 4 guests