Hi Don and ALL:

A. Managed to install and work wxWidgets but I just cannot manage wxPython.
Anyhow the following is how I managed wxWidgets and errors found in trying
to install wxPython.

B. Referring to http://gnuradio.org/redmine/wiki/gnuradio/WxPythonCygwin

STEP 4: ( I had to add a few more lines that I took from wxPython's src
website
http://www.wxpython.org/BUILD.html .. so now we have)

CC="gcc -mno-cygwin -mwindows"  \

CXX="g++ -mno-cygwin -mwindows" \

LDFLAGS="-mno-cygwin -mwindows" \

../configure \

    --with-msw \

    --build=i686-pc-mingw32 \

    --prefix=/usr/local \


STEP 4a, 5 and 6: Remains the same.

STEP 7: (there is slight change the cygwx*.dll files are now wx*.dll files..
so we have)

mv /usr/local/lib/wx*.dll /usr/local/bin


STEP 8: so now when you try step 8 it WORKS!

STEP 9: (But now I am stuck in STEP 9 and cannot move forward tried all
possibilities the following is the code I am using and the output+errors...)

python setup.py build_ext --inplace WXPORT=msw COMPILER=mingw32
BUILD_GLCANVAS=0 BUILD_ACTIVEX=0 UNICODE=0 WX_CONFIG="bash.exe -e
/usr/local/bin/wx-config"



OUTPUT+ERROR

WARNING: WXWIN not set in environment. Assuming '..'
Preparing CORE...
Preparing STC...
Preparing GIZMOS...
running build_ext
building '_core_' extension
gcc -mno-cygwin -mdll -O -Wall -DSWIG_TYPE_TABLE=_wxPython_table
-DSWIG_PYTHON_OUTPUT_TUPLE -DWXP_USE_THREAD=1 -UNDEBUG -DWXUSINGDLL
-D__WXMSW__ -Iinclude -Isrc -I/usr/local/lib/wx/include/msw-ansi-release-2.8
-I/usr/local/include/wx-2.8 -I/usr/include/python2.5 -c src/helpers.cpp -o
build/temp.cygwin-1.7.1-i686-2.5/src/helpers.o -mthreads -O3


In file included from /usr/include/python2.5/Python.h:57,
                 from src/helpers.cpp:15:
/usr/include/python2.5/pyport.h:257:24: sys/select.h: No such file or
directory
src/helpers.cpp: In function `bool wxColour_helper(PyObject*, wxColour**)':
src/helpers.cpp:2933: warning: comparison between signed and unsigned
integer expressions
error: command 'gcc' failed with exit status 1



Pleas HELP!!.

regards,

Shabbir


On Wed, Jan 13, 2010 at 2:36 AM, Don Ward <don2387w...@sprynet.com> wrote:

> Shabbir Ahmed wrote:
>
>  i. Down to business I am having errors in installing wxPython on CYGWIN in
>> Windows XP.
>>
>> ii. Have been referring to
>> http://gnuradio.org/redmine/wiki/gnuradio/WxPythonCygwin for installation
>> guide.
>>
>> iii. In the above, Steps 1, 2, 3, 4 and 4a works like a charm, I am still
>> attaching the output files in case you need to refer to them.
>>
>> iv. In Steps 5 i get the following warnings and error:
>>
>> In file included from ../src/msw/utils.cpp:56:
>>
>> /usr/lib/gcc/i686-pc-cygwin/4.3.4/../../../../include/w32api/winsock.h:479:
>> error: declaration of C function ‘int select(int, _types_fd_set*,
>> _types_fd_set*, _types_fd_set*, const timeval*)’ conflicts with
>> /usr/include/sys/select.h:31: error: previous declaration ‘int
>> select(int,
>> _types_fd_set*, _types_fd_set*, _types_fd_set*, timeval*)’ here
>>
>
> As Bob McGwier reported to the list on 3 Jan, there has been a major update
> to Cygwin, including a switch to gcc 4.3.4.  I don't know if anyone has
> tried to install GNU Radio with the new version and I know that the
> instructions in the wiki have not been updated for the the new version.
>
> The immediate problem is that both winsock.h and select.h have been
> included, leading to a conflict.  You may be able to avoid this by editing
> build-local/lib/wx/include/msw-ansi-release-2.8/wx/setup.h so that
> HAVE_SYS_SELECT_H is undefined.  Of course this might just be the first of
> many such errors that are not easily fixed.
>
> Another possibility is that another include file in gcc 4.3.4 is including
> select.h.  If that is the case, we will need to see what can be done.
>
> It should be noted that the latest Cygwin FAQ states you can't use winsock
> functions in Cygwin (even though the winsock.h header file is included in
> the distribution).  So they may have changed it so it just won't work.
>
> Checking out the new Cygwin is on my list of things to do, but it probably
> won't happen soon.
>
> Please let us know what you find.
>
> -- Don W.
>
>


-- 
Shabbir Ahmed
PhD. Student
Centre for Telecommunications and Microelectronics
Victoria University
Email: shabbir.ah...@live.vu.edu.au
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to