[PyQt] [SIP]MD5 openssl

Jarosław Białas jarekbialas.bialy at gmail.com
Wed Jun 29 10:38:07 BST 2011


Hello

Recently I tried to use my c++ library in Python using SIP.
In SIP configuration file I added some extra libraries like QtGui,fftw3 
and ssl.
Compilation and linking pass without any warnings or errors:

g++ -c -pipe -fPIC -O2 -Wall -W -DNDEBUG -I. -I/usr/include/python2.7 -o 
sipmd5testcmodule.o sipmd5testcmodule.cpp
g++ -c -pipe -fPIC -O2 -Wall -W -DNDEBUG -I. -I/usr/include/python2.7 -o 
sipmd5testmd5test.o sipmd5testmd5test.cpp
g++ -c -pipe -fPIC -O2 -Wall -W -DNDEBUG -I. -I/usr/include/python2.7 -o 
md5test.o md5test.cpp
g++ -Wl,--hash-style=gnu -Wl,--as-needed -shared 
-Wl,--version-script=md5test.exp -o md5test.so sipmd5testcmodule.o 
sipmd5testmd5test.o md5test.o -lssl

But when I try to import library:
ImportError: ./md5test.so: undefined symbol: MD5

When I compiled my code and included it in c++ all worked fine.




More information about the PyQt mailing list