On 14/11/2018 13:32, Marco Calistri via wsjt-devel wrote:
This is an example of "cmake sequence" commands I used:

cmake -D CMAKE_CXX_COMPILER=/usr/bin/g++-8 \
  -D CMAKE_Fortran_COMPILER=/usr/bin/gfortran-8 \
  -D
CMAKE_hamlib_LIBRARY_DIRS=/home/marco/WSJT-X_build/jtsource/wsjtx-2.0.0-rc4/hamlib-prefix/lib64
\
  -D CMAKE_INSTALL_PREFIX=/home/marco/WSJT-X_build/.wsjtx .

Hi Marco,

firstly building in the source directory is not recommended, I strongly recommend that you should create a build directory somewhere then configure and build WSJT-X from that directory.

You should not need to specify the compilers used, CMake should find them itself. What do the commands:

g++ -V
gfortran -V

print?

In order for the WSJT-X to find the Hamlib installation it built you would add it's location to the CMake variable CMAKE_PREFIX_PATH, but it looks like you are using the sources tarball we provide which has a special CMake script that deals with all of this automatically as it builds both Hamlib and WSJT-X. You should not need to specify where Hamlib is as it is built as part of the process. Your configure and build commands should look like:

mkdir -p ~/WSJT-X_build/build
cd !$
cmake -D CMAKE_INSTALL_PREFIX=../.wsjtx ../jtsource/wsjtx-2.0.0-rc4
cmake --build . --target install

please post the first error, if any, from this command sequence.

73
Bill
G4WJS.


_______________________________________________
wsjt-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wsjt-devel

Reply via email to