Issue with Ekos Scheduler


×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

  • Posts: 150
  • Thank you received: 15

Rendering Error in layout Message/Item: array_keys(): Argument #1 ($array) must be of type array, null given. Please enable debug mode for more information.

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

  • Posts: 90
  • Thank you received: 37
Why did you compile the latest gsl yourself?

What is the system? Which (Linux) version? Intel or RaspPi?

What do these commands say?

ldd /usr/local/bin/kstars
ldd /usr/local/lib/libgsl.so.23
7 years 2 months ago #17449

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

  • Posts: 150
  • Thank you received: 15

Replied by Picard on topic Issue with Ekos Scheduler


Rendering Error in layout Message/Item: array_keys(): Argument #1 ($array) must be of type array, null given. Please enable debug mode for more information.

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

  • Posts: 90
  • Thank you received: 37
That is pretty straightforward. KStars is linked against gsl, but gsl is not linked with cblas. You should check your custom gsl compilation and make sure that when the gsl library is linked, it is linked against cblas with e.g -lcblas if you don't want to use libgslcblas for KStars.
Last edit: 7 years 2 months ago by Csaba Kertesz.
7 years 2 months ago #17453

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

  • Posts: 150
  • Thank you received: 15

Replied by Picard on topic Issue with Ekos Scheduler

Hi,

i don't think that libgsl must be linked with libgslcblas. Some applications that use this libraries, link them during the linking phase. But kstars
Do you think kstars must link this library ?
The real problem is not in the scheduler like i think, but in the focus module when use the polynomial algo. After 5 iterations, he call the method gsl_polynomial_fit that call some gsl functions that call cblas_dasum method (i don't know exactly when).

Do you know a method for link the library during the make procedure ?
7 years 2 months ago #17481

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

  • Posts: 90
  • Thank you received: 37
Ok, Now I see. I don't know too much about gsl, but I can see that the cblas-related linking flags are defined in gsl's pkgconfig file. I am not even sure how could you properly instruct to build KStars with this custom-built library "properly" because it will get the linking flags all the time for the Ubuntu-version of gsl.

What you can do to edit KStars build files to make it work for your special case.

Inside kstars/CMakeLists.txt, there is line 990-992, you should change to something like this:

# find_package(GSL REQUIRED)
include_directories(/usr/local/include)
target_link_libraries(KStarsLib -L/usr/local/lib -lgsl -lgslcblas ${CMAKE_THREAD_LIBS_INIT} KF5::Notifications)

If you want to use cblas instead of gslcblas, change -lgslcblas to -lcblas
The following user(s) said Thank You: Picard
7 years 2 months ago #17484

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

  • Posts: 150
  • Thank you received: 15

Replied by Picard on topic Issue with Ekos Scheduler

Great !!!

i will testing this evening.

Thank you.
7 years 2 months ago #17488

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

  • Posts: 150
  • Thank you received: 15

Replied by Picard on topic Issue with Ekos Scheduler

Hi,

i reply to myself !!! in fact, i think it's an instability on my ubuntu (too much hack). since a time, i wanted to test ubuntu mate and i have completely reinstall my system. Is better and i have no more problem.

Thank you for your help
Clear sky
Christian
7 years 2 months ago #17578

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

  • Posts: 90
  • Thank you received: 37
Hi Christian,

we have just found out that there was a problem with KStars linking against cblas/gslcblas if you built KStars with gcc. Now a fix is pushed in the git master.
7 years 2 months ago #17592

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

Time to create page: 0.293 seconds