Tiny Core Linux

General TC => Tiny Core on Virtual Machines => Topic started by: philippefoubert on September 08, 2014, 05:59:10 PM

Title: GTK application on TC : the content of the window is not updated
Post by: philippefoubert on September 08, 2014, 05:59:10 PM
Hi,

I have installed GTK (gtk3-dev.tcz) on my TC VM (i am using VMware player) and compiled a basic GUI application (the very basic application "cpp-example-drawing" provided with OpenCV to be more precise).

The application is usually working without any special effort on other Linux OS (that's why i use it to check my installation) but, here, the content of the window remains completely gray.

Do i have something to adjust in my Xvesa resolution settings ?

Thx,
  Philippe.
Title: Re: GTK application on TC : the content of the window is not updated
Post by: Zill on September 10, 2014, 09:48:00 AM
I had the same problem.  I never understood why, but it seemed like it didn't like the default color depth so i changed it to 16 bit.  I got it to work by using the bootcode "xvesa=1280x1024x16", but you can use whatever resolution you want.
Title: Re: GTK application on TC : the content of the window is not updated
Post by: philippefoubert on September 13, 2014, 07:49:05 AM
Thx for your answer Zill.

I have seen your post (in August) on the same subject. I think too that it has something to do with xvesa but in my case your solution is not working (even with a lower resolution)... i am running short of ideas... Were you also on a virtual machine?

Philippe.
Title: Re: GTK application on TC : the content of the window is not updated
Post by: Zill on September 15, 2014, 12:10:26 PM
Yes, I was using VirtualBox. I wish I could give you more ideas, but I'm not too experienced with Linux in general.  The only reason I even changed the color depth in the first place is because I ran out of ideas that made sense to me and just started changing random things.
Title: Re: GTK application on TC : the content of the window is not updated
Post by: philippefoubert on September 15, 2014, 05:42:18 PM
Thx Zill for your reply.

I had first tried to build a VMWare image from the Tiny Core iso but have not been able to solve this issue. Then, i have tried to build it from the Core Plus iso but the problem is still present.

After many hours spent, i have decided to give up... The Tiny Core Linux seems great but i have not been able to find a solution to this problem. I really need to be able to use GTK on my image. It's sad but i have lost too much time. I'll go back to a distribution heavier but which i know better...  :(
Title: Re: GTK application on TC : the content of the window is not updated
Post by: Zill on September 16, 2014, 10:30:54 AM
I realize this may be a little late, but I was curious as to what code from OpenCV you were using.  Here is another simple drawing program that you could try: https://developer.gnome.org/gtk3/stable/ch01s03.html (https://developer.gnome.org/gtk3/stable/ch01s03.html)
Title: Re: GTK application on TC : the content of the window is not updated
Post by: philippefoubert on September 16, 2014, 11:12:28 AM
Thx Zill, i'll try it this evening.

The code i was using is available at "https://github.com/Itseez/opencv/blob/master/samples/cpp/drawing.cpp" (OpenCV git repository, branch master).  It is using GTK+ but not directly (since it calls functions from the "highgui" module of OpenCV). I have used this code without any problem on Windows (XP 32 bits, Seven 64 bits, ...) and on Fedora (from Fedora 10 32 bits to Fedora 20 64 bits).
Title: Re: GTK application on TC : the content of the window is not updated
Post by: philippefoubert on September 17, 2014, 03:09:17 PM
Zill, i have tested with your example and got the same behavior : the content of the window remains completely gray.