I'm using the "Building on Windows with Cygwin/MingW32" section of the
instructions.
You're correct there is nothing in my /usr/local/include, I looked
back and I think it has to do with adding this to my .bash_profile (so
I don't have to remember each time):
export CFLAGS="-mno-cygwin -mwindows"
export CPPFLAGS="-mno-cygwin -mwindows"
export CXXFLAGS="-mno-cygwin -mwindows"
export LDFLAGS="-mno-cygwin -mwindows"
Sorry for the confusion.
--Mark
···
On 11/8/07, Karl Kobata <karl.kobata@syncira.com> wrote:
Mark,
== Are you using the mingw gcc compiler or cygwins gcc compiler or Visual
studio? Looking at the original error - I did not see -mno-cygwin.
== what information is in your /usr/local/include? This is an empty
directory in my installation.
== in the "BUILD.html", is it correct to assume that you used the "unix"
instructions?Thanks for your help,
karl-----Original Message-----
From: Mark Guagenti [mailto:mgenti@gentiweb.com]
Sent: Thursday, November 08, 2007 7:52 AM
To: wxPython-users@lists.wxwidgets.org
Subject: Re: Building wxPython 2.8.6.1 in cygwinJust in case anyone else is looking for information on how to compile
wxPython 2.8.6.1 in cygwin for windows. I started over from the
beginning by following the instructions at
Phoenix/README.rst at master · wxWidgets/Phoenix · GitHub and all I changed was added
"-I/usr/local/include" to the compiler/linker flags and did not use
cygwin's python but used my normal python 2.5.1 for windows.
This allowed me to successfully create my own wxPython build with
unicode support and was able to run my own app with the newly created
libraries.
--MarkOn 11/6/07, Mark Guagenti <mgenti@gentiweb.com> wrote:
> We'll I've gotten farther and now have wxPython compiling in cygwin
> with unicode by looking through the advice on
> http://www.mingw.org/cms/node/17 (some of which appears not to apply
> if you follow Phoenix/README.rst at master · wxWidgets/Phoenix · GitHub using 2.8.6.1). I
> think what got wxWidgets compiling with unicode was adding the
> "-I/usr/local/include" to the flags. Then to get wxPython to compile
> was to remove python from cygwin and use the windows build.
> --Mark
>
> On 11/6/07, Karl Kobata <karl.kobata@syncira.com> wrote:
> >
> >
> >
> >
> > Glad to hear it worked. wxPython is also where I am stuck. I was able
to get come of the dll's build by manually manipulating the compile/link
commands. I reported in an earlier usergroup post (see Re: wxPython -
cygwin setup.py errors; 69400 by: Robin Dunn)
> >
> >
> >
> > Also, I have only been successful in building python extensions using
disutils with version 2.5.
> >
> >
> >
> > Keep me posted if you can.
> >
> >
> >
> > karl
> >
> > ________________________________
>
> >
> > From: Mark Guagenti [mailto:mgenti@gentiweb.com]
> > Sent: Tuesday, November 06, 2007 1:10 PM
> > To: Karl Kobata
> > Cc: wxPython-users@lists.wxwidgets.org
> > Subject: Re: Building wxPython 2.8.6.1 in cygwin
> >
> >
> >
> >
> > I am able to build wxWidgets with unicode disabled, but I need to get
this working for my purposes, however the minimal.exe sample does not work.
Also if I try to build wxPython it fails.
> >
> > I also have version 1.5.24-2 of cygwin, using mingw, and trying to
build this for windows.
> > --Mark
> >
> >
> > On 11/6/07, Karl Kobata <karl.kobata@syncira.com > wrote:
> >
> >
> >
> > Hi Mark,
> >
> >
> >
> > I saw this error when I had unicode enabled. Use -disable-unicode. In
my case, the default was to have unicode disabled.
> >
> >
> >
> > ../configure \
> >
> > --prefix=/opt/wx/2.8.6 \
> >
> > --enable-optimise \
> >
> > --enable-debug_flag \
> >
> > --with-gtk=gtk+-2.0 \
> >
> > --disable-stl \
> >
> > --disable-shared \
> >
> > --disable-sound \
> >
> > --enable-rpath=/opt/wx/2.8.6/lib
> >
> >
> >
> > I opted to hard code library references. In my cygwin build, I used gcc
3.4.4-3, gtk+2, and python 2.5
> >
> > With the setting for configuration above, I run script for make:
> >
> > make $* \
> >
> > && make -C contrib/src/gizmos $* \
> >
> > && make -C contrib/src/stc $*
> >
> >
> >
> > Finally I can install. In my case it will move the library to
/opt/wx/2.6.8
> >
> > However, where I am having problems is in compiling the extension
itself. Maybe when you get to this point, we can collaborate.
> >
> >
> >
> > What compiler are you using? Mingw, gcc, etc
> >
> > What version of cygwin do you have installed? I have 1.5.24-2
> >
> > Which GTK package/libraries are you using?
> >
> > Were they all downloaded from cygwin?
> >
> > From the snippet of code, it looks like you have msw enabled?
> >
> >
> >
> > Good luck.
> >
> > Karl
> >
> >
> >
> > ________________________________
>
> >
> > From: Mark Guagenti [mailto:mgenti@gentiweb.com]
> > Sent: Monday, November 05, 2007 6:48 PM
> > To: wxPython-users@lists.wxwidgets.org
> > Subject: Building wxPython 2.8.6.1 in cygwin
> >
> >
> >
> >
> > I recently downloaded the tarball of wxPython 2.8.6.1 and was trying to
get it to compile in cygwin but get the following error:
> > /cygdrive/c/wxPython-src-2.8.6.1/bld/bk-deps g++ -c -o
basedll_appbase.o -D__WX
> > MSW__ -I../src/tiff -I../src/jpeg -I../src/png -I../src/zlib
-I../src/regex
> > -I../src/expat/lib -DwxUSE_GUI=0 -DWXMAKINGDLL_BASE -DwxUSE_BASE=1
-D_FILE_OFF
> > SET_BITS=64 -D_LARGE_FILES -D__WXDEBUG__ -I/cygdrive/c/wxPython-
src-2.8.6.1/bld/
> > lib/wx/include/msw-unicode-debug-2.8 -I../include -mthreads -Wall
-Wundef -Wno-c
> > tor-dtor-privacy -O2 -fno-strict-aliasing ../src/common/appbase.cpp
> > In file included from ../include/wx/memory.h:16,
> > from ../include/wx/object.h:20,
> > from ../include/wx/list.h:33,
> > from ../src/common/appbase.cpp:31:
> > ../include/wx/string.h:181: error: expected init-declarator before
"wxStdString"
> >
> > ../include/wx/string.h:181: error: expected `,' or `;' before
"wxStdString"
> > ../include/wx/string.h:714: error: expected `,' or `...' before '&'
token
> > ../include/wx/string.h:715: error: ISO C++ forbids declaration of
`wxStdString'
> > with no type
> > ../include/wx/string.h:715: error: `wxString::wxString(int)' and
`wxString::wxSt
> > ring(int)' cannot be overloaded
> > ../include/wx/string.h: In constructor `wxString::wxString(int)':
> > ../include/wx/string.h:715: error: `s' undeclared (first use this
function)
> > ../include/wx/string.h:715: error: (Each undeclared identifier is
reported only
> > once for each function it appears in.)
> > make: *** [basedll_appbase.o] Error 1
> >
> > Has anyone seen this error before?
> >
> > Thanks,
> > --Mark
> >
> >
>