Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
Search
Problem compiling on Linux
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 |
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. |
Thanks I tried using just the basic compile commands in the readme.? I will do some more experimenting.? I'm running Gentoo linux and have qt 6.7.2 installed. N1ESE
Sent with secure email.
On Friday, June 28th, 2024 at 9:36 AM, ok1mlg <ok1mlg@...> wrote:
|
N1ESE
Success! I just had to set the qmake parameters for the hamlib version.? Thanks for the tips. N1ESE
Sent with secure email.
On Friday, June 28th, 2024 at 10:28 AM, N1ESE via groups.io <n1ese@...> wrote:
|
to navigate to use esc to dismiss