×
INDI Library v1.8.5 Released (19 Apr 2020)

April 2020 release of INDI Library v1.8.5 introduces new drivers while providing fixes and improvements to existing devices and core framework.

Collimation Circles

2 months 6 days ago
Marc2b
Expert Boarder
Expert Boarder
Posts: 114
Karma: 1
More
Collimation Circles #50925
Source of sct-colim if you have basic skills in compilation and can't wait ...

- Marc
Attachments:

Please Log in or Create an account to join the conversation.

2 months 5 days ago
Megiddo
Gold Boarder
Gold Boarder
Posts: 242
More
Topic Author
Collimation Circles #50931
I have it running... but it's not transparent. The circles resize nicely and change colors. (pretty neat)

Now what I did was replace the sample main.c that is auto built by CodeLite. It's an Executable GUI GTK 2.4/C project.

Please Log in or Create an account to join the conversation.

2 months 5 days ago 2 months 5 days ago by Marc2b.
Marc2b
Expert Boarder
Expert Boarder
Posts: 114
Karma: 1
More
Collimation Circles #50932
Try to start if from a terminal and see if it says "supports_alpha = TRUE"
If it says "supports_alpha = FALSE" then your X server does not support alpha blending.
In that case, it's not possible to have transparency.

You can also try :

xdpyinfo | grep -i render

If it says RENDER, then the Xrender extension which deals with the alpha blending is installed.
If not, well... Bad news :(

What is your set up ? distro, X server, (Xorg, Wayland ?) PC, Raspberry ?

- Marc

Attachments:

Please Log in or Create an account to join the conversation.

2 months 5 days ago 2 months 5 days ago by Megiddo.
Megiddo
Gold Boarder
Gold Boarder
Posts: 242
More
Topic Author
Collimation Circles #50933
It does say:
supports_alpha = TRUE
and
RENDER

I'm running Raspberry Pi4 using Raspbian. I complied with CodeLite as "Executable GUI GTK 2.4/C project"

Attachments:

Please Log in or Create an account to join the conversation.

2 months 5 days ago 2 months 5 days ago by Marc2b.
Marc2b
Expert Boarder
Expert Boarder
Posts: 114
Karma: 1
More
Collimation Circles #50948
Maybe your Window Manager is blocking transparency. You should look at you WM setup.
Or, it can be VNC blocking alpha channel (limited number of colors) to speed up the cnx.
If you are connecting through VNC, try to connect directly with a mouse, kbd and screen.
If it works, then the problem comes from the VNC side. If not, then the problem comes from your WM.

If it comes from VNC, try to set 32bits colors. (Will slow down your cnx !)

Also try to skip CodeLite and just build with

gcc $(pkg-config --libs --cflags gtk+-2.0) main.c -o sct-colim

Anyway, I don't have raspi4 nor stellarmate, so it is not easy to help you beyond that point.

- Marc

Please Log in or Create an account to join the conversation.

2 months 5 days ago 2 months 5 days ago by Megiddo.
Megiddo
Gold Boarder
Gold Boarder
Posts: 242
More
Topic Author
Collimation Circles #50950
Running it directly without noNVC made no difference.

and running sct-solim after your build line is still showing non-transparently.


But using your build line I see the following output:
(the font is not helping you see the warnings... it's pointing to: *window and win and *widget).

gcc $(pkg-config --libs --cflags gtk+-2.0) main.c -o sct-colim
main.c: In function \u2018main\u2019:
main.c:38:27: warning: passing argument 1 of \u2018gtk_window_set_position\u2019 from incompatible pointer type [-Wincompatible-pointer-types]
gtk_window_set_position (window, GTK_WIN_POS_CENTER);
^~~~~~
In file included from /usr/include/gtk-2.0/gtk/gtkdialog.h:35,
from /usr/include/gtk-2.0/gtk/gtkaboutdialog.h:32,
from /usr/include/gtk-2.0/gtk/gtk.h:33,
from main.c:1:
/usr/include/gtk-2.0/gtk/gtkwindow.h:195:70: note: expected \u2018GtkWindow *\u2019 {aka \u2018struct _GtkWindow *\u2019} but argument is of type \u2018GtkWidget *\u2019 {aka \u2018struct _GtkWidget *\u2019}
void gtk_window_set_position (GtkWindow *window,
~~~~~~~~~~~~~~~~~~~~~^~~~~~
main.c: In function \u2018clicked\u2019:
main.c:145:10: warning: passing argument 1 of \u2018expose\u2019 from incompatible pointer type [-Wincompatible-pointer-types]
expose( win, NULL, NULL);
^~~
main.c:89:35: note: expected \u2018GtkWidget *\u2019 {aka \u2018struct _GtkWidget *\u2019} but argument is of type \u2018GtkWindow *\u2019 {aka \u2018struct _GtkWindow *\u2019}
static gboolean expose(GtkWidget *widget, GdkEventExpose *event, gpointer userdata)
~~~~~~~~~~~^~~~~~

Please Log in or Create an account to join the conversation.

2 months 5 days ago
Marc2b
Expert Boarder
Expert Boarder
Posts: 114
Karma: 1
More
Collimation Circles #50954
If you are using Mate WM, go to Mate tweaks Chose Window -> Window Manager. See if one of the options works.
I don't use other Window Managers.

- Marc

Please Log in or Create an account to join the conversation.

2 months 4 days ago
Megiddo
Gold Boarder
Gold Boarder
Posts: 242
More
Topic Author
Collimation Circles #50955
No, I'm running this with the new release and that uses Raspbian. So I've been using CodeLite.
MATE doesn't seem to have a release for Raspbian.

But don't let me stop you in anyway. I'm sure there are others here more capable to test this out.

Please Log in or Create an account to join the conversation.

Time to create page: 0.812 seconds