Fix the following error that occurs when building FAILED:…
- User
Fix the following error that occurs when building FAILED: native/CMakeFiles/jcef.dir/CefBrowser_N.cpp.o /usr/bin/c++ -DCEF_USE_SANDBOX -DNDEBUG -DUSING_JAVA -D_FILE_OFFSET_BITS=64 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -Djcef_EXPORTS -I/home/runner/work/java-cef/java-cef/third_party/cef/cef_binary_130.1.9+gfc42567+chromium-130.0.6723.70_linux64 -I/usr/lib/jvm/temurin-11-jdk-amd64/include -I/usr/lib/jvm/temurin-11-jdk-amd64/include/linux -O3 -DNDEBUG -fPIC -fvisibility=default -fno-strict-aliasing -fPIC -fstack-protector -funwind-tables -fvisibility=hidden --param=ssp-buffer-size=4 -pipe -pthread -Wall -Werror -Wno-missing-field-initializers -Wno-unused-parameter -Wno-error=comment -Wno-comment -Wno-deprecated-declarations -fno-exceptions -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -std=c++17 -Wsign-compare -Wno-undefined-var-template -Wno-literal-suffix -Wno-narrowing -Wno-attributes -O2 -fdata-sections -ffunction-sections -fno-ident -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -MD -MT native/CMakeFiles/jcef.dir/CefBrowser_N.cpp.o -MF native/CMakeFiles/jcef.dir/CefBrowser_N.cpp.o.d -o native/CMakeFiles/jcef.dir/CefBrowser_N.cpp.o -c /home/runner/work/java-cef/java-cef/native/CefBrowser_N.cpp /home/runner/work/java-cef/java-cef/native/CefBrowser_N.cpp: In function ‘void {anonymous}::create(std::shared_ptr<{anonymous}::JNIObjectsForCreate>, jlong, jboolean, jboolean)’: /home/runner/work/java-cef/java-cef/native/CefBrowser_N.cpp:1065:16: error: ‘GetDrawableOfCanvas’ was not declared in this scope 1065 | parent = GetDrawableOfCanvas(objs->canvas, env); | ^~~~~~~~~~~~~~~~~~~ At global scope: cc1plus: error: unrecognized command line option ‘-Wno-undefined-var-template’ [-Werror] cc1plus: all warnings being treated as errors [196/262] Building CXX object native/CMakeFiles/jcef.dir/CefApp.cpp.o [197/262] Building CXX object native/CMakeFiles/jcef.dir/CefCommandLine_N.cpp.o [198/262] Building CXX object native/CMakeFiles/jcef.dir/CefClientHandler.cpp.o ninja: build stopped: subcommand failed.
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.