Facing new challenges everyday

Unrar4iOS – A port of unrar to iOS platform

November 15th, 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.
(more…)

DZoneGoogle BookmarksFacebookEvernoteLinkedInDeliciousShare

Getting MongoDB running on Solaris 10

July 20th, 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:

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

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

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

Now run the following command fron src directory:

1
gmake -f Makefile.ref

(more…)

DZoneGoogle BookmarksFacebookEvernoteLinkedInDeliciousShare

Building Qt based applications with Qt Creator

June 7th, 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.

(more…)

DZoneGoogle BookmarksFacebookEvernoteLinkedInDeliciousShare

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

August 16th, 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
qtopiamake

#clean previous build
make clean

#build application binaries
make

#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.

DZoneGoogle BookmarksFacebookEvernoteLinkedInDeliciousShare

Hello World with Qtopia (Part 4 – Application Code)

June 3rd, 2008

In my previous articles about Qtopia application development I showed the directory structure for a Qtopia project, the contents of basic Qtopia project file (helloworld.pro) and how to create the application interface with user interface files (helloworld.ui), in this article I’ll talk about the classes to be used in our helloworld application and how we can integrate the user interface files in our applications.

Every Qtopia application requires a initialization code like we have in the code block below:

main.cpp

1
2
3
4
5
6
7
8
9
10
11
/*
We must include the header file below since it contains
the HelloWorld class definition.
*/

#include "helloworld.h"
#include <qtopia /qtopiaapplication.h>

//Set the HelloWorld class as the main class of helloworld application.
QTOPIA_ADD_APPLICATION("helloworld", HelloWorld)
//Add initialization code to this application
QTOPIA_MAIN

In the example above we are using to macros QTOPIA_ADD_APPLICATION and QTOPIA_MAIN, both are only available if qtopia_main is set in CONFIG variable of application project file (helloworld.pro) as described in this article.

(more…)

DZoneGoogle BookmarksFacebookEvernoteLinkedInDeliciousShare
Next Page »

Visitors Around the World

Polls

How Is My Site?

View Results

Loading ... Loading ...

Categories

Meta

Links

Advertising

hosted by easy2use.net