Mattia created a new topic ' can't compile baseclient.cpp' in the forum. 3 years ago

Hi!

today I wanted to compile the baseclient github.com/indilib/indi/blob/master/libs...ibase/baseclient.cpp to make a .so to embed in another code. It seems I can't get it to compile as I get these errors:

In file included from /home/matt/data/indi/indi/libs/indibase/baseclient.h:23,
                 from /home/matt/data/indi/indi/libs/indibase/baseclient.cpp:21:
/home/matt/data/indi/indi/libs/indibase/indibase.h:80:13: note: previous definition of ‘class INDI::BaseMediator’
   80 | class INDI::BaseMediator
      |             ^~~~~~~~~~~~
In file included from /home/matt/data/indi/indi/libs/indibase/indiutility.h:29,
                 from /home/matt/data/indi/indi/libs/indibase/basedevice.h:23,
                 from /home/matt/data/indi/indi/libs/indibase/baseclient.cpp:25:
/home/matt/data/indi/indi/libs/indibase/indimacros.h:104:18: error: redefinition of ‘template<class T> T* getPtrHelper(T*)’
  104 | static inline T *getPtrHelper(T *ptr) { return ptr; }
      |                  ^~~~~~~~~~~~

I am not sure if this is the correct way, but looking at pyindi it seems to me it does something very similar to create the package. I also looked through my entire filesystem and I couldn't find any trace of such a shared object (but there is a libindiclient.a) how can I achieve my goal?

Read More...