×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

gentoo & indilib

  • Posts: 314
  • Thank you received: 34

gentoo & indilib was created by pauledd

hello there
I opened this topic to solve my gentoo related issue on building indilib. I will descibe the problem below and after that my setup.

the problem:

Canon 700d, GPhoto CCD selected in ekos, can connect, pressing "preview" under CCD tab , mirror moves, "downloading" doesnt stop.
log window says:
pressing the "preview" in the main control gives log:
so I startet the external indiserver "indiserver -vvv indi_gphoto_ccd" and connect ekos to them.
Trying to set the exposure in the main control tab gives this error in the indiserver window:

my setup is:

portage is up to date
Gentoo 3.16.1.aufs sources
cmake 2.8.12.2

I will start with indilib:
since gentoo doesnt use latest svn code to build indilib nor does include any 3rdparty drivers in portage I use only the svn code.
But needed dependencies are installed by emerge:
libusb 1.0.18
libnova 0.12.3
cfitsio 3.140
gsl 1.14

Building libindi with "make" & "make install" no errors at all.


Now getting/building 3rdparty with
svn checkout svn://svn.code.sf.net/p/indi/code/trunk/3rdparty/ 3rdparty
cd 3rdparty
cmake -DCMAKE_INSTALL_PREFIX=/usr .   #as described in the readme
Then first errors occure:
This was the point where I used the "-DWITH_XXX=OFF" option because I dont use this device.
This error repeats for SBIG,FLI,APOGEE,FISHCAMP until my command ends in:
A question arose: DO i need to have libgphoto2 installed? it is nowhere described as dependency... if yes what version? For now I got 2.5.4-r1 from portage.
So I proceed with "make":

There is some warning in the gphoto part, maybe thats related to my problem.
I will stop here so that someone maybe can give some hints or tips.
Normaly I would proceed in building kstars from svn.
--= human, without Windows™ =--
pls excuse my bad english! :)
Last edit: 9 years 5 months ago by pauledd. Reason: grammar
9 years 5 months ago #2034

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

  • Posts: 205
  • Thank you received: 19

Replied by Chris Ryan on topic gentoo & indilib

I haven't had much luck in getting my Canon 6D working, so I gave up with it for now and concentrated on my CCD instead. I couldn't get it to download images from the camera from memory.

However, let's go a few things I've got setup - maybe that will help you. My system mostly works (ekos/kstars) with my CCD, scope and focuser. The only real problems I have are the guider and the 6D.

I'm on Gentoo, 3.16.3-gentoo kernel.
cmake 3.0.2

libusb 1.0.19
libnova 0.15.0
cfitsio 3.360
gsl 1.16

I have the same libgphoto2 version installed as you. It might be worth updating some of those libraries. I remember having a few build issues with earlier versions of some of those libraries.

My build process for libindi and 3rdparty:

cd indi-code/
svn up
cd libindi_build/
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ~/indi-code/libindi
sudo make install
cd ../3rdparty/
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug .
sudo make install

It's worthwhile building with DEBUG for when the errors occur - you can hopefully get more useful data to pst then. Try adding that and maybe you might get more info? Overall though, from what I read of your post you've got more of a gphoto2/ekos problem than a Gentoo problem.

For completeness, I do the following for kstars build:

cd ~/kstars/
git pull
cd kstars_build/
export PATH=$PATH:/usr/local/astrometry/bin
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ~/kstars/
sudo make install

I have a patch to a cmake file so the astrometry files can be found (in conjunction with the updated PATH):
9 years 5 months ago #2036

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

  • Posts: 314
  • Thank you received: 34

Replied by pauledd on topic gentoo & indilib

Ok thank you, I will play a little bit more with different dependencies versions and enable debug flags.
I am just curious about your 3rdparty build. Where do you get it from and did it never
complain on missing "SBIG,FLI,APOGEE,FISHCAMP"? Did I miss something?
--= human, without Windows™ =--
pls excuse my bad english! :)
9 years 5 months ago #2037

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

Replied by Jasem Mutlaq on topic gentoo & indilib

It would be better to only build the drivers you required from 3rd party, not the whole bunch. Were you able to capture using gphoto2 or digikam from Gentoo?
9 years 5 months ago #2038

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

  • Posts: 314
  • Thank you received: 34

Replied by pauledd on topic gentoo & indilib

testing...
I guess this will be fix-able for geting raw images. For the canon 700d it seems live preview is not possible from gphoto2
in conjuction with the ghphoto remote control supported list
damn, did I bought the wrong camera again? :S maybe I should go without live preview or find a camera that is really supported by gphoto2, I still have some time
to return the camera and change it to some Nikon model...
--= human, without Windows™ =--
pls excuse my bad english! :)
9 years 5 months ago #2039

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

  • Posts: 314
  • Thank you received: 34

Replied by pauledd on topic gentoo & indilib

I have made some progress, the live view preview effectively works now, not at high fps but better than nothing :)

What I have changed so far:
indilib updated dependencies to the highest currently possible in portage (same as lazjen's)
libusb 1.0.19
libnova 0.15.0
cfitsio 3.360
gsl 1.16

libgphoto2 & gphoto2 built from svn
gphoto2 2.5.5.1 gcc, popt(m), exif, no cdk, no aa, jpeg, readline
libgphoto2 2.5.5.2 INCOMPLETE CAMLIB SET (canon ptp2), gcc, ltdl, EXIF
libgphoto2_port 0.12.0


The RAW image problem is still there but I found that it could have to do something with dcraw. I even didnt know that dcraw is a dependency to indilib..
The log says "Invalid parameters: 'file && mime_type' is NULL/FALSE." and "dcraw cant parse the header".
What version of dcraw is preferred? Mine is v9.10

here is a log from the indiserver:
--= human, without Windows™ =--
pls excuse my bad english! :)
Last edit: 9 years 5 months ago by pauledd. Reason: grammar
9 years 5 months ago #2040

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

  • Posts: 205
  • Thank you received: 19

Replied by Chris Ryan on topic gentoo & indilib


Just on this point for me: I could have skipped a couple, but I've got a number of different devices (SBIG, QHY and Canon at least). I might also be going to connect other people's cameras as well, so I built everything just in case.
9 years 5 months ago #2041

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

  • Posts: 314
  • Thank you received: 34

Replied by pauledd on topic gentoo & indilib

Yes, "gphoto2 --capture-image-and-download" produces valid *.cr2 raw's.

EDIT:
I am running out of ideas. I tried different versions of dcraw with no effect. If this can't be solved I will
have to set up an ubuntu system on another disk for astronomy tasks only
--= human, without Windows™ =--
pls excuse my bad english! :)
Last edit: 9 years 5 months ago by pauledd.
9 years 5 months ago #2042

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

  • Posts: 314
  • Thank you received: 34

Replied by pauledd on topic gentoo & indilib

I gave up and I am on Ubuntu now. I will build gentoo from scratch to try it again but not until I got enough "energy" .
Just one question to lazjen: Did you successfully acquire a raw image in ekos with your canon previously?
--= human, without Windows™ =--
pls excuse my bad english! :)
9 years 5 months ago #2049

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

  • Posts: 205
  • Thank you received: 19

Replied by Chris Ryan on topic gentoo & indilib

No, I didn't get it working for Canon. I thought there might have been some issue with the memory allocation/buffer size being used by indi/ekos, but I never got around to chasing that down.

And by the time I really got into using ekos, I had switched over to using the SBig ST-8XE as my primary camera so I put the canon aside and concentrated on testing it instead.

Also, like you I can get gphoto2 to get a valid cr2 raw.
The following user(s) said Thank You: pauledd
9 years 5 months ago #2050

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

  • Posts: 314
  • Thank you received: 34

Replied by pauledd on topic gentoo & indilib

It works now! :woohoo: But stupidly I was not able to find out what exactly caused the error. Things I did in the meantime:
  • updated to latest cmake in portage
  • de-installed everything related to indilib,kde and all their dependencies
  • installed kdelibs from portage,
  • compiled dcraw (latest) manually
  • build of libgphoto2/indilib/kstars from their repos (but their dependencies from portage(latest versions))
  • and maybe the most clever part: Manually set "L" to "RAW" in my Canon700D. :pinch: :whistle:
Using darktable I was just curious about not getting raw's even when I set them. It seems its is not possible to switch the imageformat remotely... maybe because of libgphoto. I guess that was the reason why ekos always complained about "cant parse header" and "wrong mime type" because it got JPEGs to process..
I will investigate further, but careful, I don’t want loose the advancement
--= human, without Windows™ =--
pls excuse my bad english! :)
Last edit: 9 years 5 months ago by pauledd. Reason: addition
9 years 5 months ago #2058

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

  • Posts: 314
  • Thank you received: 34

Replied by pauledd on topic gentoo & indilib

@lazjen
Do you currently use KF5 QT5 versions with kstars/indi on gentoo? I want to set up a new system for indi purposes only but KF5 on gentoo seems to me quite confusing and very "under construction"...
--= human, without Windows™ =--
pls excuse my bad english! :)
9 years 2 months ago #2576

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

Time to create page: 0.439 seconds