Posts mit dem Label Development werden angezeigt. Alle Posts anzeigen
Posts mit dem Label Development werden angezeigt. Alle Posts anzeigen

Freitag, 7. März 2008

Eclipse: PHPEclipse editor does not open?

When your PHPEclipse Editor does not open and tells you to look at the error log it is likely because you use the wrong JVM.

How to set the right JVM:
  • Install the Sun Java JRE ((k)ubuntu: sudo apt-get install sun-java6-jre)
  • In the file /etc/eclipse/java_home insert /usr/lib/jvm/java-6-sun on the line right above /usr/lib/jvm/java-gcj
  • Start eclipse. It might find a new workspace - Just select the workspace you used with the old JVM.

Montag, 3. März 2008

Found the mysterious memory leak in the ScopePort server

Never forget to use mysql_free_result(MYSQL_RES*)!

I found the leak with the help of the wonderful Valgrind. ( valgrind --tool=memcheck --leak-check=full ./scopeport-server)



Freitag, 22. Februar 2008

ScopePort development debug data

Currently hacking the "Warnings" module...

Sonntag, 10. Februar 2008

The first ScopePort console is ready!

I am currently finishing hacking the first ScopePort console! It's a ncurses-based C++ console that uses the ScopePort remote.php:


Useful ncurses tutorials/examples:
  • http://web.cs.mun.ca/~rod/ncurses/ncurses.html
  • http://www.captain.at/howto-curses-example.php
  • http://www.apmaths.uwo.ca/~xli/ncurses.html

Freitag, 8. Februar 2008

Developing C++ QT applications using Eclipse

You can easily develop C++ QT applications with Eclipse CDT! There is no need for another plugin.

It is important to define the correct libs in the Eclipse project settings. You can find out the correct g++ command string by using qmake(-qt4).
  1. Create a new C++ project.
  2. Add a source file (e.g. the hello world program from the QT4 tutorial)
  3. Use a shell to navigate to the source folder of your hello world program.
  4. Execute "qmake -project && qmake && make" (or qmake-qt4 if you want to use QT4)
  5. You should see the correct g++ line.
  6. Configure your Eclipse project to use the g++ settings.
My project settings (Kubuntu Gutsy, QT4):




You can now delete the files that were created by qtmake and use Eclipse CDT for developing your QT applications. Have fun!