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
>