question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"ERROR: openssl not found" when trying to build ffmpeg or ffpyplayer

See original GitHub issue

I’ve compiled my app and the videos in it are not running. I realised that I hadn’t built ffmpeg or ffmpyplayer. When I try to build these I get the following error: “ERROR: openssl not found”

I’ve tried “cleaning”, rebuilding “openssl” and updating the project but still get the same error.

I’ve also tried building inside my Conda environment and outside the environment and get the same error.

Any guidance on whether this is me missing something or a possible bug would be very much appreciated.

Thanks!

Toolchain status:

audiostream  - Not built
click        - Not built
curly        - Not built
cymunk       - Not built
distribute   - Not built
ffmpeg       - Not built
ffpyplayer   - Not built
flask        - Not built
freetype     - Build OK (built at 2020-09-08 05:44:40.253740)
host_setuptools - Not built
host_setuptools3 - Build OK (built at 2020-09-08 05:58:21.398315)
hostlibffi   - Build OK (built at 2020-09-17 06:59:07.414195)
hostopenssl  - Build OK (built at 2020-09-08 05:45:59.442150)
hostpython3  - Build OK (built at 2020-09-08 05:57:18.594381)
ios          - Build OK (built at 2020-09-08 06:45:39.659913)
itsdangerous - Not built
jinja2       - Not built
kivent_core  - Not built
kivy         - Build OK (built at 2020-09-08 06:49:03.508494)
libcurl      - Not built
libffi       - Build OK (built at 2020-09-08 05:47:22.083506)
libjpeg      - Not built
libpng       - Not built
libzbar      - Not built
markupsafe   - Not built
netifaces    - Not built
numpy        - Not built
openssl      - Build OK (built at 2020-09-17 06:03:49.809875)
photolibrary - Not built
pil          - Not built
pillow       - Not built
pkgresources - Not built
plyer        - Not built
pycrypto     - Not built
pykka        - Not built
pyobjus      - Build OK (built at 2020-09-08 06:46:15.558313)
python3      - Build OK (built at 2020-09-08 06:02:37.948222)
pyyaml       - Not built
sdl2         - Build OK (built at 2020-09-08 05:49:59.549994)
sdl2_image   - Build OK (built at 2020-09-08 05:57:36.117164)
sdl2_mixer   - Build OK (built at 2020-09-08 05:58:02.670378)
sdl2_ttf     - Build OK (built at 2020-09-08 05:58:13.976426)
werkzeug     - Not built
zbarlight    - Not built
toolchain recipes:

audiostream  master  
click        master  
curly        master  
cymunk       master  
distribute   0.7.3   
ffmpeg       n3.4.5  
ffpyplayer   4.2.0   
flask        master  
freetype     2.5.5   
host_setuptools3 40.9.0  
hostlibffi   3.2.1   
hostopenssl  1.1.1f  
hostpython3  3.8.2   
ios          master  
itsdangerous master  
jinja2       master  
kivent_core  master  
kivy         067064c23a275187e67f1c9d7de7cc06f384af4d
libcurl      7.65.3  
libffi       3.2.1   
libjpeg      v9a     
libpng       1.6.26  
libzbar      0.10    
markupsafe   master  
netifaces    0.10.9  
numpy        1.16.4  
openssl      1.1.1f  
photolibrary master  
pil          2.8.2   
pillow       6.1.0   
plyer        master  
pycrypto     2.6.1   
pykka        1.2.1   
pyobjus      master  
python3      3.8.2   
pyyaml       3.11    
sdl2         7cc4fc886d9e
sdl2_image   2.0.4   
sdl2_mixer   2.0.4   
sdl2_ttf     2.0.14  
werkzeug     master  
zbarlight    1.2

–>

Versions

  • Python : 3.6.10
  • MacOS version : 10.15.5
  • XCode Version : 10.3
  • Cython version : 0.29.10

To Reproduce sudo toolchain build ffpyplayer (If I don’t use sudo I get a permission denied error…)

Logs

[INFO    ] Prebuild ffmpeg for x86_64
[DEBUG   ] Invoking prebuild_x86_64
[INFO    ] Build ffmpeg for x86_64
[INFO    ] CC and CXX will not use ccache
[INFO    ] Running Shell: /Users/nico/PycharmProjects/EVPack/kivy-ios/build/ffmpeg/x86_64/FFmpeg-n3.4.5/configure ('--target-os=darwin', '--arch=x86_64', '--cc=/tmp/tmpx6u78tzw', '--prefix=/Users/nico/PycharmProjects/EVPack/kivy-ios/build/ffmpeg/x86_64/FFmpeg-n3.4.5/dist', '--extra-cflags=-O3 -miphoneos-version-min=8.0 -I/Users/nico/PycharmProjects/EVPack/kivy-ios/dist/include/x86_64/hostlibffi -I/Users/nico/PycharmProjects/EVPack/kivy-ios/dist/include/x86_64/ffi -I/Users/nico/PycharmProjects/EVPack/kivy-ios/dist/include/x86_64/openssl -I/Users/nico/PycharmProjects/EVPack/kivy-ios/dist/include/x86_64/ffmpeg -I/Users/nico/PycharmProjects/EVPack/kivy-ios/dist/include/x86_64', '--extra-cxxflags=-O3 -miphoneos-version-min=8.0 -I/Users/nico/PycharmProjects/EVPack/kivy-ios/dist/include/x86_64/hostlibffi -I/Users/nico/PycharmProjects/EVPack/kivy-ios/dist/include/x86_64/ffi -I/Users/nico/PycharmProjects/EVPack/kivy-ios/dist/include/x86_64/openssl -I/Users/nico/PycharmProjects/EVPack/kivy-ios/dist/include/x86_64/ffmpeg -I/Users/nico/PycharmProjects/EVPack/kivy-ios/dist/include/x86_64', '--extra-ldflags=-arch x86_64 -L/Users/nico/PycharmProjects/EVPack/kivy-ios/dist/lib -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/usr/lib -miphoneos-version-min=8.0', '--disable-x86asm', '--disable-everything', '--enable-parsers', '--enable-decoders', '--enable-demuxers', '--enable-filter=aresample,resample,crop,scale', '--enable-protocol=file,http,rtmp', '--enable-pic', '--enable-small', '--enable-hwaccels', '--enable-static', '--disable-shared', '--enable-gpl', '--disable-dxva2', '--disable-vdpau', '--disable-vaapi', '--disable-dct', '--enable-cross-compile', '--disable-debug', '--disable-programs', '--disable-doc', '--enable-pic', '--enable-avresample', '--enable-openssl', '--enable-nonfree', '--enable-protocol=https,tls_openssl') {'_env': {'CC': '/tmp/tmpx6u78tzw', 'CXX': '/tmp/tmpprzehsoy', 'AR': '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar', 'LD': '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld', 'OTHER_CFLAGS': '-I/Users/nico/PycharmProjects/EVPack/kivy-ios/dist/include/x86_64/hostlibffi -I/Users/nico/PycharmProjects/EVPack/kivy-ios/dist/include/x86_64/ffi -I/Users/nico/PycharmProjects/EVPack/kivy-ios/dist/include/x86_64/openssl -I/Users/nico/PycharmProjects/EVPack/kivy-ios/dist/include/x86_64/ffmpeg -I/Users/nico/PycharmProjects/EVPack/kivy-ios/dist/include/x86_64', 'OTHER_LDFLAGS': '-L/Users/nico/PycharmProjects/EVPack/kivy-ios/dist/lib', 'CFLAGS': '-O3 -miphoneos-version-min=8.0 -I/Users/nico/PycharmProjects/EVPack/kivy-ios/dist/include/x86_64/hostlibffi -I/Users/nico/PycharmProjects/EVPack/kivy-ios/dist/include/x86_64/ffi -I/Users/nico/PycharmProjects/EVPack/kivy-ios/dist/include/x86_64/openssl -I/Users/nico/PycharmProjects/EVPack/kivy-ios/dist/include/x86_64/ffmpeg -I/Users/nico/PycharmProjects/EVPack/kivy-ios/dist/include/x86_64', 'LDFLAGS': '-arch x86_64 -L/Users/nico/PycharmProjects/EVPack/kivy-ios/dist/lib -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/usr/lib -miphoneos-version-min=8.0', 'VERBOSE': '1'}, '_iter': True, '_out_bufsize': 1, '_err_to_out': True}
[DEBUG   ] ERROR: openssl not found
[DEBUG   ] 
[DEBUG   ] If you think configure made a mistake, make sure you are using the latest
[DEBUG   ] version from Git.  If the latest version fails, report the problem to the
[DEBUG   ] ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
[DEBUG   ] Include the log file "ffbuild/config.log" produced by configure as this will help
[DEBUG   ] solve the problem.
Exception in thread background thread for pid 65980:
Traceback (most recent call last):
  File "/Users/nico/opt/anaconda3/envs/EVMap/lib/python3.6/threading.py", line 916, in _bootstrap_inner
    self.run()
  File "/Users/nico/opt/anaconda3/envs/EVMap/lib/python3.6/threading.py", line 864, in run
    self._target(*self._args, **self._kwargs)
  File "/Users/nico/opt/anaconda3/envs/EVMap/lib/python3.6/site-packages/sh.py", line 1662, in wrap
    fn(*args, **kwargs)
  File "/Users/nico/opt/anaconda3/envs/EVMap/lib/python3.6/site-packages/sh.py", line 2606, in background_thread
    handle_exit_code(exit_code)
  File "/Users/nico/opt/anaconda3/envs/EVMap/lib/python3.6/site-packages/sh.py", line 2304, in fn
    return self.command.handle_command_exit_code(exit_code)
  File "/Users/nico/opt/anaconda3/envs/EVMap/lib/python3.6/site-packages/sh.py", line 877, in handle_command_exit_code
    raise exc
sh.ErrorReturnCode_1: 

  RAN: /Users/nico/PycharmProjects/EVPack/kivy-ios/build/ffmpeg/x86_64/FFmpeg-n3.4.5/configure --target-os=darwin --arch=x86_64 --cc=/tmp/tmpx6u78tzw --prefix=/Users/nico/PycharmProjects/EVPack/kivy-ios/build/ffmpeg/x86_64/FFmpeg-n3.4.5/dist '--extra-cflags=-O3 -miphoneos-version-min=8.0 -I/Users/nico/PycharmProjects/EVPack/kivy-ios/dist/include/x86_64/hostlibffi -I/Users/nico/PycharmProjects/EVPack/kivy-ios/dist/include/x86_64/ffi -I/Users/nico/PycharmProjects/EVPack/kivy-ios/dist/include/x86_64/openssl -I/Users/nico/PycharmProjects/EVPack/kivy-ios/dist/include/x86_64/ffmpeg -I/Users/nico/PycharmProjects/EVPack/kivy-ios/dist/include/x86_64' '--extra-cxxflags=-O3 -miphoneos-version-min=8.0 -I/Users/nico/PycharmProjects/EVPack/kivy-ios/dist/include/x86_64/hostlibffi -I/Users/nico/PycharmProjects/EVPack/kivy-ios/dist/include/x86_64/ffi -I/Users/nico/PycharmProjects/EVPack/kivy-ios/dist/include/x86_64/openssl -I/Users/nico/PycharmProjects/EVPack/kivy-ios/dist/include/x86_64/ffmpeg -I/Users/nico/PycharmProjects/EVPack/kivy-ios/dist/include/x86_64' '--extra-ldflags=-arch x86_64 -L/Users/nico/PycharmProjects/EVPack/kivy-ios/dist/lib -L/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/usr/lib -miphoneos-version-min=8.0' --disable-x86asm --disable-everything --enable-parsers --enable-decoders --enable-demuxers --enable-filter=aresample,resample,crop,scale --enable-protocol=file,http,rtmp --enable-pic --enable-small --enable-hwaccels --enable-static --disable-shared --enable-gpl --disable-dxva2 --disable-vdpau --disable-vaapi --disable-dct --enable-cross-compile --disable-debug --disable-programs --disable-doc --enable-pic --enable-avresample --enable-openssl --enable-nonfree --enable-protocol=https,tls_openssl

  STDOUT:
ERROR: openssl not found

If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "ffbuild/config.log" produced by configure as this will help
solve the problem.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:26 (12 by maintainers)

github_iconTop GitHub Comments

2reactions
n-marchcommented, Oct 30, 2020

Ok, got it. This is what I did:

(I first run git clean -fdxn to check what was going to be deleted - in case someone is reading this…)

git clean -fdx
rm -r EVPack

[Created a folder called EVAppPack]

cd nico/PycharmProjects/EVAppPack
brew install autoconf automake libtool pkg-config 

[=> ‘Error: automake 1.16.2 is already installed’]

brew link libtool 

[=> Already linked: /usr/local/Cellar/libtool/2.4.6_2]

At this point I realised that the requirement on the web - https://kivy.org/doc/stable/guide/packaging-ios.html - incorrectly (?) states that you need Cython==0.29.10, which is why I was having issues running “toolchain build kivy” previously. We should suggest to change that on the web(?)

git clone git://github.com/kivy/kivy-ios
git checkout fix/ffmpg

I had to go into “kivy-ios” folder and allow “read and write” applying it to all files in the folder. I also checked that the changes in fix/ffmpg where correctly rolled out in the openssl and ffmpeg files in the Recipe folder.

toolchain build python3 openssl kivy

[Everything built well]

Unfortunately, when I run toolchain build ffmpeg or toolchain build ffmpyplayer I get the same “openssl not found” message…

0reactions
n-marchcommented, Nov 9, 2020

Update: I have managed to include openssl.pc to the /usr/local/lib/pkgconfig but still unable to build ffmpeg when I run toolchain build ffmpeg

The above was an attempt to solve the issue highlighted in the config.log posted above:

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

Odd: A folder named ffbuild keeps appearing in /usr/nico

Read more comments on GitHub >

github_iconTop Results From Across the Web

3 - Super User
ERROR : openssl not found during FFmpeg ./configure · libogg ( /home/reccsi/Dev/build-x64/libogg ) · libvorbis( /home/reccsi/Dev/build-x64/ ...
Read more >
FFmpeg build error "openssl not found" (for iOS on Mac)
I want to build FFmpeg with --enable-openssl but it fails saying "Error: openssl not found", although I linked it within the build script ......
Read more >
buildozer fails to compile ffpyplayer - Google Groups
I found the time to update to 1.9.1. The dev environment works fine, but when I update my build environment, buildozer fails to...
Read more >
ffpyplayer - PyPI
If you want to use it under the LGPL you need to compile FFmpeg yourself with the correct ... However, releases are not...
Read more >
kivy@groups.io | Updates to Github
2) `ffmpeg` recipe should have `['openssl', 'ffpyplayer_codecs']` as `opt_depends`. But in that case for some reason toolchain tries to build ` ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found