Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation Problem #12

Open
GoogleCodeExporter opened this issue Jul 27, 2015 · 3 comments
Open

Installation Problem #12

GoogleCodeExporter opened this issue Jul 27, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

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

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

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

@edufschmidt
Copy link

edufschmidt commented May 13, 2016

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants