Had a treat from the boss’ boss’ boss. Lol. Free dinner are never ‘free’. See lor.
Zzz…
Had a treat from the boss’ boss’ boss. Lol. Free dinner are never ‘free’. See lor.
Zzz…
This shall be the start of a series of C++ tutorials that I am going to put up here. I have always wanted to write something that is of some use here, but I have been ‘busy’ somehow. So, for these posts, the quality of the English language used shall be of acceptable standard, and to the best of my ability.
Now, back to serious business here. If you have hit this page, you must have a bit of knowledge on what is C++ all about, and you should have heard of Eclipse IDE, or Qt UI Framework. I will skip all these explanations here. For people who are still at a loss, here are some websites for your reference:
Basically, Eclipse is an IDE. It aids you in the coding, referencing, and compiling of codes for your projects. It also supports various plugins that are freely available all over the internet. And more important, Eclipse is open-source, which means that anyone can download and use it freely.
Eclipse itself does not compile your codes. As I mentioned earlier, it is an aid. Therefore, you will need a compiler. For this, I will be using the minGW compiler, which, of course, is open-source. If you want to learn more about mingGW, here’s the website to go to: http://www.mingw.org/.
Let’s start to get our hands dirty! In short, we will be downloading and setting up eclipse, Qt (open-source), Qt Eclipse Integration plugin, and minGW on our computer!
For this tutorial, we will be downloading Eclipse Helios! Proceed to the following URL to download it: http://www.eclipse.org/downloads/. Look through the list of possible packages, and we will be able to find the one we are looking for – Eclipse IDE for C/C++ Developers. Click on the link that says “Windows 32 Bit”. And there you have it: a link to download Eclipse! Click on it, and save the zip file! Personally, I like to put all my downloaded stuffs on my desktop. It’s up to you where you want to save the file, just make sure that you can find it later.
Assuming that you have successfully downloaded the file, you should have a zip file, with the name “eclipse-cpp-helios-win32.zip”. Double click on the file. You will see a folder named “eclipse’. Copy it, and paste it in your c drive. This means that, you will have Eclipse in the following folder: “c:\eclipse”.
There you have it. Eclipse on your PC. Easy?
Click the following link to get to the page to download Qt: http://qt.nokia.com/downloads. Follow the page’s instructions to download. You should be downloading the Qt SDK for Windows, LGPL license, whose file name should be similar to the following: “qt-sdk-win-opensource-2010.04.exe”. At the page where you click on the SDK to download, there should have a small print which indicates the version of minGW that has been used to compile the SDK. A download link for that is also available. Click on that too. We need that compiler, in order for things to work properly later. The file name for that should be similar to the following: “MinGW-gcc440_1.zip”.
After the downloads are done, first, run the Qt SDK installer. Keep everything to their default values. Assuming that you have downloaded the 2010.04 version, Qt will be installed in the folder “c:\Qt\2010.04\”. After the Qt SDK installer has finished, double click on the mingGW file that you have downloaded. You should see a “mingw” folder in it. Copy it, and paste it in your c drive. This means that, you will have minGW in the following folder: “c:\mingw”.
If you reach here without much mishap, congratulations! You are halfway through!
The plugin is available at the following website: http://qt.nokia.com/developer/eclipse-integration/. Get the one for Win32. After downloading, run the installer. Follow through the instructions. The file name should be similar to the following: “qt-eclipse-integration-win32-1.6.1.exe”. You will be prompted to specify the directory for Eclipse and minGW. If you have followed the instructions above, you should be entering the following text into the respective text boxes:

Complete the installation. That more or less completes the downloading and installation.
You have reached this stage without much mishap. Great!
Now, it is time to try running Eclipse! Go to “Start” –> “Programs” –> “Qt Eclipse Integration v1.6.1” –> “Start Eclipse with MinGW”. This will start Eclipse! To facilitate speed in starting this program, you can consider putting a shortcut on your desktop or in your start menu.
When running Eclipse for the first time, you will be prompted to select a workspace. A workspace is basically a folder where all your projects will be stored by default. Specify a new folder by clicking on “Browse”. For me, I use d drive, and I will be storing my projects in a workspace called, simply, “Projects”. I do not want this dialog to be popping up everytime I run Eclipse, so I checked the relevent check box, as seen in the picture below.

If all is well, you should be getting the following screen.

Let’s try to test Qt integration and the compiler! Follow these steps.






Got it? You should get your very first software up and running!

Yes, congratulations on your successful installing of Eclipse with Qt! Have fun playing with the IDE! If you encounter any problem with the setup, feel free to drop me a comment. I will try my best to help if possible.
Next, I will be writing a small tutorial on C++ basics. In the meantime, there are some books out there which might be helpful for you to start learn or revise on C++. So, hop down to the library near you, and start learning!
Yeah, Lk. Stop.
—————————————————
Somehow, not in any mood to get out of SG for work. Just don’t feel the excitement, if there’s any in the first place. If the boss still sends me over, so be it. But really, I rather stay back here.
1 year ago, I would have been interested. But now, indifference. It just feels like, throwing all the shit in sg to others (which is not really possible now), and taking on another shit overseas. It’s not that I am actively involved in that overseas thing.
It just feels, wrong…
Something else feels wrong too…
WRONG.
Wow. Reached home damn early this morning again, this time was due to a siao siao last minute mahjong session at MY’s house. LOL… It’s great to be able to revise on mahjong rules. Heh. It’s been some time since I last touched some tiles. Most rules have been forgotten, so, losing was a normal thingy. LT’s playing style was different from mine. I let him decide on most of the playing. Heh.
Before that, was dinner from the zion road food centre. Yummy stuffs.
Thursday was jack’s place day. Was busy with toto arrangements that, I forgot to put the beef on the hot plate. In the end, the beef was still quite raw. Wasted. But I was eating mixed grill, so, I still had other yummy stuffs…
Yes, all our hearts have been very healthy lately, with all the happenings at work. LOL…
———————————————————–
Hmmm… me? 85kg? Sounds good. Can be better a bit though. Hmm…
———————————————————–
Felt like commenting on something, by saying “eh-eh relac relac… we don’t bite… LOL”
Yeah. Damn early. Roughly 1 am. Reached home around 2 am, after dinner, or rather, supper, or maybe, breakfast, at bedok mac.
To be working at the site, one needs a good heart. No, not to go around helping others. This is to prevent one from getting a heart attack. Lol.
But we can foresee this big one somehow. Big things always happen when some particular thing is happening, or is going to happen.
Breakfast? Mac! Kns, 2 mac meals within 6 hours…
Went back to office yesterday. Time always does not seem to be enough back there. Lots of things I wanted to do, but ended up not doing.
Never mind. Next time. Lol.
Watched Inception last night. Interesting! And complicated. Hahaha…
I want to sleep. Zzz…
Flexibility, and planning, just don’t go well with each other. Lol or can they? Hmmm…
Ok maybe unpredictability will be a better word? Wahaha!
Going back to office today. Yesterday was quite a sianz day, as nothing much is done.
Typical monday.
Dinner at bedok. The bowl of noodles was a bit… Little. Tried a new milk tea store. Not bad, the drink that I bought. Winter melon, and dunno what… The name is ‘yellow green red’. Lol!
Siao liao la… I am philosophical nowadays. LOL.
Yup, everyone has the right to his or her feelings. No one has the right to tell him or her to feel otherwise.
When someone is angry, let him/her be. Allow the process to go through. When someone is sad, let him/her be. Let it flow. When someone is pissed, let him/her be. Allow emotions to flow the way they should be flowing.
Let’s take a person A’s emotion as a river, and a third party B as a damp. The whole world knows (I hope) that rivers flows downstream. So, if the damp is closed, the water cannot flow down. So what happens? Pressure builds up. Stress increases. A small problem can accumulate and become a big problem, and who knows, the damp might be destroyed sooner or later.
If the damp is partially closed, water still flows through, but at a higher pressure. Damage can be done to the damp in the process. But then, it might be good though, to keep things under control, if you are a pro. Too much water flow to the other side might somehow disrupt things there. A bit of control might be necessary.
If the damp is totally opened, water flows at the normal rate. Great. The river flows freely. Can the other side of the river handle it?
Woah… chim wor… LOL
Therefore, when someone is sad, there is no point in telling him/her to not be sad. When someone is angry, there is no point in telling him/her to relax. When someone is pissed, just stay clear, and perhaps just observe.
Yeah.
I still have much to learn.
IPR. Interesting thingy.