I am attempting to develop QT console APP for RHEL 5 using QT 4.5.2.
I can build and run a simple app one system, but when I attempt to run the same app on a different RHEL 5 machine the program produces a Segmentation Fault.
I eventually created two small programs to demonstrate the error. The first program runs with no problems. The second creates the segmentation fault.
Here is the code for program one (which works):
#include <stdio.h>
int main()
{
fprintf(stderr, "Program running.\n");
return 0;
}
#include <stdio.h>
int main()
{
fprintf(stderr, "Program running.\n");
return 0;
}
To copy to clipboard, switch view to plain text mode
Here is the code from program two (produces segmentation fault):
#include <QDebug>
int main()
{
qDebug("Program running.");
return 0;
}
#include <QDebug>
int main()
{
qDebug("Program running.");
return 0;
}
To copy to clipboard, switch view to plain text mode
Here is the programs running on the non-development machine:
# ./QTTest
Program running.
# ./QTTest2
Segmentation fault
I configured QT 4.5.2 with -static -release options.
I would appreciate any advice or help.
Karl
Bookmarks