|
From: | Shabbir Ahmed |
Subject: | Re: [Discuss-gnuradio] Error installing wxPython on CYGWIN in Windows XP |
Date: | Thu, 14 Jan 2010 00:12:44 +1100 |
Pleas HELP!!.STEP 4: ( I had to add a few more lines that I took from wxPython's src websitehttp://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/binSTEP 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+ERRORWARNING: WXWIN not set in environment. Assuming '..'Preparing CORE...Preparing STC...Preparing GIZMOS...running build_extbuilding '_core_' extensiongcc -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 -O3In 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 directorysrc/helpers.cpp: In function `bool wxColour_helper(PyObject*, wxColour**)':src/helpers.cpp:2933: warning: comparison between signed and unsigned integer expressionserror: command 'gcc' failed with exit status 1
Shabbir Ahmed wrote: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.
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
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.
[Prev in Thread] | Current Thread | [Next in Thread] |