Menu

#1 ghmmwrapper-0.7

open
5
2006-10-10
2005-11-02
Anonymous
No

After following the procedures on the install section
of the home page, when i get to python setup.py build I
run into an error I am unsure of. I am running this in
cygwin on windows xp and have all the lastest versions
of the required tools except swig which i made sure was
v1.3.21.

$ python setup.py build
********* PATHS ***********
ghmmprefix /usr/local
swiglib /usr/local/lib/swig1.3
swiglib_path /usr/local/lib
ghmmlib_path /usr/local/lib
**************************
================================================================================

Please run the following command first: swig -noruntime
-python -nodefault ghmmw
rapper.i
================================================================================

running build
running build_py
copying ghmmwrapper.py -> build/lib.cygwin-1.5.18-i686-2.4
running build_ext
building '_ghmmwrapper' extension
gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall
-Wstrict-prototypes -I/usr/local/
include -I/usr/include/python2.4 -c ghmmwrapper_wrap.c
-o build/temp.cygwin-1.5.
18-i686-2.4/ghmmwrapper_wrap.o
ghmmwrapper_wrap.c:822: warning: function declaration
isn't a prototype
ghmmwrapper_wrap.c:833: warning: function declaration
isn't a prototype
ghmmwrapper_wrap.c:856: warning: function declaration
isn't a prototype
ghmmwrapper_wrap.c:1008: warning: function declaration
isn't a prototype
ghmmwrapper_wrap.c:1099: warning: function declaration
isn't a prototype
ghmmwrapper_wrap.c:1179: warning: function declaration
isn't a prototype
ghmmwrapper_wrap.c:1424: warning: function declaration
isn't a prototype
ghmmwrapper_wrap.c: In function
`_wrap_sdmodel_get_class_set':
ghmmwrapper_wrap.c:6245: warning: assignment from
incompatible pointer type
gcc -shared -Wl,--enable-auto-image-base
build/temp.cygwin-1.5.18-i686-2.4/sclas
s_change.o
build/temp.cygwin-1.5.18-i686-2.4/pclasschange.o
build/temp.cygwin-1.
5.18-i686-2.4/gql.o
build/temp.cygwin-1.5.18-i686-2.4/ghmmwrapper_wrap.o
-L/usr/
local/lib -L/usr/local/lib -L/usr/lib/python2.4/config
-lstdc++ -lm -lghmm -lswi
gpy -lpython2.4 -o
build/lib.cygwin-1.5.18-i686-2.4/_ghmmwrapper.dll
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld:
cannot find
-lswigpy
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1

Discussion

  • Janne Grunau

    Janne Grunau - 2005-11-20

    Logged In: YES
    user_id=1024380

    the linker does not find the shared library for the python
    bindings of swig.

    can you please post the output of
    "ls -l /usr/local/lib/libswigpy*"

     
  • Darzimoth

    Darzimoth - 2006-10-08

    Logged In: YES
    user_id=1616224

    I have the same problem, its exatly the same, Im working in
    cygwin and windows XP

     
  • Janne Grunau

    Janne Grunau - 2006-10-10

    Logged In: YES
    user_id=1024380

    The the swig libraries are in the correct directory. I
    have currently no idea why it is failing.

    Can you try to run swig without the "-noruntime" option?

    swig -python -nodefault ghmmwrapper.i

     
  • Janne Grunau

    Janne Grunau - 2006-10-10
    • assigned_to: nobody --> grunau
     

Log in to post a comment.