openframeworks / openframeworks/openFrameworks
opencv: no symbols warnings while building opencv
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 10.4k
- Forks
- 2.6k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 9
Description
While investigating #4576 , I found that there were lots of missing symobls warning during building opencv by apothecary update ofxOpenCv. A part of warnings is:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: for architecture: i386 file: ../../lib/libopencv_highgui.a(grfmt_imageio.cpp.o) h
as no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: for architecture: i386 file: ../../lib/libopencv_highgui.a(grfmt_jpeg.cpp.o) has
no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: for architecture: i386 file: ../../lib/libopencv_highgui.a(grfmt_jpeg2000.cpp.o)
has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: for architecture: i386 file: ../../lib/libopencv_highgui.a(grfmt_png.cpp.o) has n
o symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: for architecture: x86_64 file: ../../lib/libopencv_highgui.a(grfmt_imageio.cpp.o)
has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: for architecture: x86_64 file: ../../lib/libopencv_highgui.a(grfmt_jpeg.cpp.o) ha
s no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: for architecture: x86_64 file: ../../lib/libopencv_highgui.a(grfmt_jpeg2000.cpp.o
) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: for architecture: x86_64 file: ../../lib/libopencv_highgui.a(grfmt_png.cpp.o) has
no symbols
The full log can be found at my gist (note that the log was generated by a slightly modified build script; added -DWITH_EIGEN=OFF option to build opencv in my local).
I'm not sure if this causes some problem or not, but removing warnings is better than keeping them.
FYI: needs https://github.com/openframeworks/openFrameworks/pull/4577 to save stderr to the log file.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing apothecary update ofxOpenCv and review the linked gist for the complete warning output. Inspect the build script, including the -DWITH_EIGEN=OFF variation, and consider the referenced pull request about saving stderr to the log. Done means the cause of the missing-symbol warnings is understood and the OpenCV build completes without unnecessary warnings.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, opencv
- Domain
- build-system, computer-vision
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100