×

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

Bi-monthly release with minor bug fixes and improvements

AstroPi3 Scripts revised

  • Posts: 460
  • Thank you received: 69
I'm guessing... are you compiling with a "-j x" option that exceeds you available memory? On a 4G Odroid, I've had to cut back my compile processes to -j2 it seems.
The following user(s) said Thank You: Tom
3 years 4 months ago #63324

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

  • Posts: 238
  • Thank you received: 15

Replied by Tom on topic AstroPi3 Scripts revised

not only that, but i am also getting this when compiling indi-3rdparty

[ 95%] Linking CXX executable indi_rpicam
/usr/bin/ld: /opt/vc/lib/libmmal_core.so: error adding symbols: file in wrong format
collect2: error: ld returned 1 exit status
make[2]: *** [indi-rpicam/CMakeFiles/indi_rpicam.dir/build.make:306: indi-rpicam/indi_rpicam] Error 1
make[1]: *** [CMakeFiles/Makefile2:3873: indi-rpicam/CMakeFiles/indi_rpicam.dir/all] Error 2
make: *** [Makefile:152: all] Error 2
3 years 4 months ago #63326

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

  • Posts: 238
  • Thank you received: 15

Replied by Tom on topic AstroPi3 Scripts revised

How to exclude this indi_rpicam when compiling indi_3rdparty????

This is something I found when I search for answers, www.raspberrypi.org/forums/viewtopic.php?t=143539

Maybe someone can help up?

Thanks.
Last edit: 3 years 4 months ago by Tom.
3 years 4 months ago #63327

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

  • Posts: 2876
  • Thank you received: 809
Tom, I think I agree with Jerry, the first issue is probably that your system probably ran out of available memory or something similar. Do you have the zram option enabled and is zram running? How many GB of ram do you have?

For the rpicam issue, when I first saw your post, I suspected that it was a recent change in 3rd party that caused the failure. I thought maybe rpicam had been recently added or recently changed to cause the issue, but I took a look and it hasn't been changed in about 2 months. So I am not sure I understand why it would have the wrong symbols. What system are you using, is it armhf, arm-64 or something else? I would think the best solution would be to submit a bug report to either the author or rpicam or to the 3rd party INDI drivers repo so that whatever issue there is with that driver, it can get fixed.

My script by default builds all 3rd party drivers based on this cmakelists: github.com/indilib/indi-3rdparty/blob/master/CMakeLists.txt. If you want to turn off the building of any particular driver, you can either edit the cmakelists.txt file, or you can change the cmake build command in the script to turn off the driver(s) you don't want.
3 years 4 months ago #63338

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

  • Posts: 238
  • Thank you received: 15

Replied by Tom on topic AstroPi3 Scripts revised

Thanks Rob. Any guide on how to change the cmake build command in the script to turn off the driver(s) I don't want?

Actually, I am trying this Raspios arm64 image right now. downloads.raspberrypi.org/raspios_arm64/...os_arm64-2020-08-24/
3 years 4 months ago #63386

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

  • Posts: 238
  • Thank you received: 15

Replied by Tom on topic AstroPi3 Scripts revised

okay done. I managed to turn OFF the indi_rpicam option in cmakelist before it starts compiling. So my next question is will this cmakelist.txt change when performing git pull?

Thanks

Tom
3 years 4 months ago #63390

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

  • Posts: 2876
  • Thank you received: 809
So since you modified the cmakelists, if you do a git pull and nobody changes that file, then you are fine and it will merge with the other changes. But if somebody edits cmakelists,txt, you might have to undo your change or delete the file, or reset the repo before doing the git pull. You will know that it is a problem because it will refuse to git pull in that case.
3 years 4 months ago #63394

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

  • Ray
  • Ray's Avatar
  • Offline
  • New Member
  • New Member
  • HEQ5 , FS102 , ASI1600 MONO ASI183MC , 200 F5 NEWT
  • Posts: 7
  • Thank you received: 0

Replied by Ray on topic AstroPi3 Scripts revised

Also installed the Edimax EW-7811UTC. Surprisingly it works also with VNC viewer. Not all of the suggested builds on the Edimax site for driver installation seemed to succeed but the dongle work in any case and perhaps would have worked without.
3 years 4 months ago #63466

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

  • Posts: 1309
  • Thank you received: 226

Replied by Andrew on topic AstroPi3 Scripts revised

I believe I managed to successfully compile oaCapture on ARM64 for the Raspberry Pi4 running Raspbian OS. Whether you add this to the main script or in a side script is your decision, but I will say, it does take some time to compile, so it should only be offered as an option whether to build (or rebuild) it or not.
oacapture compilation
 
Extract source files to project directory
Source found on [url=https://github.com/openastroproject/openastro/releases/tag/v1.7.0]here[/url]
https://github.com/openastroproject/openastro/archive/v1.7.0.tar.gz
 
Additional libraries and tools I had to find and install:
 
sudo apt-get install libhidapi-dev libudev-dev libusb-1.0-0-dev libfox-1.6-dev autotools-dev autoconf automake libtool qttools5-dev-tools
 
Navigate in terminal to the extracted source directory and run:
 
autoreconf --force --install #Fixes missing M4 directory with contents and am_api_version#
./configure
make -j $(expr $(nproc) + 2)
sudo make install
3 years 4 months ago #63522

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

  • Posts: 1309
  • Thank you received: 226

Replied by Andrew on topic AstroPi3 Scripts revised

I was looking to update using the Raspberry Pi script, as I have done numerous times before. But it is currently failing to compile KStars due to missing stellarsolver targets.
-- Configuring done
CMake Error at kstars/CMakeLists.txt:1235 (add_executable):
  Target "kstars" links to target "StellarSolver::stellarsolver" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
 
 
CMake Error at kstars/CMakeLists.txt:1055 (add_library):
  Target "KStarsLib" links to target "StellarSolver::stellarsolver" but the
  target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
 
 
CMake Error at Tests/auxiliary/CMakeLists.txt:49 (ADD_EXECUTABLE):
  Target "testksuserdb" links to target "StellarSolver::stellarsolver" but
  the target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
 
 
CMake Error at Tests/auxiliary/CMakeLists.txt:45 (ADD_EXECUTABLE):
  Target "testgeolocation" links to target "StellarSolver::stellarsolver" but
  the target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
 
 
CMake Error at Tests/auxiliary/CMakeLists.txt:21 (ADD_EXECUTABLE):
  Target "testfwparser" links to target "StellarSolver::stellarsolver" but
  the target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
 
 
CMake Error at Tests/auxiliary/CMakeLists.txt:37 (ADD_EXECUTABLE):
  Target "testbinhelper" links to target "StellarSolver::stellarsolver" but
  the target was not found.  Perhaps a find_package() call is missing for an
  IMPORTED target, or an ALIAS target is missing?
[[ 31%] Building CXX object kstars/CMakeFiles/KStarsLib.dir/ekos/manager.cpp.o
In file included from /home/pi/AstroRoot/kstars/kstars/ekos/manager.h:21,
                 from /home/pi/AstroRoot/kstars/kstars/ekos/manager.cpp:10:
/home/pi/AstroRoot/kstars/kstars/ekos/align/align.h:33:10: fatal error: stellarsolver.h: No such file or directory
 #include <stellarsolver.h>
          ^~~~~~~~~~~~~~~~~
compilation terminated.
Last edit: 3 years 3 months ago by Andrew.
3 years 3 months ago #64780

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

  • Posts: 2876
  • Thank you received: 809
Which one of the scripts?
3 years 3 months ago #64782

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

  • Posts: 1309
  • Thank you received: 226

Replied by Andrew on topic AstroPi3 Scripts revised

The Raspberry Pi Script.
But, I have since attempted to compile KStars without the script as well and am getting the same issue. Also, given that the AstroPi script hasn't changed lately, I believe this is pointing to an issue in the KStars source code.
3 years 3 months ago #64783

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

Time to create page: 0.412 seconds