If you see a load of compile errors from Qt4 classes when doing a compile, this is sometimes caused by your #include statements.
To fix it, replace all the #include <qwhatever>with a single
#include <QtGui>
instead. (For GUI elements anyway. See /usr/include/qt4/Qt directory for other default includes like QtNetwork etc etc)
You should be using that anyway, but QT3 habits die hard.
Wednesday, 25 November 2009
Friday, 11 September 2009
Subversion hangs on commit
If you find that your subversion commands such as commit are hanging before they complete (usually requiring a kill -9 to exit from) and you are using Apache as the webserver, make sure that the Apache KeepAlive directive is on.
Thursday, 28 May 2009
.infig.status: error: cannot find input file
Seen when running ./configure before building an application from sourcecode.
Cause: Seems to be caused (under Linux) by having DOS style line endings in the configure script.
Solution: Open 'configure' in a Linux text editor (like kwrite), small change, undo the change and save the file so that it writes in all the correct line endings.
Alternative is to use tr to do the conversion:
tr -d "\15\32" < configure > configure.new
./configure.new
Cause: Seems to be caused (under Linux) by having DOS style line endings in the configure script.
Solution: Open 'configure' in a Linux text editor (like kwrite), small change, undo the change and save the file so that it writes in all the correct line endings.
Alternative is to use tr to do the conversion:
tr -d "\15\32" < configure > configure.new
./configure.new
Monday, 26 January 2009
Setting monitor powersaving on eeepc
To prevent the eeepc going to sleep when shutting the lid.
Open a terminal (ctrl-alt-t)
Login as root (su)
edit the file (using pico or some other editor) /etc/acpi/lidbtn.sh
comment out (with a #) the line
/etc/acpi/suspend2ram.sh
Save the file.
eeepc should now remain awake when lid is shut.
To prevent external monitor going to sleep after timeout
xset -dpms
This deactivates Energy Star
Open a terminal (ctrl-alt-t)
Login as root (su)
edit the file (using pico or some other editor) /etc/acpi/lidbtn.sh
comment out (with a #) the line
/etc/acpi/suspend2ram.sh
Save the file.
eeepc should now remain awake when lid is shut.
To prevent external monitor going to sleep after timeout
xset -dpms
This deactivates Energy Star
Subscribe to:
Posts (Atom)