Error trying to build on Mac
Hey, I'm on a Mac High Sierra I've got all dependencies (including openssl installed through brew) but when I run "cmake .." on the build folder I get the following error:
-- Checking for module 'eet>=1.18.0' -- Package 'openssl', required by 'emile', not found CMake Error at /usr/local/Cellar/cmake/3.11.4/share/cmake/Modules/FindPkgConfig.cmake:418 (message): A required package was not found Call Stack (most recent call first): /usr/local/Cellar/cmake/3.11.4/share/cmake/Modules/FindPkgConfig.cmake:585 (_pkg_check_modules_internal) CMakeLists.txt:72 (pkg_check_modules)
-- Configuring incomplete, errors occurred! See also "/Users/lcassa/Downloads/war2edit-master/build/CMakeFiles/CMakeOutput.log". See also "/Users/lcassa/Downloads/war2edit-master/build/CMakeFiles/CMakeError.log".
Hey,
mh... I'm not quite sure. I've never had the chance to try High Sierra. I know that macOS does not like openssl, and unfortunately it is a strong dependency of the EFL (which is the GUI framework war2edit is built with).
Maybe pkg-config is not able to find an openssl.pc file in the PKG_CONFIG_PATH. Can you please run the following:
pkg-config --modversion openssl
If it returns something like
Package openssa was not found in the pkg-config search path.
Perhaps you should add the directory containing `openssa.pc'
to the PKG_CONFIG_PATH environment variable
No package 'openssl' found
You should try to locate where homebrew installs openssl.pc and add it to the PKG_CONFIG_FILE environment variable (assuming a POSIX-compatible shell):
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:<path/to/dir/containing/openssl.pc>"
Ok, I figured it out I ran: brew info openssl found this path: "For pkg-config to find this software you may need to set: PKG_CONFIG_PATH: /usr/local/opt/openssl/lib/pkgconfig" exported this way: export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig:/usr/local/opt/openssl/lib/pkgconfig" then I hit this issue: -- Checking for module 'liblzma' -- No package 'liblzma' found so I ran this command: brew install xz and the cmake finished successfully 😄 thanks for your help @jeanguyomarch !