This repository was archived by the owner on Jan 9, 2023. It is now read-only.
This repository was archived by the owner on Jan 9, 2023. It is now read-only.
Scons fails to detect libpng library on CentOS 6 #686
Open
Description
This issue comes up a lot because a default g++ compiler is not installed when following the build setup instructions for CentOS 6. I don't believe this issue comes up in RHEL 6 because it's included with a documented package. Furthermore, even when fixing the issue it still will need to rescan for the configs (--config=force on the scons command line). This should happen by default since the time to do the scan is negligible.
Reproduction steps
- Create CentOS 6 minimal VM
- Follow manual build setup instructions
1.Build using scons
Expected: build completes without error
Actual: Error message saying that it can't find libpng12
AC
- Update build instructions to include default g++ for CentOS 6 (gcc-g++ package) or update scons to use devtools g++ install
- Add a check to scons for a g++ compiler and output an appropriate error if it can't find one
- Update scons to always scan for libpng (it may be possible to disable caching) when running the third_party tools build