Hi,
I am trying to compile Qt 4.5.2 with ITK. I get the error QT_DIR not
found. I compiled QT 4.5.2 from Source. ccmake tells that the directory
containing QTConfig.cmake file is the QT_DIR. I am not able to find the
file anywhere. Am I missing something?
This is the error i'm getting in CMake:
CMake Warning at CMakeLists.txt:11 (F...
This is in extension to my previous question
http://stackoverflow.com/questions/1107391/how-does-blocking-mode-in-unix-linux-sockets-works
What i gather from Internet now, all the process invoking blocking calls, are put to sleep until the scheduler finds the reasons to unblock it. The reasons can vary from buffer empty to buffer full ...
Who in the kernel is responsible for killing a process.
What if a "kill" comes, and the process is in the blocked state. Does the kill waits until the process comes to running state to clean himself.
If someone can answer more in terms of kernel, like when a SIGINT from the kill command is generated, what all is invoked by the kernel...
Hi,
I have been asked to write a java program on linux platform. According to system admin, the JRE on the linux system is GIJ, which is supposed to be compatible to JRE 1.4.2.
java version "1.4.2"
gij (GNU libgcj) version 4.1.2 20080704 (Red Hat 4.1.2-44)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see ...
This has happened before to me, but I can't remember how I fixed it.
I can't compile some programs here on a new Ubuntu install... Something is awry with my headers.
I have tried g++-4.1 and 4.3 to no avail.
g++ -g -frepo -DIZ_LINUX -I/usr/include/linux -I/usr/include -I/include -c qlisttest.cpp
/usr/include/libio.h:332: error: ‘siz...
I am running a UI unit test with multiple scenarios that requires the UI to get focus when it starts. This test runs for a while and I am facing an issue in GNOME desktop where the focus goes back to this application for each scenario it executes; this prevents me from using my machine when this test case running.
This works fine on win...
In an embedded Linux system, I'm trying to show a shutdown notification that should override any other windows when shutting down. Now creating the window isn't a problem, but showing the window reliably is. The X server or WM is somehow too busy to draw the notification every time. Considering the limited CPU power we have, its not surp...
On a production Linux box without development tools installed (e.g. no headers, no gcc) how do you figure out if it will be able to execute stuff:
compiled under gcc4.1.2 as opposed to gcc3.3.3 (there was a change in ELF between version 3 and 4 I think)
compiled for 64 bit as opposed to 32 bit executables
We have some legacy librarie...
How to make a simple C program which will produce keyboard key hits.
if ( condition ) {
KeyPress('A');
}
I am working on Ubuntu 8.10 Linux OS
...
Hi all,
I am porting my application to windows from Linux. I am fairly new to the fine-art of porting application across platforms. As far as I know, Windows does not natively support POSIX threads implementation. Is this true? I have heard about some implementation of pthreads for windows (a wrapper or something), would it be better to ...
When I am editing source files using vim and other editors sometimes at the end of the line I get these ^M characters at the end of each line. I think that it has something to do with editing a file in windows and then in linux. How can I remove all of these automatically?
...
My program opens a socket on port 80, but if I don't run it as root (with sudo) then it fails to open the socket with a permission error.
This means my application doesn't work when I launch it in the debugger.
So:
Can I tell Eclipse-CDT somehow to launch the app using sudo?
Or, can I somehow enable my program to have permission to o...
Hi,
I am trying to keep a stream to a file /dev/fb0 (linux framebuffer) open throughout several Qt member functions. The goal is to use a myscreen::connect function to open up the framebuffer
bool myscreen::connect()
{
std::fstream myscreen_Fb;
myscreen_Fb.open("/dev/fb0")
QImage* image;
image = new QImage(w, h, QImage::Format_RGB...
Hi all,
Through a bit of digging, I've discovered how to set and get the volume name of an ext3 partition on my Linux box:
set the volume label
tune2fs -L MY-NEW-NAME /dev/disk/by-path/pci-0000\:00\:1f.2-scsi-2\:0\:0\:0-part1
get the volume's current level
dumpe2fs -h /dev/disk/by-path/pci-0000\:00\:1f.2-scsi-2\:0\:0\:0-part1 | grep...
I have Fedora 11 (x86 64) installed with Eclipse. I need a Maven plugin, preferrably m2eclipse, but I cannot find out how to install it. I've tried going through yum, but to no avail (I can't even find any maven plugins).
On my other laptop, I've tried installing the plugin using yum on a 32 bit install of Fedora 11, and while the pac...
I'm going to be making changes to my version of GEdit. I would also like to submit some of my code to the actual GEdit team (bug fixes and stuff like that). GEdit uses a standard to format code like so:
static void hello( GtkWidget *widget,
gpointer data )
{
g_print ("Hello World\n");
}
Which I forget (can't s...
I'm using Linux Inotify to detect FS events on my program.
How could I be notified when a device is mounted on a monitored directory?
...
Hi. I moved from a shared hosting to a VPS a few weeks ago and I'm having these annoying permission issues with WordPress. You know you can download and upgrade plugins (and wordpress itself) from the admin panel, but since I moved it started asking me my FTP credentials, which is kinda slow when I have to update ~20 plugins.
I think th...
Hello
I am about to start a new personal project. It aims to be a pretty big one so I thought it would be a good idea to keep some sort of CVS. I have also read lot of interesting stuff about unit testing and I would like to include some system that automatically builds the project and runs a series of test after each check in.
The cha...
Using --extract-all with xgettext does not work with plurals. Using the answer to I18n C++ hello world with plurals as the C++ code here are two tests using xgettext.
cat >helloplurals.cxx <<EOF
// hellopurals.cxx
#include <libintl.h>
#include <locale.h>
#include <iostream>
int main (){
setlocale(LC_ALL, "");
bindtextdomain("hel...