farsounder/protobuf-matlab

Installation Problem

Opened this issue · 3 comments

What steps will reproduce the problem?

1. svn co http://protobuf.googlecode.com/svn/tags/2.4.1 protobuf or as 
suggested by one of the member I also tried: `wget 
http://protobuf.googlecode.com/files/protobuf-2.4.1.zip && unzip 
protobuf-2.4.1.zip && rm protobuf-2.4.1.zip && mv protobuf-2.4.1 protobuf` to 
avoid autoconf.

2. git clone https://code.google.com/p/protobuf-matlab/

3. cp -r protobuf-matlab/src protobuf

4. cd protobuf

5. ./configure

6. make -j8

main.o: In function `main':
/home/*/Desktop/protobuf/src/google/protobuf/compiler/main.cc:61: undefined 
reference to 
`farsounder::protobuf::compiler::matlab::MatlabGenerator::MatlabGenerator()'
/home/*/Desktop/protobuf/src/google/protobuf/compiler/main.cc:65: undefined 
reference to 
`farsounder::protobuf::compiler::matlab::MatlabGenerator::~MatlabGenerator()'
/home/*/Desktop/protobuf/src/google/protobuf/compiler/main.cc:65: undefined 
reference to 
`farsounder::protobuf::compiler::matlab::MatlabGenerator::~MatlabGenerator()'
collect2: ld returned 1 exit status
make[2]: *** [protoc] Error 1
make[2]: Leaving directory `/home/*/Desktop/protobuf/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/*/Desktop/protobuf'
make: *** [all] Error 2

However If I run ./autogen.sh, then ./configure, make command finish without 
error only saying:
make[3]: Leaving directory `/home/*/Desktop/protobuf/src'
make[2]: Leaving directory `/home/*/Desktop/protobuf/src'
make[1]: Leaving directory `/home/*/Desktop/protobuf'

Then I do sudo make install, again
make[3]: Leaving directory `/home/*/Desktop/protobuf/src'
make[2]: Leaving directory `/home/*/Desktop/protobuf/src'
make[1]: Leaving directory `/home/*/Desktop/protobuf/src'

user@user:/home/*/Desktop/protobuf$ protoc --help
protoc: symbol lookup error: protoc: undefined symbol: 
_ZN10farsounder8protobuf8compiler6matlab15MatlabGeneratorC1Ev


What version of the product are you using? On what operating system?
GNU Make 3.81
Ubuntu 12.04.4 LTS x86_64
autoconf (GNU Autoconf) 2.68
automake (GNU automake) 1.11.3


Please provide any additional information below.

Does anybody have trouble recently to build and install protobuf-matlab ?


Original issue reported on code.google.com by emreozan...@gmail.com on 1 Jul 2014 at 10:00

[deleted comment]
I end up running first ./autogen.sh, and then ./configure, so make command 
builds it successfully into the build folder. But then its not installing 
correctly, however I was able to run from the build folder. So I'm using alias 
that using build folder path with the protobuf-matlab executable I built.

Original comment by emreozan...@gmail.com on 29 Jul 2014 at 10:08

I managed to build and install the matlab plugin by following these steps:
cp -r protobuf-matlab/src protobuf-2.4.1 && cd protobuf-2.4.1 && ./autogen && ./configure --prefix=/usr/ && make && sudo make install
(Sorry for the &&s...couldn't find out how to insert line breaks)
Hope it helps :)