×

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

Bi-monthly release with minor bug fixes and improvements

XISF support

  • Posts: 2877
  • Thank you received: 811

Replied by Rob Lancaster on topic XISF support

Yes, that did work. But then there was a linking problem for the library. It could not find -lXISF. But this change fixed that on my system.

this line:
target_link_libraries(${PROJECT_NAME} indicore Qt5::Core XISF)

changed to:
target_link_libraries(${PROJECT_NAME} indicore Qt5::Core ${LibXISF_LIBRARIES})

After I made the changes you suggested and changed that other line it built and linked just fine. So did you want to update it with a PR, or should I?

Thanks,

Rob
1 year 1 month ago #90920

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

  • Posts: 349
  • Thank you received: 107

Replied by nou on topic XISF support

You have it working so send PR yourself.
1 year 1 month ago #90925

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

  • Posts: 2877
  • Thank you received: 811

Replied by Rob Lancaster on topic XISF support

The following user(s) said Thank You: nou
1 year 1 month ago #90942

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

  • Posts: 460
  • Thank you received: 69

Replied by Jerry Black on topic XISF support

So I tried a fresh install using astro-soft-build and ended up with version Build: 2023-03-07T16:40:59Z
With this version, saving to XISF rather than FITS results in a crash in the Nikon DSLR driver.

Is this unexpected with this recent build? How can I determine if something is out-of-date and needs updating? The previously mentioned thread entries are too cryptic for me to see where I've gone wrong.

Thanks
1 year 1 month ago #91156

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

  • Posts: 349
  • Thank you received: 107

Replied by nou on topic XISF support

Does it works with simulator?
1 year 1 month ago #91158

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

  • Posts: 460
  • Thank you received: 69

Replied by Jerry Black on topic XISF support

yes, it does.
1 year 1 month ago #91159

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

  • Posts: 349
  • Thank you received: 107

Replied by nou on topic XISF support

It works with for me with my Canon 1100D. I don't know if there is something specific for Nikon. If you could run it through ekosdebugger to get better idea where it does crash?
1 year 1 month ago #91207

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

  • Posts: 460
  • Thank you received: 69

Replied by Jerry Black on topic XISF support

So obviously I have configuration problems. So to be up-to-date I just did a git pull (nothing to update) and tried re-running ./build-soft-latest.sh
and I get...

[ 17%] Building CXX object libs/indibase/CMakeFiles/indidriver_OBJECT.dir/indiccd.cpp.o
In file included from /usr/include/libxisf.h:22,
from /home/blackastro/astro-soft/indi/libs/indibase/indiccd.cpp:38:
/usr/include/libXISF_global.h:22:10: fatal error: QtCore/qglobal.h: No such file or directory
22 | #include <QtCore/qglobal.h>
| ^~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [libs/indibase/CMakeFiles/indidriver_OBJECT.dir/build.make:412: libs/indibase/CMakeFiles/indidriver_OBJECT.dir/indiccd.cpp.o] Error 1

Not sure what is out of sync?

Thanks
1 year 1 month ago #91208

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

  • Posts: 349
  • Thank you received: 107

Replied by nou on topic XISF support

Yes today we merged new version of LibXISF that doesn't depend on Qt. That error is from old version. So update libxisf first.
The following user(s) said Thank You: Jerry Black
1 year 1 month ago #91210

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

  • Posts: 460
  • Thank you received: 69

Replied by Jerry Black on topic XISF support

So, in trying to follow in your footsteps, I added the following to a copy of ./build-soft-latest-xisf.sh in line 20

# add libxisf support
cd "$ROOTDIR"
[ ! -d "libxisf" ] && git clone --depth=1 git.launchpad.net/libxisf
cd libxisf
git pull origin
[ ! -d ../build-libxisf ] && { cmake -B ../build-libxisf ../libxisf -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_LIBS=1 -DCMAKE_BUILD_TYPE=Release || { echo "XISF lib failed"; exit 1; } }
cd ../build-libxisf
make -j $JOBS || { echo "XISF lib failed"; exit 1; }
sudo make install || { echo "XISF lib failed"; exit 1; }

running this script eventually produced errors later in the script, in compiling fitsdata
/home/blackastro/astro-soft/kstars/kstars/fitsviewer/fitsdata.cpp: In member function ‘bool FITSData::loadXISFImage(const QByteArray&)’:
/home/blackastro/astro-soft/kstars/kstars/fitsviewer/fitsdata.cpp:464:28: error: no matching function for call to ‘LibXISF::XISFReader::open(QString&)’
464 | xisfReader.open(m_Filename);
| ~~~~~~~~~~~~~~~^~~~~~~~~~~~
In file included from /home/blackastro/astro-soft/kstars/kstars/fitsviewer/fitsdata.cpp:42:
/usr/include/libxisf.h:357:10: note: candidate: ‘void LibXISF::XISFReader::open(const String&)’
357 | void open(const String &name);
| ^~~~
/usr/include/libxisf.h:357:29: note: no known conversion for argument 1 from ‘QString’ to ‘const String&’ {aka ‘const std::__cxx11::basic_string<char>&’}
357 | void open(const String &name);
| ~~~~~~~~~~~~~~^~~~
/usr/include/libxisf.h:358:10: note: candidate: ‘void LibXISF::XISFReader::open(const LibXISF::ByteArray&)’
358 | void open(const ByteArray &data);
| ^~~~
/usr/include/libxisf.h:358:32: note: no known conversion for argument 1 from ‘QString’ to ‘const LibXISF::ByteArray&’
358 | void open(const ByteArray &data);
| ~~~~~~~~~~~~~~~~~^~~~
/usr/include/libxisf.h:360:10: note: candidate: ‘void LibXISF::XISFReader::open(std::istream*)’
360 | void open(std::istream *io);
| ^~~~
/usr/include/libxisf.h:360:29: note: no known conversion for argument 1 from ‘QString’ to ‘std::istream*’ {aka ‘std::basic_istream<char>*’}
360 | void open(std::istream *io);
| ~~~~~~~~~~~~~~^~
etc...

I think I'm closer, in that I generated a libXISF.so.0.2.0
but I'm still clueless as to what is generating this current issue.

Cheers
1 year 1 month ago #91213

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

  • Posts: 349
  • Thank you received: 107

Replied by nou on topic XISF support

KStars is not merged yet so you need to fetch it from my fork invent.kde.org/nou/kstars/-/tree/xisf0.2
1 year 1 month ago #91214

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

  • Posts: 460
  • Thank you received: 69

Replied by Jerry Black on topic XISF support

I can confirm now that with a compile from kde Build: 2023-03-13T19:37:51Z
that XISF file format storage also works with the gphoto indi_nikon_ccd aka. the Nikon DSLR driver, just as you would expect :)

Thanks!

Cheers
1 year 1 month ago #91249

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

Time to create page: 0.920 seconds