Getting Started with the Sample

I'm not a very big fan of C/C++, and dealing with libraries, dependencies and makefiles is one of the main reasons. However, I find myself in a situation where doing what I want with steve just isn't feasible any more, so I'm going to try making a plugin that will solve my problems. For starters, I just want to get the sample plugin to work, but it's not. Here's exactly what I typed at the console (Linux):


manatee.cs.utexas.edu% pwd
/v/filer4b/v20q001/schrum2/breve_2.7.2
manatee.cs.utexas.edu% cd plugins/samples/
manatee.cs.utexas.edu% make
g++ -I.. -c -o cSample.o cSample.cc
cSample.cc: In function 'void cSampleLoadFunctions(void*)':
cSample.cc:12: warning: deprecated conversion from string constant to 'char*'
cSample.cc:13: warning: deprecated conversion from string constant to 'char*'
cSample.cc:14: warning: deprecated conversion from string constant to 'char*'
g++ -I.. -shared -o cSample_plugin.o cSample.o
g++ -I.. -c -o c++Sample.o c++Sample.cc
c++Sample.cc: In function 'void cppSampleLoadFunctions(void*)':
c++Sample.cc:82: warning: deprecated conversion from string constant to 'char*'
c++Sample.cc:83: warning: deprecated conversion from string constant to 'char*'
c++Sample.cc:84: warning: deprecated conversion from string constant to 'char*'
c++Sample.cc:85: warning: deprecated conversion from string constant to 'char*'
g++ -I.. -shared -o c++Sample_plugin.o c++Sample.o
manatee.cs.utexas.edu% cd ../..
manatee.cs.utexas.edu% ./bin/breve -ux ./plugins/samples/c++SampleDemo.tz
warning: could not initialize sound stream, audio will not be enabled (Host error.)
Could not open OSMesa extension, offscreen rendering disabled (./bin/osmesaloader.o: cannot open shared object file: No such file or directory)
error loading plugin ./plugins/samples//c++Sample_plugin.o: ./plugins/samples//c++Sample_plugin.o: undefined symbol: brNewBreveCall
Unknown Function Error: Internal function "cppSampleMakeTestClass" not found at line 26 of file "./plugins/samples/c++SampleDemo.tz"
./bin/breve: line 15: 16914 Segmentation fault $DIRECTORY/breve_ex $*
manatee.cs.utexas.edu%

How do I fix this? I'm sure it's something very simple to an experiences C/C++ programmer.

-Jacob

my fault

Hi,
I just ran into this problem myself. Some of the symbols for making plugins were not properly exported in the 2.7 release of breve. I'm working on the problem and will make sure that fixed in the Subversion soon.

- jon

news

Hi,

Is there any news about the exported symbols problems for the 2.7 release? Was it already fixed in subversion?
I've tested the use of plugins in 2.5 release and it works fine, but I would like to change my code to the new version of breve. Is there any idea of how long is going to take until the fix of this problem?

Eduardo Carrara

Fixed/workaround yet?

Is it fixed in subversion version? Is there a way to put a .o file to make it work in there?

Edit: I did try copying libOSMesa.so to osmesaloader.o, and weirdly that didn't work, but now suddenly does work... (Yay!)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.