Tag: cpp

Easy Database Driven Development with Boost and SOCI

Posted by – October 21, 2013

Last weekend I started to learn more about C++, my first project is a contacts manager, so I googled a little about how to do some persistence on C++ with minimum code and then I found SOCI.

SOCI is a very small database library which gives us the illusion to be embedding SQL queries in C++ code as the project site says, in fact, this is the beauty behind the library, which makes your C++ code very clean and easy to maintain.

But there’s no way to be productive with C++ programming these days without Boost, this awesome library has several utilities classes which can speedup your development several times, this blog post will show a little more about how these two libraries can help you to develop a database driven console application.



Unrar4iOS – A port of unrar to iOS platform

Posted by – November 15, 2010

Recently I started a project which must understand the CBR format, for those that doesn’t know, CBR is a comics file format, which consists of several image files archived in RAR archive format.

In order to be able to read CBR archive contents and uncompress them I need to port unrar library to iOS, after some quick research I found an existing work done in this way, it’s pretty old, but gave me some insight about how to start.


Getting MongoDB running on Solaris 10

Posted by – July 20, 2009

That’s what I did to get MongoDB running on Solaris 10:

1. Download, compile and install gcc 4.4

MongoDB can’t be compiled with bundled version of gcc on Solaris 10, it requires gcc 4.0 at least, I couldn’t find the binary package of gcc 4 for Solaris 10 anywhere on the web, so I decided to download and compile gcc 4 by myself.

You may get some build errors because of missing targets during build process, try run “make -i” to ignore build errors.

2. Download, compile and install SpiderMonkey 1.8.0 RC 1

Another MongoDB dependency is SpiderMonkey, MongoDB uses SpiderMonkey to process JSON data, please download and uncompress SpiderMonkey sources.

Once the tarball is successfully downloaded, you must make a copy of makefile for Solaris 10 for Inter PCs by running the following command:

cp config/SunOS5.10.mk config/SunOS5.10_i86pc.mk

And set the PATH with the directory that contains the ar tool:

export PATH=$PATH:/usr/ccs/bin

Now run the following command fron src directory:

gmake -f Makefile.ref



Building Qt based applications with Qt Creator

Posted by – June 7, 2009

Qt is a very easy to use cross-platform application and UI framework, you can define application interface in xml and then interact with this interface using Qt facilities. Qt is the library behind the popular KDE Desktop Enviroment, it allows the developer to create rich desktop interfaces, now Qt has a IDE called Qt Creator, I could create a very simple app that can download some text from internet with few lines of code.

Qt Creator is part of Qt SDK and can be downloaded here.



Hello World with Qtopia (Part 5 – Building, Installing and Running Applications)

Posted by – August 16, 2008

In the previous article we talked a little about how to create the necessary code that shows how to create a basic hello world application on Qtopia platform, in this article with will show how to generate the makefile, build, install and run this application.

Please open a Konsole window and the execute the following commands:

#setting the appropiate environment variables
source /opt/Qtopia/SDK/scripts/devel-x86.sh

#changing to directory where the sources can be found
cd ~/projects/helloworld

#generating make files from helloworld.pro

#clean previous build
make clean

#build application binaries

#creating the application package to deploy on device (or emulator)
sdk –p

#installing application on device
sdk –i

You can run the application by clicking on runqpe icon on desktop.

I personally would like to see Qtopia platform as real option of application platform for Nokia devices, Qtopia has a lot of features that makes the application development much more easy than Symbian platform.