Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS project is not compiling "No package 'openssl' found" #24897

Closed
andrewstang opened this issue Feb 7, 2023 · 7 comments · Fixed by #24901
Closed

iOS project is not compiling "No package 'openssl' found" #24897

andrewstang opened this issue Feb 7, 2023 · 7 comments · Fixed by #24901
Labels

Comments

@andrewstang
Copy link

xcode log:Package openssl was not found in the pkg-config search path.
Perhaps you should add the directory containing `openssl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'openssl' found
Could not run pkg-config.

I use "export PKG_CONFIG_PATH="/usr/local/opt/openssl/lib/pkgconfig" in terminal, it's no problem, pkg-config can search openssl. but how to do in Xcode?

@bzbarsky-apple
Copy link
Contributor

@andrewstang Put that export line in your ~/.bashrc (the relevant Xcode bits are run in bash)? Or manually run bootstrap from the command line in your terminal so that Xcode is not trying to do it.

That said, the symlink approach described at https://github.com/project-chip/connectedhomeip/blob/master/docs/guides/BUILDING.md#installing-prerequisites-on-macos should also work (including on an M1 Mac, as long as the paths are correct; it looks like in your case things are in /usr/local/opt, not /usr/local/lib or /opt/homebrew/opt/.., which may depend on the exact package manager you used to install openssl).

@bzbarsky-apple
Copy link
Contributor

That said, the fact that this depends on openssl at all is broken. I'll see if I can fix that.

bzbarsky-apple added a commit to bzbarsky-apple/connectedhomeip that referenced this issue Feb 7, 2023
Bootstrap seems to do something with chip_crypto as part ofthe bootstrap
process.  Have it use the already-available boringssl for that instead of
requiring an external openssl.

Fixes project-chip#24897
@andrewstang
Copy link
Author

andrewstang commented Feb 8, 2023

@bzbarsky-apple I pull down new repos, but it still fails to compile.
build log as follow:
Build CHIP Tool App_2023-02-08T19-32-57.txt

@bzbarsky-apple
Copy link
Contributor

@andrewstang Is that with the export PKG_CONFIG_PATH bits added to your .bashrc? If not, then "pull down new repos" is not going to change anything, since #24901 is not merged yet.

yufengwangca pushed a commit that referenced this issue Feb 8, 2023
* Stop requiring openssl to bootstrap.

Bootstrap seems to do something with chip_crypto as part ofthe bootstrap
process.  Have it use the already-available boringssl for that instead of
requiring an external openssl.

Fixes #24897

* Also fix the no-cipd bootstrap.
@bzbarsky-apple
Copy link
Contributor

@andrewstang OK, now #24901 is merged. Try tip?

@andrewstang
Copy link
Author

@bzbarsky-apple build success!!!thanks a lot

@bzbarsky-apple
Copy link
Contributor

@andrewstang No problem, and thank you for filing this!

lpbeliveau-silabs pushed a commit to lpbeliveau-silabs/connectedhomeip that referenced this issue Feb 13, 2023
* Stop requiring openssl to bootstrap.

Bootstrap seems to do something with chip_crypto as part ofthe bootstrap
process.  Have it use the already-available boringssl for that instead of
requiring an external openssl.

Fixes project-chip#24897

* Also fix the no-cipd bootstrap.
kkasperczyk-no pushed a commit to kkasperczyk-no/sdk-connectedhomeip that referenced this issue Mar 15, 2023
* Stop requiring openssl to bootstrap.

Bootstrap seems to do something with chip_crypto as part ofthe bootstrap
process.  Have it use the already-available boringssl for that instead of
requiring an external openssl.

Fixes project-chip/connectedhomeip#24897

* Also fix the no-cipd bootstrap.
kkasperczyk-no pushed a commit to kkasperczyk-no/sdk-connectedhomeip that referenced this issue Mar 15, 2023
* Stop requiring openssl to bootstrap.

Bootstrap seems to do something with chip_crypto as part ofthe bootstrap
process.  Have it use the already-available boringssl for that instead of
requiring an external openssl.

Fixes project-chip/connectedhomeip#24897

* Also fix the no-cipd bootstrap.
lecndav pushed a commit to lecndav/connectedhomeip that referenced this issue Mar 22, 2023
* Stop requiring openssl to bootstrap.

Bootstrap seems to do something with chip_crypto as part ofthe bootstrap
process.  Have it use the already-available boringssl for that instead of
requiring an external openssl.

Fixes project-chip#24897

* Also fix the no-cipd bootstrap.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants