Compile examples faild on ubuntu 18.04

I successfully ran the command “sudo ./install_dependencies.sh” and “./compileOF.sh -j3”,but when i ran the conmmand
" cd OF/examples/graphics/polygonExample
make"
I get an error, the log is below:
Compiling polygonExample for Release
make[1]: 进入目录“/home/ylei/Guoyl/of_v20221214_linux64gcc6_nightly/of_v20221214_linux64gcc6_release/examples/graphics/polygonExample”
Linking bin/polygonExample for linux64
g++ -o bin/polygonExample obj/linux64/Release/src/main.o obj/linux64/Release/src/ofApp.o /home/ylei/Guoyl/of_v20221214_linux64gcc6_nightly/of_v20221214_linux64gcc6_release/libs/openFrameworksCompiled/lib/linux64/libopenFrameworks.a -Wl,-rpath=./libs:./bin/libs -Wl,–as-needed -Wl,–gc-sections -fuse-ld=gold -L/home/ylei/Guoyl/of_v20221214_linux64gcc6_nightly/of_v20221214_linux64gcc6_release/libs/fmod/lib/linux64/ -lfmod /home/ylei/Guoyl/of_v20221214_linux64gcc6_nightly/of_v20221214_linux64gcc6_release/libs/kiss/lib/linux64/libkiss.a /home/ylei/Guoyl/of_v20221214_linux64gcc6_nightly/of_v20221214_linux64gcc6_release/libs/tess2/lib/linux64/libtess2.a -lz -lgstapp-1.0 -lgstvideo-1.0 -lgstbase-1.0 -lgstreamer-1.0 -ludev -lfontconfig -lfreetype -lsndfile -lopenal -lcurl -lglfw -lrtaudio -lpulse-simple -lpulse -lasound -lGLEW -lGLU -lGL -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lmpg123 -lglut -lX11 -lXrandr -lXxf86vm -lXi -lXcursor -ldl -lpthread -lfreeimage -lboost_filesystem -lboost_system -lpugixml -luriparser -lXinerama
/home/ylei/Guoyl/of_v20221214_linux64gcc6_nightly/of_v20221214_linux64gcc6_release/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:403: recipe for target ‘bin/polygonExample’ failed
make[1]: 离开目录“/home/ylei/Guoyl/of_v20221214_linux64gcc6_nightly/of_v20221214_linux64gcc6_release/examples/graphics/polygonExample”
/home/ylei/Guoyl/of_v20221214_linux64gcc6_nightly/of_v20221214_linux64gcc6_release/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:124: recipe for target ‘Release’ failed

Hey @Linker , welcome to the OF forum! The nightly build supports c++ 17 by default, and also some of the newer packages in Ubuntu 22.04. I don’t have a system to test on, but here are a few options to try:

  1. Continue using the nightly build as it was compiled, and tell the project to use c++17. Uncomment line 141 in project’s config.make file and change it to read:
PROJECT_CXX += -std=c++17

I hope this fixes it; I’d be interested to know if it does or or not.

  1. The nightly can be compiled without c++17. Comment out line 139 in /libs/openFrameworksCompiled/project/makefileCommon/config.linux.common.make, so that it reads like this:
# PLATFORM_CXXVER = -std=c++17

And then compile OF again with the compileOF.sh script.

  1. use the 0.12.2 release and not the nightly build with Ubuntu 18.04. This should work great!