Il 14/11/18 12:15, Bill Somerville ha scritto:
> 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
> wsjt-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wsjt-devel
Hi Bill,

Sorry: in the meanwhile you were sending these directions, I was
experimenting with the hints I received by the opensuse developer which
is an Ham as well (DK3JF).
Now I've finally been able to built WSJT-X from source.
Additionally I had to update my libusb too, which was at version 1.0.

I used this sequence:

**************GOOD PROCEDURE***************************
 cd jtsource/wsjtx-2.0.0-rc4/
 /usr/bin/cmake -Dhamlib_INCLUDE_DIRS=/usr/include \
 -Dhamlib_LIBRARIES=/usr/lib64/libhamlib.so \
 -Dhamlib_LIBRARY_DIRS=/usr/lib64 \
 -DWSJT_GENERATE_DOCS=OFF \
 -DWSJT_SKIP_MANPAGES=ON \
 -D CMAKE_INSTALL_PREFIX=/home/marco/WSJT-X_build/.wsjtx .

  /usr/bin/cmake --build . --target install
********************************************************

Install the project...
-- Install configuration: "RELEASE"
-- Installing: /home/marco/WSJT-X_build/.wsjtx/bin/wsjtx
-- Installing: /home/marco/WSJT-X_build/.wsjtx/bin/udp_daemon
-- Installing: /home/marco/WSJT-X_build/.wsjtx/bin/message_aggregator
-- Installing: /home/marco/WSJT-X_build/.wsjtx/bin/jt9
-- Installing: /home/marco/WSJT-X_build/.wsjtx/bin/wsprd
-- Installing: /home/marco/WSJT-X_build/.wsjtx/bin/fmtave
-- Installing: /home/marco/WSJT-X_build/.wsjtx/bin/fcal
-- Installing: /home/marco/WSJT-X_build/.wsjtx/bin/fmeasure
-- Installing: /home/marco/WSJT-X_build/.wsjtx/bin/ft8code
-- Installing: /home/marco/WSJT-X_build/.wsjtx/bin/jt65code
-- Installing: /home/marco/WSJT-X_build/.wsjtx/bin/qra64code
-- Installing: /home/marco/WSJT-X_build/.wsjtx/bin/qra64sim
-- Installing: /home/marco/WSJT-X_build/.wsjtx/bin/jt9code
-- Installing: /home/marco/WSJT-X_build/.wsjtx/bin/jt4code
-- Installing: /home/marco/WSJT-X_build/.wsjtx/bin/msk144code
-- Installing: /home/marco/WSJT-X_build/.wsjtx/bin/rigctl-wsjtx
-- Installing: /home/marco/WSJT-X_build/.wsjtx/bin/rigctld-wsjtx
-- Installing: /home/marco/WSJT-X_build/.wsjtx/share/doc/WSJT-X/README
-- Installing: /home/marco/WSJT-X_build/.wsjtx/share/doc/WSJT-X/COPYING
-- Installing: /home/marco/WSJT-X_build/.wsjtx/share/doc/WSJT-X/AUTHORS
-- Installing: /home/marco/WSJT-X_build/.wsjtx/share/doc/WSJT-X/THANKS
-- Installing: /home/marco/WSJT-X_build/.wsjtx/share/doc/WSJT-X/NEWS
-- Installing: /home/marco/WSJT-X_build/.wsjtx/share/doc/WSJT-X/INSTALL
-- Installing: /home/marco/WSJT-X_build/.wsjtx/share/doc/WSJT-X/BUGS
-- Installing: /home/marco/WSJT-X_build/.wsjtx/share/wsjtx/JPLEPH
-- Installing:
/home/marco/WSJT-X_build/.wsjtx/share/applications/wsjtx.desktop
-- Installing:
/home/marco/WSJT-X_build/.wsjtx/share/applications/message_aggregator.desktop
-- Installing: /home/marco/WSJT-X_build/.wsjtx/share/pixmaps/wsjtx_icon.png
-- Installing:
/home/marco/WSJT-X_build/.wsjtx/share/doc/WSJT-X/changelog.Debian.gz
-- Installing: /home/marco/WSJT-X_build/.wsjtx/share/doc/WSJT-X/copyright
[100%] Built target wsjtx-install
Scanning dependencies of target install
[100%] Built target install


Next task I would try to built a RPM package ;-)

Thanks and all the best!
-- 
73 de Marco, PY1ZRJ
_______________________________________________
wsjt-devel mailing list
wsjt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wsjt-devel

Reply via email to