Autodesk Wiretap
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Trouble Compiling SDK
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
115 Views, 1 Replies
01-30-2008 02:45 PM
Hi,
I have been trying to recompile the .cpp including in the SDK for python2.4 support.
Once I finally was able to get it to compile, I ended up with the following:
4184 libwiretapPythonClientAPI.so
4573538 lib/opt/LINUX/i686/RHEL4/GCC_3_4_4/libwiretapClien tAPI.a
2648825 lib/opt/LINUX/i686/RHEL4/GCC_3_4_4/libwiretapClien tAPI.so
2980394 lib/opt/LINUX/i686/RHEL4/GCC_3_4_4/libwiretapPytho nClientAPI.so
I have added this lib path, as well as my boost location (/usr/local/lib/boost-1_33_1) to my environ variable LD_LIBRARY_PATH, and tried to import libwiretapPythonClientAPI.so
I get the following error:
>>> from libwiretapPythonClientAPI import *
Traceback (most recent call last):
File "", line 1, in ?
ImportError: dynamic module does not define init function (initlibwiretapPythonClientAPI)
I am able to use the supplied python2.3 .so just fine, but I need it for 2.4
Could anyone offer specific information on how to properly recompile the SDK?
Thanks!
I have been trying to recompile the .cpp including in the SDK for python2.4 support.
Once I finally was able to get it to compile, I ended up with the following:
4184 libwiretapPythonClientAPI.so
4573538 lib/opt/LINUX/i686/RHEL4/GCC_3_4_4/libwiretapClien
2648825 lib/opt/LINUX/i686/RHEL4/GCC_3_4_4/libwiretapClien
2980394 lib/opt/LINUX/i686/RHEL4/GCC_3_4_4/libwiretapPytho
I have added this lib path, as well as my boost location (/usr/local/lib/boost-1_33_1) to my environ variable LD_LIBRARY_PATH, and tried to import libwiretapPythonClientAPI.so
I get the following error:
>>> from libwiretapPythonClientAPI import *
Traceback (most recent call last):
File "
ImportError: dynamic module does not define init function (initlibwiretapPythonClientAPI)
I am able to use the supplied python2.3 .so just fine, but I need it for 2.4
Could anyone offer specific information on how to properly recompile the SDK?
Thanks!
Re: Trouble Compiling SDK
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-31-2008 04:49 PM in reply to:
jdisrael
Hi,
I suggest you use "nm -C" (on linux) to list the symbols. My guess is that your link line is to blame. Here's the one we use:
g++ -m32 -O3 -shared --whole-archive -Bdynamic -o libwiretapPythonClientAPI.so wiretapPythonClientAPI.o libwiretapClientAPI.a libboost_python.a
Not ethat we link against the static WT API lib
HTH,
Dan
.
I suggest you use "nm -C" (on linux) to list the symbols. My guess is that your link line is to blame. Here's the one we use:
g++ -m32 -O3 -shared --whole-archive -Bdynamic -o libwiretapPythonClientAPI.so wiretapPythonClientAPI.o libwiretapClientAPI.a libboost_python.a
Not ethat we link against the static WT API lib
HTH,
Dan
.
