| 1 | Features and issues with Performer plugin |
|---|
| 2 | ========================================= |
|---|
| 3 | |
|---|
| 4 | Issues |
|---|
| 5 | ------ |
|---|
| 6 | After compiling the Peformer plugin you can run sgv and it will |
|---|
| 7 | pick up the library osgPlugins/osgdb_pfb correctly, so you'll now be |
|---|
| 8 | able to type something like : |
|---|
| 9 | |
|---|
| 10 | cd /usr/share/Performer/data |
|---|
| 11 | sgv iris.pfb |
|---|
| 12 | |
|---|
| 13 | Unfortunately this then results in the following error message : |
|---|
| 14 | |
|---|
| 15 | DynamicLibrary::failed loading /home/robert/OpenSceneGraph-0.8/lib/osgPlugins/osgdb_pfb.so |
|---|
| 16 | DynamicLibrary::error /usr/lib/libpr.so: undefined symbol: __ucmpdi2 |
|---|
| 17 | |
|---|
| 18 | An attempt to fixing the undefined symbol by including -lgcc did not fix the |
|---|
| 19 | problem, have a look at src/osgPlugins/pfb/Makefile, for the link lines |
|---|
| 20 | tested. Suggestions welcome. |
|---|
| 21 | |
|---|
| 22 | This error disappears if you link sgv with Performer, you can do this by |
|---|
| 23 | simply swapping the #comment around in src/Viewier/Makefile so that : |
|---|
| 24 | |
|---|
| 25 | LIBS = -losgUtil -losg -lglut -lGLU -lGL -lm -lXmu -lX11 -lXi |
|---|
| 26 | #LIBS = ${PFLIBS} -losgUtil -losg -lglut -lGLU -lGL -lm -lXmu -lX11 -lXi |
|---|
| 27 | |
|---|
| 28 | is edited to become: |
|---|
| 29 | |
|---|
| 30 | #LIBS = -losgUtil -losg -lglut -lGLU -lGL -lm -lXmu -lX11 -lXi |
|---|
| 31 | LIBS = ${PFLIBS} -losgUtil -losg -lglut -lGLU -lGL -lm -lXmu -lX11 -lXi |
|---|
| 32 | |
|---|
| 33 | Not an ideal solution but it does work. Now try : |
|---|
| 34 | |
|---|
| 35 | cd /usr/share/Performer/data |
|---|
| 36 | sgv town_ogl_pfi.pfb |
|---|
| 37 | |
|---|
| 38 | |
|---|
| 39 | Features |
|---|
| 40 | -------- |
|---|
| 41 | You can also use osgdb_pfb.so as a Performer plugin, by linking/copying the |
|---|
| 42 | osgPlugins/osgdb_pfb.so to libpfosg.so. Try something like : |
|---|
| 43 | |
|---|
| 44 | cd OpenSceneGraph-0.8/lib |
|---|
| 45 | ln -s osgPlugins/osgdb_pfb.so libpfosg.so |
|---|
| 46 | |
|---|
| 47 | then |
|---|
| 48 | |
|---|
| 49 | perfly turtle.osg |
|---|
| 50 | |
|---|
| 51 | or |
|---|
| 52 | |
|---|
| 53 | pfconv /usr/share/Performer/data/iris.pfb iris.osg |
|---|
| 54 | sgv iris.osg |
|---|
| 55 | |
|---|