discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] build error in cygwin


From: Achilleas Anastasopoulos
Subject: Re: [Discuss-gnuradio] build error in cygwin
Date: Sat, 27 Jan 2007 20:25:27 -0500
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)

Don,

it worked with the minor modification
that PYTHON PATH should be set appropriately before step (13).
Here is the patch for the wiki:

(11) Build wxPython:

cd $WXDIR/wxPython
python setup.py build_ext --inplace WXPORT=msw BUILD_GLCANVAS=0 BUILD_GIZMOS=0 UNICODE=0

This builds the Python connection to wxWidgets. If you built gizmos you should omit the BUILD_GIZMOS=0 flag.

(12) Install wxPython:

cd $WXDIR/wxPython
python setup.py install WXPORT=msw BUILD_GLCANVAS=0 BUILD_GIZMOS=0 UNICODE=0

This installs wxPython. If you build gizmos you should omit the BUILD_GIZMOS=0 flag.

export PYTHONPATH=/usr/lib/python2.4/site-packages:/usr/local/lib/python2.4/site-packages

(13) Test your wxPython installation:

cd $WXDIR/wxPython/demo
python demo.py

This should present you with a green snake (and a window showing what wxPython can do). If this works, you are done. With



Thanks
Achilleas


Don Ward wrote:
"Achilleas Anastasopoulos" <address@hidden> wrote:

I followeed the wiki instructions for building gnuradio
on cygwin.
Everything seems to be working fine,
except when installing wxPython.
In particular in step (11) as described in the wiki:

> cd $WXDIR/wxPython
> python setup.py build_ext --inplace WXPORT=msw BUILD_GLCANVAS=0
BUILD_GIZMOS=0

I get the following errors.
Any help as to what might be wrong is appreciated.


[snipped]

Found wx-config: /usr/local/bin/wx-config
    Using flags:  --toolkit=msw --unicode=yes --version=2.8
Preparing CORE...
Preparing STC...
running build_ext
building '_core_' extension
gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -DSWIG_TYPE_TABLE=_wxPython_table -DSWIG_PYTHON_OUTPUT_TUPLE -DWXP_USE_THREAD=1 -UNDEBUG -Iinclude -Isrc -I/usr/include/python2.4 -c src/helpers.cpp -o build.unicode/temp.cygwin-1.5.23-i686-2.4/src/helpers.o -O3




Warning: No config found to match: /usr/local/bin/wx-config --toolkit=msw --unicode=yes --version=2.8 --cxxflags
           in /usr/local/lib/wx/config
  If you require this configuration, please install the desired
  library build.  If this is part of an automated configuration
  test and no other errors occur, you may safely ignore it.
  You may use wx-config --list to see all configs available in
  the default prefix.


It appears that in version 2.8.1.1 wxPython defaults to UNICODE=1 while the wxWidgets build defaults to ansi (i.e., not unicode). In step (11) try:

python setup.py build_ext --inplace WXPORT=msw BUILD_GLCANVAS=0 BUILD_GIZMOS=0 UNICODE=0

Let me know if it works and I will update the wiki.

If it doesn't work, try "/usr/local/bin/wx-config --list" and let me know what it says.

-- Don W.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]