LuckyEddie47 / kstars_extensions

GNU General Public License v3.0
1 stars 0 forks source link

Almost there... #2

Open leafar-izen opened 1 month ago

leafar-izen commented 1 month ago

Hi Lucky,

I've been able to compile successfully your Siril_EAA extenssion on MacOS. (Took me time to get all the QT stuff up and runing) I had to modify the Makefiles.txt to include StateMAchine as i Run a 6.something version of QT

I placed my 3 files (exec, conf, and Icon) in ".../ApplicationSupport/kstars/extenssions/"

Put siril_path=/Applications/Siril.app

in conf file...

The i launched Kstars/Ekos (with simulators), but I'm unable to spot any Siril Icon...

What Am I missing ?

Cheers

leafar-izen commented 1 month ago

Ok, I found it in the first tab of Ekos ! I tryed to play it, but i got those messages in the console :

2024-10-06T18:25:36 Extension 'Siril_EAA' stopped 2024-10-06T18:25:36 Extension 'Siril_EAA': Closing extension 2024-10-06T18:25:36 Extension 'Siril_EAA': Can not connect to DBus session interface, is the DBus deamon running? 2024-10-06T18:25:36 Extension 'Siril_EAA' started 2024-10-06T18:25:36 Extension 'Siril_EAA' start requested

No idea was is DBus deamon. A stuff from this QT package ... ?

leafar-izen commented 1 month ago

Ok, Now I did install anr run this DB daemon...

But i got those errors diplayed in console 👍 2024-10-06T19:27:54 Extension 'Siril_EAA' stopped 2024-10-06T19:27:54 Extension 'Siril_EAA': Closing extension 2024-10-06T19:27:53 Extension 'Siril_EAA': Input file: /tmp/siril_command.out does not exist 2024-10-06T19:27:49 Extension 'Siril_EAA': Initialisation du support multithreading du FFTW... log: Bienvenue dans siril v1.2.4 log: Type de fichiers support?s : Images BMP, Images PIC (IRIS), Images binaires PGM et PPM, Images RAW, Images FITS-CFA, Films, S?quences SER, Images TIFF, Images JPG, Images PNG, Images HEIF. log: D?finir le r?pertoire de travail ? '/Users/raphael/Pictures/SiriL/ASI585-RUBINAR595/BulleOct4' OMP: Info #276: omp_set_nested routine deprecated, please use omp_set_max_active_levels instead. OMP: Info #276: omp_get_nested routine deprecated, please use omp_get_max_active_levels instead. log: Calcul parall?le activ? : Utilisation de 8 processeurs. log: Le fichier de tube nomm? /tmp/siril_command.in existe d?j? mais n'est pas un fifo, impossible de le cr?er ou de l'ouvrir. read pipe /tmp/siril_command.in waiting to be opened... opened read pipe closed read pipe closing pipes 2024-10-06T19:27:49 Extension 'Siril_EAA': Siril is started as MacOS application 2024-10-06T19:27:48 Extension 'Siril_EAA': Detected locale "fr_FR" with character encoding "", which is not UTF-8. Qt depends on a UTF-8 locale, and has switched to "UTF-8" instead. If this causes problems, reconfigure your locale. See the locale(1) manual for more information. 2024-10-06T19:27:48 Extension 'Siril_EAA' started 2024-10-06T19:27:48 Extension 'Siril_EAA' start requested

LuckyEddie47 commented 1 month ago

With a caveat that I know nothing about the Mac environment and have no idea if this will work there...

DBus is a inter-process communication system. It's how KStars/Ekos talks to other applications. DBus is not native on Mac but apparently is available through Homebrew.

The above error about the fifo is to do with how Siril talks to other applications. It creates two fifo's - siril_command.in and siril_command.out to send and receive data. On Linux these are created in the /tmp directory. I don't know if this is the case on Mac. Also Siril currently fails to create one of the fifo on first run in headless mode - see the note in the README for the workaround.

leafar-izen commented 1 month ago

Well, I launched Siril from terminal like this 👍 open Siril.app --args -p is it correct ? I think Siril is launched because in console message i can see "log: Bienvenue dans siril v1.2.4"

When i run Kstars with mount and camera simulator and lauch Siril_EAA, i got this

2024-10-06T21:12:14 Extension 'Siril_EAA': 2024-10-06T21:12:09 Extension 'Siril_EAA': read pipe /tmp/siril_command.in waiting to be opened... opened read pipe closed read pipe closing pipes 2024-10-06T21:12:09 Extension 'Siril_EAA': Initialisation du support multithreading du FFTW... log: Bienvenue dans siril v1.2.4 log: Type de fichiers support?s : Images BMP, Images PIC (IRIS), Images binaires PGM et PPM, Images RAW, Images FITS-CFA, Films, S?quences SER, Images TIFF, Images JPG, Images PNG, Images HEIF. log: D?finir le r?pertoire de travail ? '/Users/raphael/Pictures/SiriL/ASI585-RUBINAR595/BulleOct4' OMP: Info #276: omp_set_nested routine deprecated, please use omp_set_max_active_levels instead. OMP: Info #276: omp_get_nested routine deprecated, please use omp_get_max_active_levels instead. log: Calcul parall?le activ? : Utilisation de 8 processeurs. log: Le fichier de tube nomm? /tmp/siril_command.in existe d?j? mais n'est pas un fifo, impossible de le cr?er ou de l'ouvrir. 2024-10-06T21:12:09 Extension 'Siril_EAA': Siril is started as MacOS application 2024-10-06T21:12:09 Extension 'Siril_EAA' started 2024-10-06T21:12:09 Extension 'Siril_EAA' start requested

LuckyEddie47 commented 1 month ago

With Siril launched from the terminal with the -p argument run a ls on /tmp. Do you see both siril_command.in and siril_command.out ?

leafar-izen commented 1 month ago

Yes, When i launch Siril with a /Application/Siril.app -aarg -p, siril_command.in and .out are created in /tmp/

Then, when i launched EAA from kstars, got this console messages 👍 2024-10-07T07:54:41 Extension 'Siril_EAA': ready status: starting cd read pipe /tmp/siril_command.in waiting to be opened... waiting for commands to be read from the pipe write pipe /tmp/siril_command.out waiting to be opened... opened write pipe opened read pipe closed read pipe log: Ex?cution de la commande : cd log: ExĂ©cution de la commande : cd 1728280481: running command cd read pipe /tmp/siril_command.in waiting to be opened... log: D?finir le r?pertoire de travail ? '/Users/raphael/Pictures/SiriL/ASI585-RUBINAR595/BulleOct4/Bias' log: DĂ©finir le rĂ©pertoire de travail Ă  '/Users/raphael/Pictures/SiriL/ASI585-RUBINAR595/BulleOct4/Bias' status: success cd waiting for commands to be read from the pipe opened read pipe closed read pipe log: Ex?cution de la commande : start_ls 1728280481: running command start_ls log: Pr?-traitement non utilis? status: starting start_ls log: ExĂ©cution de la commande : start_ls SiriL/ASI585-RUBINAR595/BulleOct4/Bias' status: success cd read pipe /tmp/siril_command.in waiting to be opened... log: D?marrage du live stacking log: PrĂ©-traitement non utilisĂ© log: DĂ©marrage du live stacking

SiriL/ASI585-RUBINAR595/BulleOct4/Bias' status: success cd status: success start_ls utilisé log: Démarrage du live stacking

SiriL/ASI585-RUBINAR595/BulleOct4/Bias' status: success cd waiting for commands to be read from the pipe log: Le live stacking attend des fichiers log: Le live stacking attend des fichiers marrage du live stacking

SiriL/ASI585-RUBINAR595/BulleOct4/Bias' status: success cd 2024-10-07T07:54:36 Extension 'Siril_EAA': log: D?finir le r?pertoire de travail ? '/Users/raphael/Pictures/SiriL/ASI585-RUBINAR595/BulleOct4' OMP: Info #276: omp_set_nested routine deprecated, please use omp_set_max_active_levels instead. OMP: Info #276: omp_get_nested routine deprecated, please use omp_get_max_active_levels instead. log: Calcul parall?le activ? : Utilisation de 8 processeurs. 2024-10-07T07:54:36 Extension 'Siril_EAA': Initialisation du support multithreading du FFTW... log: Bienvenue dans siril v1.2.4 log: Type de fichiers support?s : Images BMP, Images PIC (IRIS), Images binaires PGM et PPM, Images RAW, Images FITS-CFA, Films, S?quences SER, Images TIFF, Images JPG, Images PNG, Images HEIF. 2024-10-07T07:54:36 Extension 'Siril_EAA': Siril is started as MacOS application 2024-10-07T07:54:36 Extension 'Siril_EAA' started 2024-10-07T07:54:36 Extension 'Siril_EAA' start requested

leafar-izen commented 1 month ago

Not sure what I'm supposed to do from there. Do I need to start capture or preview or loop from acquisition tab in Ekos ?

Capture d’écran 2024-10-07 à 07 52 33
leafar-izen commented 1 month ago

Don't know if this is meaningfull for you, but when I try to display the content of the in and out files doing a cat siril.comand.in It returns nothing and get stuck, I have to stop the cat with a CTRL+C

PS : anyway, don't bother too much for me. I'm not really needing the feature right on. I've another livestacking method with ASI Live. I was just curious on how I can compile code for my mac, and I'm an anthousiastic user of Kstars, so, curious about how extensions will go. But if I can be of any help for debugging your app, don't hesitate to ask me for more tests.