×
INDI Library v1.8.5 Released (19 Apr 2020)

April 2020 release of INDI Library v1.8.5 introduces new drivers while providing fixes and improvements to existing devices and core framework.

Help with 3rdparty build/installs

3 months 1 week ago
wotalota
Expert Boarder
Expert Boarder
Posts: 140
More
Topic Author
Help with 3rdparty build/installs #50052
I need some help regarding the minimum requirements for a 3rdparty build. And help with a particular situation.

The reason for trying to find the minimum requirement is sometimes I seem to get libraries at cross purpose when I
mix local builds and normal indi updates. Perhaps when a certain level of release happens. For example using the only install/update I am aware of for Fedora I am running 1.8.1-2. But if I do a build it changes me to 1.8.4 (I think it is).
On Fedora updating the library directories /usr/lib64 do not always react well.

There have been a couple of recent threads regarding roof driver working with a Arduino controller.
I am attempting to assist Christophe with an updated version of the driver I was using along with a modification of his Arduino code. I do not want to get into issues regarding changing indi version from under him or mess up his system.

I am able to build and install the roof driver locally after previously having done an indi build following a
git clone github.com/indilib/indi.git

I tried to be able to build just the roof driver without any indi development files but did not succeed. Then tried just a git clone of indi but without a build and thought that had worked so tried to use that approach for Christophe but it fails on his system.

cmake is failing in indi/cmake_modules/FindINDI.cmake line 285 unable to find an include file or directory. I have not yet figured out which one.
There is probably something required that I am missing that will allow adding a driver to an existing install without having to do an indi build.

My next step is to do a clean ubuntu install to debug here instead of in French but if someone can advise where I am going wrong?
This is the script being run the worked on files are attached rolloffino.tar.gz
Thanks
Tom

<
while :
do
echo "Enter the directory where rolloffino source files are located: "
read SRCDIR
if [ ! -d $SRCDIR ]
then
echo "Directory not found"
exitloop
fi
echo "Enter an empty directory in which to build: "
read PROJDIR
if [ ! -d $PROJDIR ]
then
echo "Directory not found"
break
fi
DEFDIR=`pwd`
cd $PROJDIR # set location to build area
git clone github.com/indilib/indi.git # get indilib sources
mkdir -p $PROJDIR/indi/indi-3rdparty/indi-rolloffino # make a source dir under indi
cp -p $SRCDIR/* $PROJDIR/indi/indi-3rdparty/indi-rolloffino # copy rolloffino driver sources to source dir
mkdir -p $PROJDIR/build/indi-3rdparty/indi-rolloffino # make rolloffino output build directory
cd $PROJDIR/build/indi-3rdparty/indi-rolloffino # set default to build directory
cmake -DCMAKE_INSTALL_PREFIX=/usr $PROJDIR/indi/indi-3rdparty/indi-rolloffino # cmake, pointing to source files
sudo make install # compile/link into build dir & copy to /usr/bin
ls -l /usr/bin/indi_rolloffino
cd $DEFDIR
break
done
>

Mach1, TS86SDQ, ASI071, ASI174, OAG, focusPro
Attachments:

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

3 months 1 week ago
knro
Administrator
Administrator
Posts: 8000
Karma: 51
Help with 3rdparty build/installs #50053
Hey Tom,

Nice job with the rolloff driver. You were just missing cmake_modules directory. I just tested, I copied cmake_modules directory to rolloffino directory and then ran cmake and it worked fine the first time. No need to git clone indi or even 3rd-party repo, just the cmake_module directory is required and you're set.

Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info

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

3 months 1 week ago 3 months 1 week ago by wotalota.
wotalota
Expert Boarder
Expert Boarder
Posts: 140
More
Topic Author
Help with 3rdparty build/installs #50054
many thanks

Actually I think it is there, brought by the git clone, but I've asked Christophe to check

Mach1, TS86SDQ, ASI071, ASI174, OAG, focusPro

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

3 months 1 week ago
wotalota
Expert Boarder
Expert Boarder
Posts: 140
More
Topic Author
Help with 3rdparty build/installs #50056
It looks the same as what I'm working with. line 285 in the cmake_modules/FindINDI.cmake is what was complaining.
The error log is coming.

- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at /home/christophe/Bureau/arduino/projet/indi/cmake_modules/FindINDI.cmake:285 (message):
Could not find INDI include directory
Call Stack (most recent call first):
CMakeLists.txt:13 (find_package)

-- Configuring incomplete, errors occurred!
See also "/home/christophe/Bureau/arduino/projet/indi/indi-3rdparty/indi-rolloffino/CMakeFiles/CMakeOutput.log".



christophe@MiniPc:~/Bureau/arduino/projet/indi$ ls -l cmake_modules
total 116
-rw-rw-r-- 1 christophe christophe 5929 fév 24 19:43 CMakeCommon.cmake
-rw-rw-r-- 1 christophe christophe 930 fév 24 19:43 CMakeParseArguments.cmake
-rw-rw-r-- 1 christophe christophe 2278 fév 24 19:43 FindCFITSIO.cmake
-rw-rw-r-- 1 christophe christophe 1443 fév 24 19:43 FindDC1394.cmake
-rw-rw-r-- 1 christophe christophe 1403 fév 24 19:43 FindFFTW3.cmake
-rw-rw-r-- 1 christophe christophe 5011 fév 24 19:43 FindGMock.cmake
-rw-rw-r-- 1 christophe christophe 9377 fév 24 19:43 FindGSL.cmake
-rw-rw-r-- 1 christophe christophe 2505 fév 24 19:43 FindIconv.cmake
-rw-rw-r-- 1 christophe christophe 14700 fév 24 19:43 FindINDI.cmake
-rw-rw-r-- 1 christophe christophe 947 fév 24 19:43 FindJPEG.cmake
-rw-rw-r-- 1 christophe christophe 1574 fév 24 19:43 FindNova.cmake
-rw-rw-r-- 1 christophe christophe 1338 fév 24 19:43 FindOggTheora.cmake
-rw-rw-r-- 1 christophe christophe 3460 fév 24 19:43 FindOpenAL.cmake
-rw-rw-r-- 1 christophe christophe 15279 fév 24 19:43 FindPackageHandleStandardArgs.cmake
-rw-rw-r-- 1 christophe christophe 2029 fév 24 19:43 FindPackageMessage.cmake
-rw-rw-r-- 1 christophe christophe 2963 fév 24 19:43 FindUSB1.cmake
-rw-rw-r-- 1 christophe christophe 1060 fév 24 19:43 FindVorbis.cmake
-rw-rw-r-- 1 christophe christophe 7359 fév 24 19:43 UnityBuild.cmake

Mach1, TS86SDQ, ASI071, ASI174, OAG, focusPro

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

3 months 1 week ago 3 months 1 week ago by wotalota.
wotalota
Expert Boarder
Expert Boarder
Posts: 140
More
Topic Author
Help with 3rdparty build/installs #50058
I don't see anything useful in the attached. So need to locate what line 13 in the CMakeLists.txt is not satisfied.

find_package(INDI REQUIRED)

Edit:
cmake is a bit hard to follow but perhaps this is a clue.

in the project tree created by the script, I do not find a indiversion.h file which seems to be on of the things cmake is looking for. If I go up a couple of level
into where I did a indi build, it is in

[tg@tcup indi]$ cd ../../indi
[tg@tcup indi]$ find . -name indiversion.h
./cmake-build-debug/indiversion.h
./cmake-build-release/indiversion.h
[tg@tcup indi]$ pwd
/wrk/dev/indi
[tg@tcup indi]$ cd ../project/
[tg@tcup project]$ find . -name indiversion.h

So perhaps when I run, it or similar are being found somehow, but it would not be on Christophe's machine.
Is there some include file perhaps to pull those in outside of a full build?
I could manually copy them to test but would need a way to keep them current. want to ask permission before using teamviewer when he is not there.

Mach1, TS86SDQ, ASI071, ASI174, OAG, focusPro
Attachments:

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

3 months 1 week ago
knro
Administrator
Administrator
Posts: 8000
Karma: 51
Help with 3rdparty build/installs #50076
You need to have libindi-dev installed system wide of course. So not sure which package this is on Fedora, but try to install INDI Development package first and then it should work.

Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info

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

3 months 1 week ago
wotalota
Expert Boarder
Expert Boarder
Posts: 140
More
Topic Author
Help with 3rdparty build/installs #50203
Thank you Jasem, after a few false steps, it made it through. Just libnova-dev and libindi-dev additions needed really.

Mach1, TS86SDQ, ASI071, ASI174, OAG, focusPro

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

Time to create page: 0.281 seconds