¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

Re: Problem compiling on Linux


 

Unfortunately,? you didn't send any information about how you compile it. It requires some experience. There are only basic steps for compiling it in the Readme. It is assumed that you are compiling it on a common distro. From your description, I guess that you have Hamlib 4.6, which you have compiled somewhere from the repository, so pkg-config does not set your Hamlib version correctly. In this case, it will have to use the compilation parameters HAMLIBVERSION_xxxx to define the Hamlib version and?HAMLIBINCLUDEPATH, HAMLIBLIBPATH (see README for more detail about qmake parameters).

if it is not absolutely necessary to use source codes, I recommend using one of the prepared installation packages. To be honest, I also recommend using QT 6.6 and higher. Unfortunately,? it is missing in many distributions

BTW. Hamlib 4.6 is still the developer version.

Regards
Ladislav


p¨¢ 28. 6. 2024 v?16:06 odes¨ªlatel n1ese via <n1ese=[email protected]> napsal:

Having an issue compiling on Linux (QT6).? Hamlib and QLog sources clone from git this morning.

/usr/include/qt6/QtCore/qttypetraits.h:33:45: note: declared here
? ?33 | constexpr typename std::add_const<T>::type &qAsConst(T &t) noexcept { return t; }
? ? ? | ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^~~~~~~~
rig/drivers/HamlibRigDrv.cpp: In static member function ¡®static QList<std::pair<int, QString> > HamlibRigDrv::getModelList()¡¯:
rig/drivers/HamlibRigDrv.cpp:31:21: error: invalid conversion from ¡®int (*)(const rig_caps*, void*)¡¯ to ¡®int (*)(rig_caps*, void*)¡¯ [-fpermissive]
? ?31 | ? ? rig_list_foreach(addRig, &ret);
? ? ? | ? ? ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
? ? ? | ? ? ? ? ? ? ? ? ? ? |
? ? ? | ? ? ? ? ? ? ? ? ? ? int (*)(const rig_caps*, void*)
In file included from rig/drivers/HamlibRigDrv.h:6:
/usr/local/include/hamlib/rig.h:3781:18: note: ? initializing argument 1 of ¡®int rig_list_foreach(int (*)(rig_caps*, void*), void*)¡¯
?3781 | rig_list_foreach HAMLIB_PARAMS((int (*cfunc)(struct rig_caps *, rig_ptr_t),
? ? ? | ? ? ? ? ? ? ? ? ?^~~~~~~~~~~~~
make: *** [Makefile:4621: HamlibRigDrv.o] Error 1

Thoughts?

Thanks
John N1ESE

Join [email protected] to automatically receive all group messages.