Thanks for the suggestions. All implemented, except...
> For Nona and align_image_stack you can also trying to switch to egl by adding -DBUILD_WITH_EGL=on to the CMake command line.
When I do this, the build fails because the linker no longer links against X11. Seems this in the CMakeLists.txt fixes the linking problem and the build works again, but the `NOT HAVE_EGL` is probably there for a reason:
```
-IF(NOT APPLE AND NOT WIN32 AND NOT HAVE_EGL)
+IF(NOT APPLE AND NOT WIN32)
MESSAGE(STATUS "Searching X11 header")
FIND_PACKAGE(X11 REQUIRED)
ENDIF()
Thanks for the suggestions. All implemented, except...
> For Nona and align_image_stack you can also trying to switch to egl by adding -DBUILD_WITH_EGL=on to the CMake command line.
When I do this, the build fails because the linker no longer links against X11. Seems this in the CMakeLists.txt fixes the linking problem and the build works again, but the `NOT HAVE_EGL` is probably there for a reason:
```
-IF(NOT APPLE AND NOT WIN32 AND NOT HAVE_EGL)
+IF(NOT APPLE AND NOT WIN32)
MESSAGE(STATUS "Searching X11 header")
FIND_PACKAGE(X11 REQUIRED)
ENDIF()
```
Error log:
``` build/ccache/ bin/c++ -fPIC -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack- protector- strong -funwind-tables -fasynchronous- unwind- tables -fstack- clash-protectio n -Werror=return-type -flto=auto -g -DNDEBUG -pthread -O2 -g -DNDEBUG -flto=auto -Wl,--as-needed -Wl,--no-undefined -Wl,-z,now -fopenmp -shared -Wl,-soname, libhuginbasewx. so.0.0 -o libhuginbasewx. so.0.0 CMakeFiles/ huginbasewx. dir/wxImageCach e.cpp.o CMakeFiles/ huginbasewx. dir/MyProgressD ialog.cpp. o CMakeFiles/ huginbasewx. dir/PTWXDlg. cpp.o CMakeFiles/ huginbasewx. dir/huginConfig .cpp.o CMakeFiles/ huginbasewx. dir/MyExternalC mdExecDialog. cpp.o CMakeFiles/ huginbasewx. dir/platform. cpp.o CMakeFiles/ huginbasewx. dir/RunStitchPa nel.cpp. o CMakeFiles/ huginbasewx. dir/LensTools. cpp.o CMakeFiles/ huginbasewx. dir/wxLensDB. cpp.o CMakeFiles/ huginbasewx. dir/HFOVDialog. cpp.o CMakeFiles/ huginbasewx. dir/Command. cpp.o CMakeFiles/ huginbasewx. dir/PanoCommand .cpp.o CMakeFiles/ huginbasewx. dir/wxPanoComma nd.cpp. o CMakeFiles/ huginbasewx. dir/CommandHist ory.cpp. o CMakeFiles/ huginbasewx. dir/Executor. cpp.o CMakeFiles/ huginbasewx. dir/AssistantEx ecutor. cpp.o CMakeFiles/ huginbasewx. dir/StitchingEx ecutor. cpp.o CMakeFiles/ huginbasewx. dir/wxcms. cpp.o CMakeFiles/ huginbasewx. dir/wxPlatform. cpp.o CMakeFiles/ huginbasewx. dir/GraphTools. cpp.o -Wl,-rpath, /home/abuild/ rpmbuild/ BUILD/hugin- 2020.0. 0/build/ src/hugin_ base: -L/usr/lib64 -pthread -lwx_baseu-3.1 -lwx_gtk3u_core-3.1 -lwx_gtk3u_aui-3.1 -lwx_gtk3u_xrc-3.1 -lwx_gtk3u_html-3.1 -lwx_baseu_xml-3.1 -lwx_gtk3u_gl-3.1 -lwx_baseu_net-3.1 -lwx_gtk3u_qa-3.1 ../../hugin_ base/libhuginba se.so.0. 0 /usr/lib64/ libpano13. so ../../foreign/ levmar/ libhuginlevmar. a /usr/lib64/ libGLEW. so /usr/lib64/ libboost_ filesystem. so.1.76. 0 /usr/lib64/ libboost_ system. so.1.76. 0 /usr/lib64/ liblapack. so /usr/lib64/ libblas. so /usr/lib64/ libfftw3. so /usr/lib64/ libvigraimpex. so /usr/lib64/ libImath- 2_5.so /usr/lib64/ libIlmImf- 2_5.so /usr/lib64/ libIex- 2_5.so /usr/lib64/ libHalf- 2_5.so /usr/lib64/ libIlmThread- 2_5.so /usr/lib64/libz.so /usr/lib64/ libjpeg. so /usr/lib64/ libtiff. so /usr/lib64/ libpng. so /usr/lib64/libz.so /usr/lib64/libz.so /usr/lib64/ libexiv2. so /usr/lib64/ liblcms2. so /usr/lib64/ libjpeg. so /usr/lib64/ libpng. so /usr/lib64/ libtiff. so /usr/lib64/ libexiv2. so -pthread /usr/lib64/ libOpenGL. so /usr/lib64/ libGLX. so /usr/lib64/ libGLU. so /usr/lib64/ libEGL. so /usr/lib64/ libGLEW. so /usr/lib64/ libsqlite3. so /usr/lib64/ liblcms2. so gcc/x86_ 64-suse- linux/11/ ../../. ./../x86_ 64-suse- linux/bin/ ld: /tmp/ccHfmLJI. ltrans10. ltrans. o: in function `HuginBase: :Color: :detail: :GetProfileFrom Atom(_XDisplay* , char const*)': rpmbuild/ BUILD/hugin- 2020.0. 0/src/hugin1/ base_wx/ wxcms.cpp: 66: undefined reference to `XInternAtom' gcc/x86_ 64-suse- linux/11/ ../../. ./../x86_ 64-suse- linux/bin/ ld: /home/abuild/ rpmbuild/ BUILD/hugin- 2020.0. 0/src/hugin1/ base_wx/ wxcms.cpp: 74: undefined reference to `XDefaultRootWi ndow' gcc/x86_ 64-suse- linux/11/ ../../. ./../x86_ 64-suse- linux/bin/ ld: /home/abuild/ rpmbuild/ BUILD/hugin- 2020.0. 0/src/hugin1/ base_wx/ wxcms.cpp: 77: undefined reference to `XGetWindowProp erty' gcc/x86_ 64-suse- linux/11/ ../../. ./../x86_ 64-suse- linux/bin/ ld: /home/abuild/ rpmbuild/ BUILD/hugin- 2020.0. 0/src/hugin1/ base_wx/ wxcms.cpp: 84: undefined reference to `XFree' gcc/x86_ 64-suse- linux/11/ ../../. ./../x86_ 64-suse- linux/bin/ ld: /tmp/ccHfmLJI. ltrans10. ltrans. o: in function `HuginBase: :Color: :detail: :GetMonitorProf ile(wxString& , void*&)': rpmbuild/ BUILD/hugin- 2020.0. 0/src/hugin1/ base_wx/ wxcms.cpp: 99: undefined reference to `XOpenDisplay' gcc/x86_ 64-suse- linux/11/ ../../. ./../x86_ 64-suse- linux/bin/ ld: /home/abuild/ rpmbuild/ BUILD/hugin- 2020.0. 0/src/hugin1/ base_wx/ wxcms.cpp: 112: undefined reference to `XSync' gcc/x86_ 64-suse- linux/11/ ../../. ./../x86_ 64-suse- linux/bin/ ld: /home/abuild/ rpmbuild/ BUILD/hugin- 2020.0. 0/src/hugin1/ base_wx/ wxcms.cpp: 113: undefined reference to `XCloseDisplay' base_wx/ CMakeFiles/ huginbasewx. dir/build. make:438: src/hugin1/ base_wx/ libhuginbasewx. so.0.0] Error 1 abuild/ rpmbuild/ BUILD/hugin- 2020.0. 0/build' Makefile2: 1456: src/hugin1/ base_wx/ CMakeFiles/ huginbasewx. dir/all] Error 2
[ 39s] /var/lib/
[ 39s] /usr/lib64/
[ 39s] /home/abuild/
[ 39s] /usr/lib64/
[ 39s] /usr/lib64/
[ 39s] /usr/lib64/
[ 39s] /usr/lib64/
[ 39s] /home/abuild/
[ 39s] /usr/lib64/
[ 39s] /usr/lib64/
[ 39s] collect2: error: ld returned 1 exit status
[ 39s] make[2]: *** [src/hugin1/
[ 39s] make[2]: Leaving directory '/home/
[ 39s] make[1]: *** [CMakeFiles/
[ 39s] make: *** [Makefile:159: all] Error 2
```