Preparing for the new semester, I created a few screencast videos for various tutorials:
1. Eclipse Java Debugger tutorial (about 60 minutes): Students in COMP SCI 257 Software Design II should start using Eclipse Debugger, and this video explains how to use it, with the syllable counter example in Horstmann’s Chapter 6.
2. Installations of JDK, Eclipse, CDT, MinGW, Qt (about 30 minutes): This video can be useful for students in both Java-based courses and C++-based courses. Intially, it explains how to install Eclipse (JDK first). Software Design students can stop there. Then, it continues on installing C++ development environment on Eclipse. MinGW is used as the compiler and Qt is used for GUI and other programming framework.
3. Eclipse CDT/Qt tutorial (about 75 minutes): After the installation above, students can try to build their first C++ applications (both in command-line interface and in GUI) using Eclipse CDT/Qt. This video explains that. Note that there’s some glitch in debugging demonstration. At the time of recording, I didn’t have a solution. After the recording, I searched the web and found the following solution:
Therefore, when you debug a C++ application with Eclipse CDT/Qt on Windows (this issue is not present on Linux), make sure to configure the debugger as stated in the above link.
http://dev.eclipse.org/newslists/news.eclipse.tools.cdt/msg14140.html
If you have any questions, do not hesitate asking me.
-H.
P.S. For those who don’t like screencast for a simple installation, here’s verbal instruction for step 2:
1. Install Eclipse. If you have already installed it, jump to step 2.
- Install JDK first. The link is https://fpsb.uwgb.edu/compsci/IDEs/Eclipse/
(you need to authenticate yourself with your UWGB email address and password)
and click jdk-... .exe. Save it in your folder (I'll assume C:\download) and execute it.
Follow the default suggestions.
- Install Eclipse. From the same site, click eclipse... .zip. Extract it to C:\
and after the extraction, you should have C:\eclipse filled with Eclipse installation.
2. Install Eclipse CDT (C Development Tools) plugin.
- Start Eclipse: Browse to C:\eclipse and double-click eclipse.exe.
You may want to create a desktop shortcut to this file.
- Install CDT plugin by following: Click Help-Software Updates,
click Available Software tab (assuming Eclipse Ganymede. If your Eclipse is older,
the layout may be slightly different). Expand Ganymede branch. Check "C
and C++ Development" checkbox and click Install. Accept the terms and
default suggestions.
3. Install GNU C/C++ compilers.
- From the site (https://fpsb.uwgb.edu/compsci/IDEs/Eclipse/),
download MinGW-Downloaded.zip and save it in C:\download. Unzip it there.
Browse to C:\download\MinGW-Downloaded.
- Double-click MinGW-... .exe installer. Accept all the default suggestions,
except this: When you are asked to choose what kinds of compilers are
to be installed, make sure to check "C++ compiler" (or "g++ compiler")
checkbox. The default suggestion only includes C compiler, not C++ compiler.
- After the installer is over, you need to install GDB (debugger). It's already
in your C:\download\MinGW-Download\gdb-6... .exe. Double-click it and accept
all the default configurations.
4. Install Qt.
- From the repository site (https://fpsb.uwgb.edu/compsci/IDEs/Eclipse/),
download qt-win-opensource-4.4.3-mingw.exe and run it. Accept all the
default suggestions. You may encounter a dialog indicating a problem with
MinGW installation saying the version mismatch. You can just click Yes and
proceed. We installed a newer version of MinGW and Qt expects an earlier
version of MinGW. The newer version of MinGW works fine with the Qt version.
5. Install Qt-Eclipse integration.
- From the repository site (https://fpsb.uwgb.edu/compsci/IDEs/Eclipse/),
download qt-eclipse-integration-win32-1.4.3.exe and run it. Accept all the
default suggestions.
You are now done, but keep in mind that for C++ development, you may
have to start Eclipse not by double-clicking the Eclipse shortcut created
earlier, but by clicking Start-Programs-Qt Eclipse Integration v.1.4.3
-Start Eclipse by MinGW. You may want to create a desktop shortcut
to this Start menu item.
January 23rd, 2009 | Tags: C++, CDT, eclipse, IDE, java, Qt | Category: C++, Computing Infra Related, Courses (Teaching), Software Design (Java) | Leave a comment