Modifying source code

Asked by Atit Anand

I downloaded the source code and want to modify few lines of code.After modifying the project I want the project running on my system with modified lines of code.How do I do it and in between where can i use Qt creator in this process?

Question information

Language:
English Edit question
Status:
Solved
For:
Wallch Edit question
Assignee:
No assignee Edit question
Solved by:
Alex Solanos
Solved:
Last query:
Last reply:
Revision history for this message
Alex Solanos (hakermania) said :
#1

Hello Atit. After modifying the source code, just compile the application, and replace the file /usr/bin/wallch with the executable that you will generate.

QtCreator can open the wallch.pro project file and provide you with a more easy to use interface for editing the code.

To build the code, just run from a terminal, after you've edited your code:
qmake wallch.pro
qmake
make
Note that some libs are needed so as to build the application, such as libunity-dev, libexif-dev, libdee-dev and some others, too.

Revision history for this message
Atit Anand (atit-anand-cs) said :
#2

Thanks for the help.It really matters for beginners like me.
but when i try to build this project using Qt creator it says unity.h is missing.but again when i install the project using software center it works well.so how can i debug it using Qt creator.

Revision history for this message
Best Alex Solanos (hakermania) said :
#3

Hello Atit, I guess this question isn't so Wallch related, but well, I have kind heart (L.O.L)

First of all, run these through a terminal:
sudo apt-get install libdee-dev libunity-dev libexif-dev libnotify-dev (I think that's all)
and then open the wallch.pro file using QtCreator. Click on the green play button on the left (not the one with the bug on it) and the program should build and run...

Revision history for this message
Atit Anand (atit-anand-cs) said :
#4

Thanks alexsol, that solved my question.

Revision history for this message
Atit Anand (atit-anand-cs) said :
#5

Thanks to you and to your kind heart.It really helped a lot.It's learning curve for me right now.These kind of help really helps...

Revision history for this message
Alex Solanos (hakermania) said :
#6

:)