pymol-open-source
pymol-open-source copied to clipboard
Some include paths missing when building in RHEL 8.4
After installing the necessary dependencies
sudo yum install -y subversion gcc gcc-c++ kernel-devel python3-devel glew-devel freeglut-devel libpng-devel freetype-devel libxml2-devel
when building in RHEL 8.4, I had to include additional paths in 2 occasions manually:
-
-I/usr/include/libxml2
(full command was as below)
g++ -pthread -B /home/ec2-user/miniconda3/compiler_compat -Wl,--sysroot=/ -std=c++11 -fPIC -D_PYMOL_LIBPNG -D_PYMOL_FREETYPE -DPYMOL_OPENMP -D_PYMOL_VMD_PLUGINS -D_HAVE_LIBXML -D_PYMOL_NO_MSGPACKC -D_PYMOL_NO_MAIN -Iinclude -Icontrib/uiuc/plugins/include -Iov/src -Ilayer0 -Ilayer1 -Ilayer2 -Ilayer3 -Ilayer4 -Ilayer5 -Ibuild/generated -Icontrib/uiuc/plugins/molfile_plugin/src -I/home/ec2-user/miniconda3/include -I/home/ec2-user/miniconda3/include/python3.8 -I/usr/include/libxml2 -c -MMD layer1/COLLADA.cpp -o build/temp.linux-x86_64-3.8/layer1/COLLADA.o -Werror=return-type -Wunused-variable -Wno-switch -Wno-narrowing -Wno-char-subscripts -O3 -fopenmp
-
-I/usr/include/freetype2 -I/usr/include/libpng16
(full command was as below)
g++ -pthread -B /home/ec2-user/miniconda3/compiler_compat -Wl,--sysroot=/ -std=c++11 -fPIC -D_PYMOL_LIBPNG -D_PYMOL_FREETYPE -DPYMOL_OPENMP -D_PYMOL_VMD_PLUGINS -D_HAVE_LIBXML -D_PYMOL_NO_MSGPACKC -D_PYMOL_NO_MAIN -Iinclude -Icontrib/uiuc/plugins/include -Iov/src -Ilayer0 -Ilayer1 -Ilayer2 -Ilayer3 -Ilayer4 -Ilayer5 -Ibuild/generated -Icontrib/uiuc/plugins/molfile_plugin/src -I/home/ec2-user/miniconda3/include -I/home/ec2-user/miniconda3/include/python3.8 -I/usr/include/freetype2 -I/usr/include/libpng16 -c -MMD layer1/TypeFace.cpp -o build/temp.linux-x86_64-3.8/layer1/TypeFace.o -Werror=return-type -Wunused-variable -Wno-switch -Wno-narrowing -Wno-char-subscripts -O3 -fopenmp
Hi,
just wanted to say that I ran into this as well in KDE neon User - 5.26
(Ubuntu 20.04
). I had to manually add -I/usr/include/freetype2 -I/usr/include/libpng16
as well.