×

INDI Library v1.9.9 Released (30 Nov 2022)

Bi-monthly INDI Library released with new drivers and bug fixes.

Collimation Circles

  • Posts: 132
  • Thank you received: 28

Replied by Marc on topic Collimation Circles

Source of sct-colim if you have basic skills in compilation and can't wait ...

- Marc
2 years 10 months ago #50925
Attachments:

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

  • Posts: 309
  • Thank you received: 40

Replied by David Tate on topic Collimation Circles

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.
2 years 10 months ago #50931

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

  • Posts: 132
  • Thank you received: 28

Replied by Marc on topic Collimation Circles

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

Last edit: 2 years 10 months ago by Marc.
2 years 10 months ago #50932
Attachments:

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

  • Posts: 309
  • Thank you received: 40

Replied by David Tate on topic Collimation Circles

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"

Last edit: 2 years 10 months ago by David Tate.
2 years 10 months ago #50933
Attachments:

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

  • Posts: 132
  • Thank you received: 28

Replied by Marc on topic Collimation Circles

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
Last edit: 2 years 10 months ago by Marc.
2 years 10 months ago #50948

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

  • Posts: 309
  • Thank you received: 40

Replied by David Tate on topic Collimation Circles

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)
~~~~~~~~~~~^~~~~~
Last edit: 2 years 10 months ago by David Tate.
2 years 10 months ago #50950

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

  • Posts: 132
  • Thank you received: 28

Replied by Marc on topic Collimation Circles

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
2 years 10 months ago #50954

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

  • Posts: 309
  • Thank you received: 40

Replied by David Tate on topic Collimation Circles

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.
2 years 10 months ago #50955

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

  • Posts: 6
  • Thank you received: 1

Replied by Matteo on topic Collimation Circles

When I use Ekos Polar alignment assistant and I select the reference star, there is an useful little circle to identify the star to bring in the crosshair. When I move the knobs, the circle follows the star.
What about using the same approach to follow the reference star donut with the double circle overlay?
The following user(s) said Thank You: MH
9 months 3 weeks ago #82156

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

  • Posts: 51
  • Thank you received: 4

Replied by Richard Hornby on topic Collimation Circles

Hi Marc

I've had sct-colim working well in Manjaro for a year or so and now want to port it to my Raspberry OS 64 to use on the mount. Unfortunately the gtk-2-dev package is no longer available. Can the program be changed to use gtk-3?

Many thanks
R
9 months 4 days ago #82643

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

  • Posts: 52
  • Thank you received: 10

Replied by Simon on topic Collimation Circles

Here is my 5 cents. I have made this application Collimation Circles and I hope you will find it useful:

github.com/sajmons/CollimationCircles
The following user(s) said Thank You: Peter Sütterlin
1 week 11 hours ago #89905

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

Time to create page: 0.751 seconds