List Info

Thread: Building wxPython 2.8.6.1 in cygwin




Building wxPython 2.8.6.1 in cygwin
user name
2007-11-05 20:47:37
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
Re: Building wxPython 2.8.6.1 in cygwin
user name
2007-11-06 11:35:02
Mark Guagenti wrote:
> I recently downloaded the tarball of wxPython 2.8.6.1
<http://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?

No, but try redoing the configure step with
--disable-std_string.


-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java
give you jitters?  Relax with wxPython!


------------------------------------------------------------
---------
To unsubscribe, e-mail: wxPython-users-unsubscribelists.wxwidgets.org
For additional commands, e-mail: wxPython-users-helplists.wxwidgets.org


Re: Building wxPython 2.8.6.1 in cygwin
user name
2007-11-06 12:01:46
That seems to have gotten me one step closer but now I'm getting:
./src/expat/lib -DwxUSE_GUI=0 -DWXMAKINGDLL_BASE -DwxUSE_BASE=1  -D_FILE_OFFSET_
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-ctor-
dtor-privacy -O2 -fno-strict-aliasing ../src/common/log.cpp
../src/common/log.cpp: In member function `virtual void wxLogStderr:oLogString
(const wxChar*, time_t)9;:
../src/common/log.cpp:571: error: `fputwc9; undeclared (first use this function)
../src/common/log.cpp:571: error: (Each undeclared identifier is reported only o
nce for each function it appears in.)
make: *** [basedll_log.o] Error 1

If I fix this error I just get another error somewhere else that seems to me like some libraries are not getting included or are missing.

I am using these options for my configure:
../configure --with-msw --build=i686-pc-mingw32 --prefix=/opt/wx/2.8 --enable-unicode --enable-optimise --enable-geometry --enable-display --enable-shared --with-expat=builtin --with-regex=builtin --with-zlib=builtin --enable-debug_flag --disable-std_string

Thanks,
--Mark

On 11/6/07, Robin Dunn < robinalldunn.com">robinalldunn.com> wrote:
Mark Guagenti wrote:
>; I recently downloaded the tarball of wxPython 2.8.6.1 <http://2.8.6.1>
&gt; and was trying to get it to compile in cygwin but get the following error:
&gt; /cygdrive/c/wxPython-src-2.8.6.1/bld/bk-deps g++ -c -o
> basedll_appbase.o&nbsp; -D__WX
> MSW__ ; &nbsp;  -I../src/tiff -I../src/jpeg -I../src/png -I../src/zlib
> -I../src/regex
>&nbsp; -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,
>&nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; from ../include/wx/object.h:20,
>&nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; from ../include/wx/list.h:33,
>&nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;  from ../src/common/appbase.cpp:31:
> ../include/wx/string.h:181: error: expected init-declarator before
>; "wxStdString&quot;
>
>; ../include/wx/string.h:181: error: expected `,' or `;' before "wxStdString&quot;
> ../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)&#39; 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?

No, but try redoing the configure step with --disable-std_string.


--
Robin Dunn
Software Craftsman
http://wxPython.org&nbsp; Java give you jitters?&nbsp; Relax with wxPython!


---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribelists.wxwidgets.org"> wxPython-users-unsubscribelists.wxwidgets.org
For additional commands, e-mail: wxPython-users-helplists.wxwidgets.org">wxPython-users-helplists.wxwidgets.org


RE: Building wxPython 2.8.6.1 in cygwin
user name
2007-11-06 14:34:14

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 

 &nbsp; --prefix=/opt/wx/2.8.6 

 &nbsp; --enable-optimise&nbsp;

 &nbsp; --enable-debug_fla

 &nbsp; --with-gtk=gtk+-2.

 &nbsp; --disable-stl ;

 &nbsp; --disable-shared ;

 &nbsp; --disable-sound&nbsp;

 &nbsp; --enable-rpath=/opt/wx/2.8.6/lib

 

I opted to hard code library references.&nbsp; 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 $*

 &nbsp; &nbsp; && make -C contrib/src/gizmos $* 

 &nbsp; &nbsp; && make -C contrib/src/stc $*

 

Finally I can install.&nbsp; 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.&nbsp; Maybe when you get to this point, we can collaborate.

 

What compiler are you using?&nbsp; 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:mgentigentiweb.com]
Sent: Monday, November 05, 2007 6:48 PM
To: wxPython-userslists.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&nbsp; -D__WX
MSW__&nbsp; &nbsp;  -I../src/tiff -I../src/jpeg -I../src/png -I../src/zlib ; -I../src/regex
&nbsp;-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,
 &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; from ../include/wx/object.h:20,
&nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp; from ../include/wx/list.h:33,
 ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; from ../src/common/appbase.cpp:31:
../include/wx/string.h:181: error: expected init-declarator before &quot;wxStdString"

../include/wx/string.h:181: error: expected `,' or `;' before &quot;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

Re: Building wxPython 2.8.6.1 in cygwin
user name
2007-11-06 15:10:29
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.kobatasyncira.com">karl.kobatasyncira.com > wrote:

Hi Mark,

 

I saw this error when I had unicode enabled. Use –disable-unicode.&nbsp; In my case, the default was to have unicode disabled.

 

../configure 

 &nbsp; --prefix=/opt/wx/2.8.6 

 &nbsp; --enable-optimise&nbsp;

 &nbsp; --enable-debug_fla

 &nbsp; --with-gtk=gtk+-2.

 &nbsp; --disable-stl ;

 &nbsp; --disable-shared ;

 &nbsp; --disable-sound&nbsp;

 &nbsp; --enable-rpath=/opt/wx/2.8.6/lib

 

I opted to hard code library references.&nbsp; 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 $*

 &nbsp; &nbsp; && make -C contrib/src/gizmos $* 

 &nbsp; &nbsp; && make -C contrib/src/stc $*

 

Finally I can install.&nbsp; 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.&nbsp; Maybe when you get to this point, we can collaborate.

 

What compiler are you using?&nbsp; 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: mgentigentiweb.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">mgentigentiweb.com]
Sent: Monday, November 05, 2007 6:48 PM
To: wxPython-userslists.wxwidgets.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">wxPython-userslists.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&nbsp; -D__WX
MSW__&nbsp; &nbsp;  -I../src/tiff -I../src/jpeg -I../src/png -I../src/zlib ; -I../src/regex
&nbsp;-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,
 &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; from ../include/wx/object.h:20,
&nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp; from ../include/wx/list.h:33,
 ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; from ../src/common/appbase.cpp:31:
../include/wx/string.h:181: error: expected init-declarator before &quot;wxStdString"

../include/wx/string.h:181: error: expected `,' or `;' before &quot;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


[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )