Problem with executable [message #716850] |
Thu, 18 August 2011 15:19 |
Mahesh Messages: 1 Registered: August 2011 |
Junior Member |
|
|
Hi guys,
I am running eclipse(Indigo) CDT on OpenSuSe 11.4. This is basically the code, in test.cpp:
#include <iostream>
#include "cv.h"
#include "highgui.h"
using namespace std;
int main()
{
IplImage * im = cvLoadImage( "/home/mahesh/santo.jpg" );
cvNamedWindow( "Picture", CV_WINDOW_AUTOSIZE );
cvShowImage( "Picture", im );
cvSaveImage( "newim.png", im );
cout << "!!!Hello World!!!" << endl; // prints !!!Hello World!!!
return 0;
}
The build settings are the default debug mode settings (make build command and gcc). Also, the OpenCV library is installed links fine. Here is the build output:
**** Build of configuration Release for project test ****
make all
Building file: ../src/test.cpp
Invoking: GCC C++ Compiler
g++ -I/usr/include/opencv -O3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/test.d" -MT"src/test.d" -o "src/test.o" "../src/test.cpp"
Finished building: ../src/test.cpp
Building target: test
Invoking: GCC C++ Linker
g++ -L/usr/lib -o "test" ./src/test.o -lopencv_highgui -lopencv_core
Finished building target: test
**** Build Finished ****
And when I run, in the console window (or in the terminal when I run from terminal), I only get "!!!Hello World!!!" and the window that is supposed to be shown doesn't show up. Basically, the executable is not owned by me! It is owned by some "-2- user#-2". Same is the case with the saved image (newim.png). So basically, the executable doesn't have permission to launch a window in my desktop.
So how do I set the ownership of the executable?
Thanks a lot in advance.
Cheers,
Mahesh
|
|
|
Powered by
FUDForum. Page generated in 0.04202 seconds