problem
#include "osgViewer/Viewer"
#include "osgDB/ReadFile"
int main(int argc, char** argv)
{
osgViewer::Viewer viewer;
viewer.setSceneData(osgDB::readNodeFile("cow.osg"));
return viewer.run();
}
Error reading file cow.osg: read error (Could not find plugin to read objects from file “cow.osg”.)
reason
I compiled the library with osg3.6.5 on one machine, and then wrote the program. It runs normally, but it is copied to the other machine. The other machine is the library compiled with osg3.7.0, so it causes an error
Osg3.6.5 library
osg3.7.0 library
Read More:
- [problem solving] Error:failed to get canonical path of /cow
- Pandas read the CSV file error filenotf oundError:File b ‘***.csv’ does not exist
- Python read / write file error valueerror: I/O operation on closed file
- Java – read all the files and folders in a certain directory and three methods to get the file name from the file path
- C ා use math.net Read. Mat file, file content is complex
- Springboot error, unable to read configuration file: could not resolve placeholder ‘xxx’ in value “${XXX}
- [unable to read project file xxxxx, XXX failed to load project file, name cannot start with “<" character (hex value 0x3c)] exception handling method
- Read multiple sheets of an excel file according to npoi
- Cannot read configuration file due to insufficient permissions
- Python failed to read TIF file exported by envi.
- Interesting undefined columns selected from read.table and read.csv
- How to read JS file app.ux Global variables in
- Cannot read property ‘this compilation’ of undefined appears in copy webpack plugin
- Solve the error of POM file failed to read artifact descriptor for XXX under IntelliJ idea
- Module build failed Error Plugin/Preset files are not allowed to export objects, only functions (How to Fix)
- Unable to read workspace file ‘D:\angular.json‘: Invalid JSON character: “ “ at
- Read in wannier90 output file hr.dat to construct real space Hamiltonian to calculate Fermi surface
- mvn install Error: Failed to read artifact descriptor org.apache.maven.plugins:maven-install-plugin:jar:2
- Python FileNotFoundError: [Errno 2] No such file or directory: ‘objects/epsilon.pkl
- Java 8 Stream – Read a file line by line