It's odd, but since a cleanup of my development environment (see indilib.org/forum/ekos/12904-what-happened-to-kstars.html
) I'm getting the following error (even with a start form scratch of INDILib and KStars with "git clone")
In file included from /home/escriban/Projects/build/kstars/kstars/KStarsLib_autogen/mocs_compilation.cpp:137:
/home/escriban/Projects/build/kstars/kstars/KStarsLib_autogen/FRI4DANIHA/moc_clientmanager.cpp: In member function ‘void ClientManager::newINDIMessage(INDI::BaseDevice, int)’:
/home/escriban/Projects/build/kstars/kstars/KStarsLib_autogen/FRI4DANIHA/moc_clientmanager.cpp:372:78: error: ‘INDI::BaseDevice* INDI::BaseDevice::operator&()’ is protected within this context
372 | void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)), const_cast<void*>(reinterpret_cast<const void*>(&_t2))};
| ^~~
In file included from /home/escriban/Projects/kstars/kstars/indi/indistd.h:14,
from /home/escriban/Projects/kstars/kstars/indi/indiconcretedevice.h:11,
from /home/escriban/Projects/kstars/kstars/indi/indifilterwheel.h:9,
from /home/escriban/Projects/kstars/kstars/ekos/auxiliary/filtermanager.h:12,
from /home/escriban/Projects/build/kstars/kstars/KStarsLib_autogen/YBWGFWFLDP/../../../../../kstars/kstars/ekos/align/align.h:12,
from /home/escriban/Projects/build/kstars/kstars/KStarsLib_autogen/YBWGFWFLDP/moc_align.cpp:9,
from /home/escriban/Projects/build/kstars/kstars/KStarsLib_autogen/mocs_compilation.cpp:36:
/usr/include/libindi/basedevice.h:296:21: note: declared protected here
296 | BaseDevice *operator&()
If I set the operator overload as "public:" in 'basedevice.h', KStars compiles <strong>without any problem</strong>.
Seems I'm the only one with this problem as I did not find any references, so I'm looking forward to hints from the community
Antonio