special thanks to Scuri (IUP mailing list) who resolve issues around MAKE dll or libs from iup sources.
1. we need to cvs IUP sources, (IM, CD & IUP)
2. you can use Tortoise CVS available here.
3. i decide to cvs IUP sources to my D drive, like above picture, i right click and select CVS Checkout..
4. for CVSROOT, fill in
:pserver:anonymous@iup.cvs.sourceforge.net:/cvsroot/iup
then you click the Fetch List button.
5. From the module list, select iup then sources download task will starts.
6. After the download process finished, i will cvs IM and CD sources using the same methods like above.
:pserver:anonymous@imtoolkit.cvs.sourceforge.net:/cvsroot/imtoolkit
:pserver:anonymous@canvasdraw.cvs.sourceforge.net:/cvsroot/canvasdraw
7. I assume you got MinGW setup correctly, otherwise, please visit setting up MinGW (Minimalist GNU) inside Windows
8. you get a layout like below
9. we would need to download Win-Bash (shell.w32-ix86.zip) from here Choose Files -> Shell-Complete -> Latest -> shell.w32-ix86.zip, basically extract it to C:/WinBash.
10. rename the make.exe from C:/WinBash to something else, we will use the MinGW mingw32-make.exe rename to make.exe.
11. SET ENVIRONMENT PATH VARIABLE to contain the following
C:/WinBash
C:/MinGW/Bin
12. fire up cmd.exe,
D:\iup\src>set NO_DEPEND=Yes
D:\iup\src>set TEC_UNAME=mingw4
D:\iup\src>set MINGW4=C:\MinGW
D:\iup\src>make
13. you will notice 2 extra directories created, lib and obj, you can find the compiled iup.dll there.
14. you will probably want to compile iupcontrols.dll, cd.dll and im.dll, just remember you need to set VARIABLE=VALUE for every new cmd prompt console window you open.
Labels: iup, mingw, programming
Post a Comment