Hi Bill, On Fri, Oct 20, 2017 at 11:11:10PM +0100, Bill Somerville wrote: > On 20/10/2017 21:19, Ervin Hegedüs wrote: > >$ cmake -D CMAKE_INSTALL_PREFIX=$HOME/wsjt -D > >hamlib_LIBRARY_DIRS=$HOME/hamlib-prefix > >Qt5Widgets_DIR=/usr/lib/x86_64-linux-gnu/cmake/Qt5Widgets > >Qt5Multimedia_DIRQt5Multimedia_DIR=/usr/lib/x86_64-linux-gnu/cmake/Qt5Multimedia > >. > > this is not the preferred way to configure the WSJT-X CMake build. The Qt > libraries will be found automatically as they are installed in the "usual" > place. The only library you need to help CMake to find is the Hamlib fork > you have built, to do that you only need to provide the path to your local > Hamlib install via the CMAKE_PREFIX_PATH variable. Something like: > > $ cmake -D CMAKE_PREFIX_PATH=~/hamlib-prefix .
the hamlib distro package version is 3.1, yours is 3.2 (currently). When I passed the same argument as above, I got: -- Checking for module 'hamlib' -- Found hamlib, version 3.2~git -- Found hamlib -- Found hamlib: /usr/include;/usr/include/libusb-1.0;/home/airween/hamlib-prefix/include;/usr/include/libusb-1.0 (Required is at least version "3") -- hamlib_INCLUDE_DIRS: /usr/include;/usr/include/libusb-1.0;/home/airween/hamlib-prefix/include;/usr/include/libusb-1.0 -- hamlib_LIBRARIES: -L/usr/lib;-lhamlib;-lm;-lusb-1.0;-ludev;-pthread;-L/home/airween/hamlib-prefix/lib;-lhamlib;-lm;-lusb-1.0;-ludev;-pthread -- hamlib_LIBRARY_DIRS: /home/airween/hamlib-prefix/lib But when I pass the system installed Hamlib path: -- Checking for module 'hamlib' -- Found hamlib, version 3.1 -- Found hamlib CMake Error at /usr/share/cmake-3.9/Modules/FindPackageHandleStandardArgs.cmake:137 (message): Could NOT find hamlib (missing: hamlib_LIBRARY_DIRS) (Required is at least version "3") Call Stack (most recent call first): /usr/share/cmake-3.9/Modules/FindPackageHandleStandardArgs.cmake:377 (_FPHSA_FAILURE_MESSAGE) CMake/Modules/Findhamlib.cmake:81 (find_package_handle_standard_args) CMakeLists.txt:735 (find_package) -- Configuring incomplete, errors occurred! But when I pass the hamlib_* environment variables (from the first output), eg: -D hamlib_INCLUDE_DIRS="/usr/include/...libusb-2.0", then all code has built as well, including rigctl binaries. What should I do for leave these variables, and cmake recognize all necessary lib and headers? 73, Ervin HA2OS ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ wsjt-devel mailing list wsjt-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wsjt-devel