From: Didier Bretin on
Hi,

I'm trying to compile wxMSW-2.8.7 with mingw 5.1.3 and msys 1.0.10
under windows xp.

I use this configure:
.../configure --disable-shared --enable-debug --enable-unicode --without-zlib

(without-zlib because I have a zlib.h not found error)

and then with make:
$ make
/c/wxMSW-2.8.7/msw-debug/bk-deps g++ -c -o baselib_fs_arc.o -D__WXMSW__
-I../src/regex -I../src/expat/lib -DwxUSE_GUI=0 -DwxUSE_BASE=1 -D__WXDEBUG__
-I/c/wxMSW-2.8.7/msw-debug/lib/wx/include/msw-unicode-debug-static-2.8
-I../include -mthreads -Wall -Wundef -Wno-ctor-dtor-privacy -g -O0
.../src/common/fs_arc.cpp
.../src/common/fs_arc.cpp:45: error: ISO C++ forbids declaration of
`wxArchiveEntry' with no type
.../src/common/fs_arc.cpp:45: error: expected `;' before '*' token
.../src/common/fs_arc.cpp:45: error: ISO C++ forbids declaration of
`wxArchiveEntry' with no type
.../src/common/fs_arc.cpp:45: error: expected `;' before '*' token
.../src/common/fs_arc.cpp:45: error: expected `,' or `...' before '&' token
.../src/common/fs_arc.cpp:45: error: ISO C++ forbids declaration of `const_t2'
with no type
.../src/common/fs_arc.cpp:45: error: `t2' does not name a type
.../src/common/fs_arc.cpp: In constructor
`wxArchiveFSEntryHash_wxImplementation_Pair::wxArchiveFSEntryHash_wxImplementation_Pair(const
wxString&, int)':
.../src/common/fs_arc.cpp:45: error: class
`wxArchiveFSEntryHash_wxImplementation_Pair' does not have any field named `second'
.../src/common/fs_arc.cpp:45: error: `s' was not declared in this scope
.../src/common/fs_arc.cpp:45: error: `t2' was not declared in this scope
.../src/common/fs_arc.cpp:45: warning: unused variable 's'
.../src/common/fs_arc.cpp:45: warning: unused variable 't2'
.../src/common/fs_arc.cpp: At global scope:
.../src/common/fs_arc.cpp:45: error: ISO C++ forbids declaration of
`wxArchiveEntry' with no type
.../src/common/fs_arc.cpp:45: error: expected `;' before '*' token
.../src/common/fs_arc.cpp:45: error: ISO C++ forbids declaration of `mapped_type'
with no type
.../src/common/fs_arc.cpp:45: error: expected `;' before '&' token
.../src/common/fs_arc.cpp:45: error: expected `;' before "const_iterator"
.../src/common/fs_arc.cpp: In member function
`wxArchiveFSEntryHash::Insert_Result wxArchiveFSEntryHash::insert(const
wxArchiveFSEntryHash_wxImplementation_Pair&)':
.../src/common/fs_arc.cpp:45: error: 'const class
wxArchiveFSEntryHash_wxImplementation_Pair' has no member named 'second'
.../src/common/fs_arc.cpp:45: error: 'class
wxArchiveFSEntryHash_wxImplementation_Pair' has no member named 'second'
.../src/common/fs_arc.cpp:45: error: 'const class
wxArchiveFSEntryHash_wxImplementation_Pair' has no member named 'second'
.../src/common/fs_arc.cpp: At global scope:
.../src/common/fs_arc.cpp:49: error: ISO C++ forbids declaration of
`wxArchiveEntry' with no type
.../src/common/fs_arc.cpp:49: error: expected `;' before '*' token
.../src/common/fs_arc.cpp:56: error: expected `,' or `...' before '&' token
.../src/common/fs_arc.cpp:57: error: ISO C++ forbids declaration of
`wxArchiveClassFactory' with no type
.../src/common/fs_arc.cpp:58: error: expected `,' or `...' before '&' token
.../src/common/fs_arc.cpp:59: error: ISO C++ forbids declaration of
`wxArchiveClassFactory' with no type
.../src/common/fs_arc.cpp:59: error:
`wxArchiveFSCacheDataImpl::wxArchiveFSCacheDataImpl(int)' and
`wxArchiveFSCacheDataImpl::wxArchiveFSCacheDataImpl(int)' cannot be overloaded
.../src/common/fs_arc.cpp:66: error: ISO C++ forbids declaration of
`wxArchiveEntry' with no type
.../src/common/fs_arc.cpp:66: error: expected `;' before '*' token
.../src/common/fs_arc.cpp:72: error: expected `;' before '(' token
.../src/common/fs_arc.cpp:83: error: ISO C++ forbids declaration of
`wxArchiveInputStream' with no type
.../src/common/fs_arc.cpp:83: error: expected `;' before '*' token
.../src/common/fs_arc.cpp:87: error: expected `,' or `...' before '&' token
.../src/common/fs_arc.cpp:89: error: ISO C++ forbids declaration of
`wxArchiveClassFactory' with no type
.../src/common/fs_arc.cpp: In constructor
`wxArchiveFSCacheDataImpl::wxArchiveFSCacheDataImpl(int)':
.../src/common/fs_arc.cpp:92: error: `backer' was not declared in this scope
.../src/common/fs_arc.cpp:94: error: class `wxArchiveFSCacheDataImpl' does not
have any field named `m_archive'
.../src/common/fs_arc.cpp:94: error: `factory' was not declared in this scope
.../src/common/fs_arc.cpp:94: warning: unused variable 'factory'
.../src/common/fs_arc.cpp: At global scope:
.../src/common/fs_arc.cpp:99: error: expected `,' or `...' before '&' token
.../src/common/fs_arc.cpp:101: error: ISO C++ forbids declaration of
`wxArchiveClassFactory' with no type
.../src/common/fs_arc.cpp:101: error: redefinition of
`wxArchiveFSCacheDataImpl::wxArchiveFSCacheDataImpl(int)'
.../src/common/fs_arc.cpp:89: error:
`wxArchiveFSCacheDataImpl::wxArchiveFSCacheDataImpl(int)' previously defined here
.../src/common/fs_arc.cpp: In constructor
`wxArchiveFSCacheDataImpl::wxArchiveFSCacheDataImpl(int)':
.../src/common/fs_arc.cpp:104: error: `stream' was not declared in this scope
.../src/common/fs_arc.cpp:105: error: class `wxArchiveFSCacheDataImpl' does not
have any field named `m_archive'
.../src/common/fs_arc.cpp:105: error: `factory' was not declared in this scope
.../src/common/fs_arc.cpp:104: warning: unused variable 'stream'
.../src/common/fs_arc.cpp:105: warning: unused variable 'factory'
.../src/common/fs_arc.cpp: In destructor
`wxArchiveFSCacheDataImpl::~wxArchiveFSCacheDataImpl()':
.../src/common/fs_arc.cpp:111: error: 'class
wxArchiveFSEntryHash_wxImplementation_Pair' has no member named 'second'
.../src/common/fs_arc.cpp: At global scope:
.../src/common/fs_arc.cpp:125: error:
`wxArchiveFSEntry*wxArchiveFSCacheDataImpl::AddToCache' is not a static member
of `class wxArchiveFSCacheDataImpl'
.../src/common/fs_arc.cpp:125: error: `wxArchiveEntry' was not declared in this scope
.../src/common/fs_arc.cpp:125: error: `entry' was not declared in this scope
.../src/common/fs_arc.cpp:126: error: expected `,' or `;' before '{' token
.../src/common/fs_arc.cpp: In member function `void
wxArchiveFSCacheDataImpl::CloseStreams()':
.../src/common/fs_arc.cpp:138: error: `m_archive' was not declared in this scope
.../src/common/fs_arc.cpp: At global scope:
.../src/common/fs_arc.cpp:144: error: expected constructor, destructor, or type
conversion before '*' token
.../src/common/fs_arc.cpp: In member function `wxArchiveFSEntry*
wxArchiveFSCacheDataImpl::GetNext(wxArchiveFSEntry*)':
.../src/common/fs_arc.cpp:181: error: `m_archive' was not declared in this scope
.../src/common/fs_arc.cpp:183: error: `wxArchiveEntry' was not declared in this scope
.../src/common/fs_arc.cpp:183: error: `entry' was not declared in this scope
.../src/common/fs_arc.cpp:186: error: `AddToCache' was not declared in this scope
.../src/common/fs_arc.cpp:186: warning: unused variable 'AddToCache'
.../src/common/fs_arc.cpp:183: warning: unused variable 'wxArchiveEntry'
.../src/common/fs_arc.cpp: At global scope:
.../src/common/fs_arc.cpp:206: error: expected `,' or `...' before '&' token
.../src/common/fs_arc.cpp:207: error: ISO C++ forbids declaration of
`wxArchiveClassFactory' with no type
.../src/common/fs_arc.cpp:208: error: expected `,' or `...' before '&' token
.../src/common/fs_arc.cpp:209: error: ISO C++ forbids declaration of
`wxArchiveClassFactory' with no type
.../src/common/fs_arc.cpp:209: error:
`wxArchiveFSCacheData::wxArchiveFSCacheData(int)' and
`wxArchiveFSCacheData::wxArchiveFSCacheData(int)' cannot be overloaded
.../src/common/fs_arc.cpp:216: error: ISO C++ forbids declaration of
`wxArchiveEntry' with no type
.../src/common/fs_arc.cpp:216: error: expected `;' before '*' token
.../src/common/fs_arc.cpp:217: error: expected `;' before "wxInputStream"
.../src/common/fs_arc.cpp:226: error: expected `,' or `...' before '&' token
.../src/common/fs_arc.cpp:228: error: ISO C++ forbids declaration of
`wxArchiveClassFactory' with no type
.../src/common/fs_arc.cpp: In constructor
`wxArchiveFSCacheData::wxArchiveFSCacheData(int)':
.../src/common/fs_arc.cpp:228: error: `factory' was not declared in this scope
.../src/common/fs_arc.cpp:228: error: `backer' was not declared in this scope
.../src/common/fs_arc.cpp:228: warning: unused variable 'factory'
.../src/common/fs_arc.cpp:228: warning: unused variable 'backer'
.../src/common/fs_arc.cpp: At global scope:
.../src/common/fs_arc.cpp:233: error: expected `,' or `...' before '&' token
.../src/common/fs_arc.cpp:235: error: ISO C++ forbids declaration of
`wxArchiveClassFactory' with no type
.../src/common/fs_arc.cpp:235: error: redefinition of
`wxArchiveFSCacheData::wxArchiveFSCacheData(int)'
.../src/common/fs_arc.cpp:228: error:
`wxArchiveFSCacheData::wxArchiveFSCacheData(int)' previously defined here
.../src/common/fs_arc.cpp: In constructor
`wxArchiveFSCacheData::wxArchiveFSCacheData(int)':
.../src/common/fs_arc.cpp:235: error: `factory' was not declared in this scope
.../src/common/fs_arc.cpp:235: error: `stream' was not declared in this scope
.../src/common/fs_arc.cpp:235: warning: unused variable 'factory'
.../src/common/fs_arc.cpp:235: warning: unused variable 'stream'
.../src/common/fs_arc.cpp: At global scope:
.../src/common/fs_arc.cpp:278: error: expected `,' or `...' before '&' token
.../src/common/fs_arc.cpp:279: error: ISO C++ forbids declaration of
`wxArchiveClassFactory' with no type
.../src/common/fs_arc.cpp:289: error: expected `,' or `...' before '&' token
.../src/common/fs_arc.cpp:291: error: ISO C++ forbids declaration of
`wxArchiveClassFactory' with no type
.../src/common/fs_arc.cpp: In member function `wxArchiveFSCacheData*
wxArchiveFSCache::Add(const wxString&, int)':
.../src/common/fs_arc.cpp:294: error: `stream' was not declared in this scope
.../src/common/fs_arc.cpp:295: error: `factory' was not declared in this scope
.../src/common/fs_arc.cpp:295: warning: unused variable 'factory'
.../src/common/fs_arc.cpp:297: error: `factory' was not declared in this scope
.../src/common/fs_arc.cpp:297: warning: unused variable 'factory'
.../src/common/fs_arc.cpp: In member function `virtual bool
wxArchiveFSHandler::CanOpen(const wxString&)':
.../src/common/fs_arc.cpp:343: error: `wxArchiveClassFactory' has not been declared
.../src/common/fs_arc.cpp:343: error: `Find' was not declared in this scope
.../src/common/fs_arc.cpp:343: warning: unused variable 'Find'
.../src/common/fs_arc.cpp: In member function `virtual wxFSFile*
wxArchiveFSHandler::OpenFile(wxFileSystem&, const wxString&)':
.../src/common/fs_arc.cpp:368: error: expected initializer before '*' token
.../src/common/fs_arc.cpp:369: error: `factory' was not declared in this scope
.../src/common/fs_arc.cpp:369: error: `wxArchiveClassFactory' has not been declared
.../src/common/fs_arc.cpp:369: error: `Find' was not declared in this scope
.../src/common/fs_arc.cpp:383: error: `wxArchiveEntry' was not declared in this scope
.../src/common/fs_arc.cpp:383: error: `entry' was not declared in this scope
.../src/common/fs_arc.cpp:383: error: 'class wxArchiveFSCacheData' has no member
named 'Get'
.../src/common/fs_arc.cpp:397: error: `wxArchiveInputStream' was not declared in
this scope
.../src/common/fs_arc.cpp:397: error: `s' was not declared in this scope
.../src/common/fs_arc.cpp:403: error: `wxZipClassFactory' has not been declared
.../src/common/fs_arc.cpp:404: error: `wxZipInputStream' was not declared in this
scope
.../src/common/fs_arc.cpp:404: error: expected primary-expression before ')' token
.../src/common/fs_arc.cpp:404: error: expected `)' before "s"
.../src/common/fs_arc.cpp:404: warning: unused variable 'wxZipInputStream'
.../src/common/fs_arc.cpp:417: error: type `<type error>' argument given to
`delete', expected pointer
.../src/common/fs_arc.cpp:369: warning: unused variable 'Find'
.../src/common/fs_arc.cpp:383: warning: unused variable 'wxArchiveEntry'
.../src/common/fs_arc.cpp:397: warning: unused variable 'wxArchiveInputStream'
.../src/common/fs_arc.cpp: In member function `virtual wxString
wxArchiveFSHandler::FindFirst(const wxString&, int)':
.../src/common/fs_arc.cpp:433: error: expected initializer before '*' token
.../src/common/fs_arc.cpp:434: error: `factory' was not declared in this scope
.../src/common/fs_arc.cpp:434: error: `wxArchiveClassFactory' has not been declared
.../src/common/fs_arc.cpp:434: error: `Find' was not declared in this scope
.../src/common/fs_arc.cpp:434: warning: unused variable 'Find'
.../src/common/fs_arc.cpp: In member function `wxString
wxArchiveFSHandler::DoFind()':
.../src/common/fs_arc.cpp:502: error: 'struct wxArchiveFSEntry' has no member
named 'entry'
make: *** [baselib_fs_arc.o] Error 1





Did I miss something ?

Regards.

--
Didier BRETIN
http://www.bretin.net/

---------------------------------------------------------------------
To unsubscribe, e-mail: wx-users-unsubscribe(a)lists.wxwidgets.org
For additional commands, e-mail: wx-users-help(a)lists.wxwidgets.org

From: Michael Wetherell on
On Friday 01 February 2008 16:10, Didier Bretin wrote:
> I'm trying to compile wxMSW-2.8.7 with mingw 5.1.3 and msys 1.0.10
> under windows xp.
>
> I use this configure:
> ../configure --disable-shared --enable-debug --enable-unicode
> --without-zlib
>
> (without-zlib because I have a zlib.h not found error)

Is it just a warning during configure? e.g.:
configure: WARNING: zlib library not found or too old, will use built-in
instead

If so then it should fall back to wxWidget's own zlib.h and build anyway
without the --without-zlib (delete configarg.cache before
reconfiguring).

> and then with make:
> $ make
> /c/wxMSW-2.8.7/msw-debug/bk-deps g++ -c -o baselib_fs_arc.o
> -D__WXMSW__ -I../src/regex -I../src/expat/lib -DwxUSE_GUI=0
> -DwxUSE_BASE=1 -D__WXDEBUG__
> -I/c/wxMSW-2.8.7/msw-debug/lib/wx/include/msw-unicode-debug-static-2.
>8 -I../include -mthreads -Wall -Wundef -Wno-ctor-dtor-privacy -g -O0
> ../src/common/fs_arc.cpp
> ../src/common/fs_arc.cpp:45: error: ISO C++ forbids declaration of
> `wxArchiveEntry' with no type

Fixed these in SVN.

Thanks,
Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: wx-users-unsubscribe(a)lists.wxwidgets.org
For additional commands, e-mail: wx-users-help(a)lists.wxwidgets.org

From: Didier Bretin on
Thanks Michael for your help.

On 01/02/2008 18:02, Michael Wetherell wrote:
>> (without-zlib because I have a zlib.h not found error)
>
> Is it just a warning during configure? e.g.:
> configure: WARNING: zlib library not found or too old, will use built-in
> instead
>
> If so then it should fall back to wxWidget's own zlib.h and build anyway
> without the --without-zlib (delete configarg.cache before
> reconfiguring).

I will try.

>
>> and then with make:
>> $ make
>> /c/wxMSW-2.8.7/msw-debug/bk-deps g++ -c -o baselib_fs_arc.o
>> -D__WXMSW__ -I../src/regex -I../src/expat/lib -DwxUSE_GUI=0
>> -DwxUSE_BASE=1 -D__WXDEBUG__
>> -I/c/wxMSW-2.8.7/msw-debug/lib/wx/include/msw-unicode-debug-static-2.
>> 8 -I../include -mthreads -Wall -Wundef -Wno-ctor-dtor-privacy -g -O0
>> ../src/common/fs_arc.cpp
>> ../src/common/fs_arc.cpp:45: error: ISO C++ forbids declaration of
>> `wxArchiveEntry' with no type
>
> Fixed these in SVN.

Thanks I downloaded the svn version for this file and starting
again the compilation. I have another error:
/c/wxMSW-2.8.7/msw-debug/bk-deps g++ -c -o corelib_imagjpeg.o -D__WXMSW__
-I../src/regex -I../src/expat/lib -DwxUSE_BASE=0 -D__WXDEBUG__
-I/c/wxMSW-2.8.7/msw-debug/lib/wx/include/msw-unicode-debug-static-2.8
-I../include -mthreads -Wall -Wundef -Wno-ctor-dtor-privacy -g -O0
.../src/common/imagjpeg.cpp
.../src/common/imagjpeg.cpp:45:25: jpeglib.h: No such file or directory
.../src/common/imagjpeg.cpp:95: error: field `pub' has incomplete type
.../src/common/imagjpeg.cpp:97: error: ISO C++ forbids declaration of `JOCTET'
with no type
.../src/common/imagjpeg.cpp:97: error: expected `;' before '*' token
.../src/common/imagjpeg.cpp:103: error: expected constructor, destructor, or type
conversion before "wx_init_source"


Here is the result of the configure:
Configured wxWidgets 2.8.7 for `i686-pc-mingw32'

Which GUI toolkit should wxWidgets use? msw
Should wxWidgets be compiled into single library? no
Should wxWidgets be compiled in debug mode? yes
Should wxWidgets be linked as a shared library? no
Should wxWidgets be compiled in Unicode mode? yes
What level of wxWidgets compatibility should be enabled?
wxWidgets 2.4 no
wxWidgets 2.6 yes
Which libraries should wxWidgets use?
jpeg sys
png sys
regex builtin
tiff sys
zlib no
odbc no
expat builtin
libmspack no
sdl no


Did I miss something else ?
--
Didier BRETIN
http://www.bretin.net/

---------------------------------------------------------------------
To unsubscribe, e-mail: wx-users-unsubscribe(a)lists.wxwidgets.org
For additional commands, e-mail: wx-users-help(a)lists.wxwidgets.org

From: Michael Wetherell on
On Friday 01 February 2008 18:11, Didier Bretin wrote:
> Here is the result of the configure:
> Configured wxWidgets 2.8.7 for `i686-pc-mingw32'
>
> Which GUI toolkit should wxWidgets use? msw
> Should wxWidgets be compiled into single library? no
> Should wxWidgets be compiled in debug mode? yes
> Should wxWidgets be linked as a shared library? no
> Should wxWidgets be compiled in Unicode mode? yes
> What level of wxWidgets compatibility should be enabled?
> wxWidgets 2.4 no
> wxWidgets 2.6 yes
> Which libraries should wxWidgets use?
> jpeg sys
> png sys
> regex builtin
> tiff sys
> zlib no
> odbc no
> expat builtin
> libmspack no
> sdl no
>
>
> Did I miss something else ?

Hi,

It looks like configure is detecting system libraries that aren't
present, e.g. it detected libjpeg, yet jpeglib.h can't be found later
during the make:

> ../src/common/imagjpeg.cpp:45:25: jpeglib.h: No such file or
> directory

I can't think of a reason for that to be happening, it works ok here.
Maybe you know of something in your setup that could be causing it.

If you can't find something wrong, then you could try explicitly
choosing the 'builtin' libraries rather than the phantom 'sys' ones:

$ ../configure --disable-shared --enable-debug --enable-unicode --with-libjpeg=builtin --with-libpng=builtin --with-libtiff=builtin --with-zlib=builtin

HTH,
Mike

---------------------------------------------------------------------
To unsubscribe, e-mail: wx-users-unsubscribe(a)lists.wxwidgets.org
For additional commands, e-mail: wx-users-help(a)lists.wxwidgets.org