Skip to content

Issues with compiling with openssl for mac based platforms #5006

@fred-dev

Description

@fred-dev

I am having issues compiling Poco for mac platforms (my end goal is macos (x86 and arm64) and iOS and iOS Simulator (x86 and arm64).

To achieve this I am first compiling openSSL (seems it is all working ok), and then passing the path to cmake. However I cannot get Poco to compile with openSSL and get a number of errors from Crypto/src/ECKeyImpl.cpp and Crypto/src/EVPPKey.cpp:

error: use of undeclared identifier 'PEM_read_PrivateKey'
error: use of undeclared identifier 'PEM_read_PUBKEY'

I'm using Poco 1.14.2 and openSSL 1.1.1q (I had similar issues with 3.2.1)

I'm using CMake with these flags:
-DPOCO_STATIC=ON -DPOCO_UNBUNDLED=OFF -DENABLE_CRYPTO=ON -DENABLE_NETSSL_OPENSSL=ON

Is there a specific version of openSSL I need to use? Or Specific compiler flags I need for either openSSL or Poco to make this work?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions