Budi Irawan wrote:
> Hello Malcolm
>
>     However, what I have had some success with is reusing a wxWidgets
>     contrib library makefile, and adjusting it to cater for the wxArt2D
>     libraries.
>
>
> Does it mean that you didn't use bakefile for generate the makefile of 
> wxArt2D?
No, not yet, but now that I have done this I'll be looking into 
bakefiles again next week. With this "inspiration", I hope to have 
bakefiles working in a day.

> So, you just replace text in one of contrib makefile with wxArt2D 
> library text, in your case is "docview".
Correct. The makefiles for component libraries remains more or less 
constant, just the source files and their location changes. (sometimes 
an added include file - kbool for example)

I know that bakefiles were vetoed more or less by the developers of 
wxArt2D, but I have major problems getting cMake to work for me. With 
this method at least I can just use the gcc compiler that comes with 
wxDev-C++ and build the libraries.
>
>     Under each library root folder create a build\msw folder
>
>
> I don't understand your statement above. Is each library located in 
> module folder of wxArt2D (canvas, curves, artbase, etc) ?

Yes. C:\wxArt2D\modules\aggdrawer, C:\wxArt2D\modules\artbase, 
C:\wxArt2D\modules\docview etc.
from the command line :

cd C:\wxArt2D\modules\docview
md build
md build\msw
cd ..\aggdrawer
md build
md build\msw
etc.
>
>     copy
>     the above makefile.gcc into it. copy the associated config.gcc
>     file into it.
>
>
> How did you get that config.gcc? I only find one it in my 
> *wxWidget-folder/build/msw*

That's the one. I simply copy this into the msw folder.

C:\wxArt2D\modules\docview\build\msw contents
config.gcc
makefile.gcc
build_mingw.bat

build_mingw.bat contents are:-

set WXWIN=c:\wxWidgets-2.8.7
set WXDEV=c:\Program Files\Dev-Cpp
set 
C_INCLUDE_PATH=%WXDEV%\include;%WXDEV%\lib\gcc\mingw32\3.4.2\include;%WXDEV%\include\c++\3.4.2;%WXDEV%\include\c++\3.4.2\mingw32
set CPLUS_INCLUDE_PATH=%C_INCLUDE_PATH%
set LIBRARY_PATH=%WXDEV%\lib
set GCC_EXEC_PREFIX=%WXDEV%\
set LD_LIBRARY_PATH=%WXDEV%\lib
set path=%WXDEV%\bin;%WXDEV%\libexec\gcc\mingw32\3.4.2;

set WXART2D=c:\wxart2d


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


pause


then simply execute the batch file. Assuming your paths are correct, the 
library should build (also assuming you have created a 
c:\wxArt2d\lib\gcc_lib folder)

Best Regards
Mal


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Wxart2d-users_dev mailing list
Wxart2d-users_dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev

Reply via email to