LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   creating a window in linux with a 'window' variable??! (openCV) (https://www.linuxquestions.org/questions/programming-9/creating-a-window-in-linux-with-a-window-variable-opencv-295965/)

vmok82 02-28-2005 03:31 PM

creating a window in linux with a 'window' variable??! (openCV)
 
Hi !

I need some help with window creation in Linux.
I'm programming with a C library (OpenCV) to use my camera.

My problem is : I have to give a 'Window' variable type to the function which displays a picture (OpenCV -> cvcam -> cvcamSetProperty() )..

The windows equivalent is HWND, and it works fine in windows, unfortunately my task is to migrate this code to 'nix and I can't get it working T_T

I can't seem to find any kind of reference of any kind of Window type anywhere so I thought maybe I was missing some kind of core X11Lib or something. I'd like to know if anyone knows of it or if I have to try and use something like GTK (which i've never used before)

I would be very happy if someone can tell me how to create a window by myself and get this f*#@?ng 'Window' variable..

Thanks in Advance!

jailbait 02-28-2005 03:38 PM

"I can't seem to find any kind of reference of any kind of Window type anywhere so I thought maybe I was missing some kind of core X11Lib or something. I'd like to know if anyone knows of it or if I have to try and use something like GTK (which i've never used before)"

I suggest that you use either Gtk+ or Qt. Both of them have been ported to Windows. So if you rewrite your program using either Gtk+ or Qt then you could have a single version of your program that can be compiled and run on a wide variety of hardware and software including Wintel.

------------------------------
Steve Stites


All times are GMT -5. The time now is 08:47 AM.