Hi all,

I build the protobuf share library from protobuf-cpp-3.10.0.zip

I cross-compile it on a Debian 4.9.144-3.1  x86_64 GNU/Linux machine with 
the following steps

$ ./configure --host=x86-linux --target=aarch64-linux-gnu  
CXX=arm-linux-gnueabihf-g++ --with-protoc=protoc
$ make
$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
$ sudo ldconfig

After build, it generated the following but the libprotobuf.so and  
libprotbuf.so.21 appears to be the symbolic link to the  
libprotobuf.so.21.0.0 as their size are only 1k while the  
libprotobuf.so.21.0.0 is 28MB
 libprotobuf.so 
 libprotobuf.so.21
 libprotobuf.so.21.0.0 

I have to rename  libprotobuf.so.21.0.0 to be  libprotobuf.so then link my 
code to it. Note If I leave the name as libprotobuf.so.21.0.0 the linker 
step would not find the file.
My code compiled and linked with  libprotobuf.so fine.

But when I deployed it to run on the target. The application would say it 
could not find libprotobuf.so.21 instead libprotobuf.so. 
If I manually changed the libprotobuf.so to libprotobuf.so.21 on the target 
board, the code would start fine. Note my libprotobuf.so is installed under 
usr/lib on my target board which runs linux

My problem that It can't link if I leave the name as protobuf.so.21.0.0 or 
libprotobuf.so.21


I will try to build static lib to see if it helps but Any help would be 
very appreciated.

Thanks

-Tom


-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/protobuf/f6141339-9660-42eb-9278-f5b94df9304b%40googlegroups.com.

Reply via email to