On Sun, May 22, 2011 at 3:06 PM, klaas.holwerda <n...@klaasholwerda.nl>wrote:

>  Hi,
>
> Did you set wxWidgets_USE_MONOLITHIC first?
>

Yes.

Basically I built wxWidgets with a batch file looking like this:


For wxWidgets 2.8.12

set WXWIN=c:\wxWidgets-2.8.12
set WXDEV=C:\MinGW32
set GCCVER=4.5.2
set OLDPATH=%path%
set path=%WXDEV%\bin;%WXDEV%\libexec\gcc\mingw32\%GCCVER%;

mingw32-make -f makefile.gcc BUILD=release MONOLITHIC=1 SHARED=0
USE_OPENGL=1 RUNTIME_LIBS=static USE_RTTI=0 USE_EXCEPTIONS=1 2>
compfile.txt

cd ..\..\contrib\build\stc
mingw32-make -f makefile.gcc BUILD=release MONOLITHIC=1 SHARED=0
USE_OPENGL=1 USE_XRC=1 USE_ODBC=1 RUNTIME_LIBS=static USE_RTTI=0
USE_EXCEPTIONS=1  2>> ..\..\build\msw\compfile.txt



and like this for wxWidgets 2.9.1

set WXWIN=c:\wxWidgets-2.9.1
set WXDEV=C:\MinGW32
set GCCVER=4.5.2
set OLDPATH=%path%
set path=%WXDEV%\bin;%WXDEV%\libexec\gcc\mingw32\%GCCVER%;

mingw32-make -f makefile.gcc BUILD=release MONOLITHIC=1 SHARED=0
USE_OPENGL=1 RUNTIME_LIBS=static USE_RTTI=0 USE_EXCEPTIONS=1 2>
compfile.txt

Don't get confused by the %WXDEV% variable, it's just a batch file borrowed
from my building the wxWidgets library using the compiler included with
wxDevC++. This variable simply points to the root location of the compiler
being used.


I then call cmake using a batch file like this (for wxW2.8.12)

set WXWIN=c:\wxWidgets-2.8.12
set WXDEV=C:\MinGW32
set GCCVER=4.5.2
set OLDPATH=%path%
set path=%WXDEV%\bin;%WXDEV%\libexec\gcc\mingw32\%GCCVER%;C:\Program
Files\CMake 2.8\bin

cmake-gui


When the dialog comes up I select MinGW Makefiles.

Then press Configure.

Cmake runs, and I get several red errors.

I then select  wxWidgets_USE_MONOLITHIC

and after pressing Configure again I get the error message complaining about
aui xrc html adv xml net core base not being found.

And what version of wxWidgets are you using?
>


I am building (or attempting to) for both wxWidgets 2.8.12 and 2.9.1 (later
I will build against SVN head).


> This part sets the libs.
>
>     if( wxWidgets_USE_MONOLITHIC )
>         set(wxWidgets_FIND_COMPONENTS ${wxWidgets_FIND_COMPONENTS} mono )
>         set(wxWidgets_STD_LIBRARIES mono )
>     else (wxWidgets_USE_MONOLITHIC)
>         set(wxWidgets_STD_LIBRARIES base core ) # this is default
>     endif( wxWidgets_USE_MONOLITHIC )
>
>
> Maybe changing         set(wxWidgets_FIND_COMPONENTS
> ${wxWidgets_FIND_COMPONENTS} mono )
>   to         set(wxWidgets_FIND_COMPONENTS mono )
> This sets the value only to mono, and forgets what it contained before,
> this gives you an idea what is exactly needed.
>

This certainly seems to be the change necessary. I can now generate the
wxdocview files, and build.



> I find it alreday strange myself that i add mono to it, instead of setting
> it to mono.
> So maybe something is wrong indeed.
> And Message( HEY${wxWidgets_FIND_COMPONENTS}HOO ) helps you to find what is
> in it.
>

Perhaps knowing that this change corrects the behaviour can help you see
where you may have changes something else.


>
> What libraries wx does generate exactly in mono mode?
>
Both builds produce
libwxexpat.a
libwxjpeg.a
libwxpng.a
libwxregex.a (wxW2.9.1 produces libwxregexu.a)
libwxtiff.a
libwxzlib.a

and wxW2.8.12 produces

libwxmsw28.a
libwxmsw28_gl.a
libwxmsw28_stc.a

whereas wxW2.9.1 produces

libwxmsw29u.a
libwxmsw29u_gl.a
libwxscintilla.a


>
> Let me know the results, it might be I changed something, and don't
> remember it.
>


 Certainly making the change suggested results in a correct build.

Many thanks for the help.

Mal
------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Wxart2d-users_dev mailing list
Wxart2d-users_dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev

Reply via email to