Dev-C++ compile instructions
Henri Girard
girardhenri at hotmail.com
Sun Feb 13 12:15:11 CET 2005
thanks ... i am trying it.. i would like to try borland too in devcpp because it's quicker too compile...
have any body experiment it ?
kind regards
Henri
----- Original Message -----
From: Peter Kümmel
To: For developers interested in porting KDE to Windows using Cygwin
Sent: Sunday, February 13, 2005 4:31 AM
Subject: Dev-C++ compile instructions
Here are instructions for Dev-C++.
Regards,
Peter
------------------------------------------------------------------------------
Dev-C++ 5 compiling instructions
This page gives you some instructions how to compile Qt3/Win Free with Dev-C++.
Requirements
a.. Windows NT, 2000 or XP (it has not been tested on Windows 9.x)
b.. MinGW
c.. Dev-C++ 5
d.. Qt-3/Win Free sources
Installing Dev-C++ already containing MinGW
a.. Download Dev-C++ 5 with Mingw/GCC (7.6MB only!) from www.bloodshed.net/dev/devcpp.html.
b.. Install Dev-C++ 5, do not enable 'Class Browsing', if you are ask for
c.. or disable 'Class Browsing' in the menu 'Tools/Editor Options'
Installing Dev-C++ and MinGW seperate
a.. Download and install the latest full MinGW Package from http://www.mingw.org - currently this is MinGW-3.2.0-rc-3.exe.
If you don't want to download 50MB, you need at least the binaries of gcc-core, gcc-g++, w32api, mingw-runtime, binutils, gdb, mingw32-make (7 files, 19MB)
b.. Download 'Dev-C++ 5 executable only' from www.bloodshed.net/dev/devcpp.html (2.1 MB).
c.. Install Dev-C++ 5, do not enable 'Class Browsing', if you are ask for
d.. or disable 'Class Browsing' in the menu 'Tools/Editor Options'.
e.. add your MinGW\bin path to Dev-C++ in 'Tools/Compiler Options/Directories' or add your MinGW\bin path to the PATH variable.
Get the Qt3/Win Free sources
a.. by downloading a Qt-3 source snapshot from the KDE-Cygwin snapshot area (13.8MB).
b.. or from the cvs repository:
first connect to the cvs server
C:\source> cvs -d :pserver:anonymous at cvs.sourceforge.net:/cvsroot/kde-cygwin loginenter empty password
then checkout the sources with
C:\source> cvs -z6 -d :pserver:anonymous at cvs.sourceforge.net:/cvsroot/kde-cygwin co -r QT_WIN32_3_3_BRANCH qt-3Later you can update the sources by
C:\source\qt-3> cvs -z6 updateor if you only what to update the 'src' directory (up is short for update)
C:\source\qt-3\src> cvs -z6 upGenerating essential tools and files
a.. Open a cmd shell
b.. Setup Qt and MinGW environment, e.g. Qt in 'C:\source\qt-3', and MinGW in 'C:\Programs\MinGW' or C:\Program\Dev-Cpp (please adjust the paths to your needs)
C:\source> set QTDIR=C:\source\qt-3
C:\source> set MINGW=C:\Programs\MinGW
C:\source> set PATH=%QTDIR%\bin;%MINGW%\bin;%PATH%
a.. Build essential tools by command line
The script first creates link_includes.exe and configure.exe which are
needed for bootstrap the build process. link_includes copies all
relevant Qt-headers into the include-directory. configure.exe is the
replacement for the ./configure-script under Unix/Linux. After that,
qmake.exe and moc.exe is build.
C:\source> cd C:\source\qt-3
C:\source\qt-3>configure-mingw.bat -debug
For a full list of options see bin\configure.exe -help.
a.. Stop the compilation if it has finished building 'qt-3\bin\qmake.exe'
a.. Generating Dev-C++ importable files
Build *.dsp files which could be imported by Dev-C++ with
C:\source\qt-3> set QMAKESPEC=win32-msvc -debug
C:\source\qt-3> bin\configure.exe
and also generate Makefiles for the special Qt build process by calling again:
C:\source\qt-3>configure-mingw.bat -debug
a.. Break if it has finished building moc and close the cmd shell.
Using Dev-C++
For all Qt project use this procedure:
a.. Open Dev-C++ and import the *.dsp file by the menu function 'File/Import' (e.g. 'qt-3\examples\hello\hello.dsp')
b.. Enable 'Use custom Makefile' in 'Project/Project Options/Makefile' and choose 'Makefile' in the folder of your project (e.g. 'qt-3\examples\hello\Makefile')
Compiling the Qt libraries
You must compile both *.dsp files in the 'qt-3\src' folder.
Dev-C++ 5 Notes
a.. MinGW does not work within a cygwin shell or with sh.exe in your search path. You must remove cygwin\bin from your PATH or temporary rename your cygwin folder.
b.. After closing Dev-C++, next time opening a project sometimes it can't find the Makefile any more, just select it once again.
------------------------------------------------------------------------------
_______________________________________________
kde-cygwin mailing list
kde-cygwin at kde.org
https://mail.kde.org/mailman/listinfo/kde-cygwin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kde-cygwin/attachments/20050213/9fe1132f/attachment.html
More information about the kde-cygwin
mailing list