Problem when starting osgEarth #2650
-
hello, everyone! int main()
} VERTEX glCompileShader "oe_rex_normalMapVS" FAILED VERTEX glCompileShader "oe_rex_morph" FAILED VERTEX glCompileShader "main(vertex)" FAILED [osgEarth]* [VirtualProgram] Program will not link! [osgEarth]* [VirtualProgram] Program will not link! runtime environment: the content of cmakelists.txt project(tesosgearth LANGUAGES CXX) set(CMAKE_CXX_STANDARD 17) find_package(osg REQUIRED) set(OSGEARTH_LIBRARY "/usr/local/lib64/libosgEarth.so" "/usr/local/lib64/libosgEarthImGui.so") add_executable(tesosgearth main.cpp) target_link_libraries(tesosgearth osg osgViewer osgDB osgUtil OpenGL ${OSGEARTH_LIBRARY}) include(GNUInstallDirs) if you can help me, thank a lot! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
The assertion error offers a suggestion:
Try that. #include <osgEarth/GLUtils>
...
viewer.setRealizeOperation(new GL3RealizeOperation()); |
Beta Was this translation helpful? Give feedback.
The assertion error offers a suggestion:
Try that.