|
From: Alex L. <al...@fo...> - 2025-09-18 01:13:58
|
<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">Have you considered just using an older version of Cmake? I must have three versions on my machine!<br id="lineBreakAtBeginningOfSignature"><div dir="ltr">best,<div>alex K6LOT<div><br class="webkit-block-placeholder"></div></div></div><div dir="ltr"><br><blockquote type="cite">On Sep 17, 2025, at 3:27 PM, Marco Calistri via wsjt-devel <wsj...@li...> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
Sorry to be filling the mailing list with my personal issue!<br>
<br>
I tried to use the definition
-DCMAKE_POLICY_VERSION_MINIMUM=3.5...3.11 \ <br>
but the error continues:<br>
<br>
<i>CMake Error at CMakeLists.txt:199 (add_custom_target):<br>
The target name "install" is reserved or not valid for certain
CMake<br>
features, such as generator expressions, and may result in
undefined<br>
behavior.</i><br>
<br>
Then I get stuck.<br>
Regards,<br>
<br>
PY1ZRJ<br>
<br>
<br>
<div class="moz-cite-prefix">Il 17/09/25 16:22, George Baltz ha
scritto:<br>
</div>
<blockquote type="cite" cite="mid:eca...@gm...">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<p>I'm using 4.1.1; I set the max to 3.11 to avoid the changes to
the 'install' target.</p>
<div class="moz-cite-prefix">On 9/17/25 3:18 PM, Marco Calistri
wrote:<br>
</div>
<blockquote type="cite" cite="mid:CH2...@CH...">
<div dir="auto" style="font-family: Aptos, Aptos_MSFontService, -apple-system, Roboto, Arial, Helvetica, sans-serif; font-size: 12pt;">
Based on cmake documentation, I found the following rule:</div>
<div dir="auto" style="font-family: Aptos, Aptos_MSFontService, -apple-system, Roboto, Arial, Helvetica, sans-serif; font-size: 12pt;">
<br>
</div>
<div dir="auto" style="font-family: Aptos, Aptos_MSFontService, -apple-system, Roboto, Arial, Helvetica, sans-serif; font-size: 12pt;">
Changed in version 4.0: Compatibility with versions of CMake
older than 3.5 is removed. Calls to
cmake_minimum_required(VERSION) or cmake_policy(VERSION) that
do not specify at least 3.5 as their policy version
(optionally via ...<max>) will produce an error in CMake
4.0 and above.</div>
<div dir="auto" style="font-family: Aptos, Aptos_MSFontService, -apple-system, Roboto, Arial, Helvetica, sans-serif; font-size: 12pt;">
<br>
</div>
<div dir="auto" style="font-family: Aptos, Aptos_MSFontService, -apple-system, Roboto, Arial, Helvetica, sans-serif; font-size: 12pt;">
Then, since my installed cmake version is the 4.1, how do I
set the variable?</div>
<div dir="auto" style="font-family: Aptos, Aptos_MSFontService, -apple-system, Roboto, Arial, Helvetica, sans-serif; font-size: 12pt;">
<br>
</div>
<div dir="auto" style="font-family: Aptos, Aptos_MSFontService, -apple-system, Roboto, Arial, Helvetica, sans-serif; font-size: 12pt;">
(VERSION 3.5...4.1) ???</div>
<div dir="auto" style="font-family: Aptos, Aptos_MSFontService, -apple-system, Roboto, Arial, Helvetica, sans-serif; font-size: 12pt;">
<br>
</div>
<div dir="auto" style="font-family: Aptos, Aptos_MSFontService, -apple-system, Roboto, Arial, Helvetica, sans-serif; font-size: 12pt;">
I'm a bit confused about that.</div>
<div dir="auto" style="font-family: Aptos, Aptos_MSFontService, -apple-system, Roboto, Arial, Helvetica, sans-serif; font-size: 12pt;">
<br>
</div>
<div dir="auto" style="font-family: Aptos, Aptos_MSFontService, -apple-system, Roboto, Arial, Helvetica, sans-serif; font-size: 12pt;">
Regards,</div>
<div dir="auto" style="font-family: Aptos, Aptos_MSFontService, -apple-system, Roboto, Arial, Helvetica, sans-serif; font-size: 12pt;">
<br>
</div>
<div dir="auto" style="font-family: Aptos, Aptos_MSFontService, -apple-system, Roboto, Arial, Helvetica, sans-serif; font-size: 12pt;">
Marco PY1ZRJ </div>
<div id="ms-outlook-mobile-body-separator-line" data-applydefaultfontstyles="true" dir="auto" style="font-family: Aptos, Aptos_MSFontService, -apple-system, Roboto, Arial, Helvetica, sans-serif; font-size: 12pt;">
<div dir="auto" style="font-family: Aptos, Aptos_MSFontService, -apple-system, Roboto, Arial, Helvetica, sans-serif; font-size: 12pt;">
<br>
</div>
</div>
<div dir="auto" style="font-family:Aptos, Aptos_MSFontService, -apple-system, Roboto, Arial, Helvetica, sans-serif;font-size:12pt" id="ms-outlook-mobile-signature"> <span style="font-family: Aptos, Aptos_MSFontService, -apple-system, Roboto, Arial, Helvetica, sans-serif; font-size: 12pt;">Inviato
da <a href="https://aka.ms/AAb9ysg" moz-do-not-send="true">Outlook
per Android</a></span></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Marco Calistri via wsjt-devel <a class="moz-txt-link-rfc2396E" href="mailto:wsj...@li..." moz-do-not-send="true"><wsj...@li...></a><br>
<b>Sent:</b> Wednesday, September 17, 2025 2:35:57 PM<br>
<b>To:</b> WSJT software development <a class="moz-txt-link-rfc2396E" href="mailto:wsj...@li..." moz-do-not-send="true"><wsj...@li...></a><br>
<b>Cc:</b> Marco Calistri <a class="moz-txt-link-rfc2396E" href="mailto:PY...@ou..." moz-do-not-send="true"><PY...@ou...></a>;
George Baltz <a class="moz-txt-link-rfc2396E" href="mailto:Geo...@gm..." moz-do-not-send="true"><Geo...@gm...></a><br>
<b>Subject:</b> Re: [wsjt-devel] Candidate Release WSJT-X
3.0.0-rc1</font>
<div> </div>
</div>
<div>
<div dir="auto" style="font-family:Aptos,Aptos_MSFontService,-apple-system,Roboto,Arial,Helvetica,sans-serif; font-size:12pt">
Will try that George,</div>
<div dir="auto" style="font-family:Aptos,Aptos_MSFontService,-apple-system,Roboto,Arial,Helvetica,sans-serif; font-size:12pt">
<br>
</div>
<div dir="auto" style="font-family:Aptos,Aptos_MSFontService,-apple-system,Roboto,Arial,Helvetica,sans-serif; font-size:12pt">
Thanks for the heads-up!</div>
<div dir="auto" style="font-family:Aptos,Aptos_MSFontService,-apple-system,Roboto,Arial,Helvetica,sans-serif; font-size:12pt">
<br>
</div>
<div dir="auto" style="font-family:Aptos,Aptos_MSFontService,-apple-system,Roboto,Arial,Helvetica,sans-serif; font-size:12pt">
73s PY1ZRJ </div>
<div id="x_ms-outlook-mobile-body-separator-line" data-applydefaultfontstyles="true" dir="auto" style="font-family:Aptos,Aptos_MSFontService,-apple-system,Roboto,Arial,Helvetica,sans-serif; font-size:12pt">
<div style="font-family:Aptos,Aptos_MSFontService,-apple-system,Roboto,Arial,Helvetica,sans-serif; font-size:12pt">
<br>
</div>
</div>
<div id="x_ms-outlook-mobile-signature" dir="auto" style="font-family:Aptos,Aptos_MSFontService,-apple-system,Roboto,Arial,Helvetica,sans-serif; font-size:12pt">
<span style="font-family:Aptos,Aptos_MSFontService,-apple-system,Roboto,Arial,Helvetica,sans-serif; font-size:12pt">Inviato
da </span><a href="https://aka.ms/AAb9ysg" style="font-family:Aptos,Aptos_MSFontService,-apple-system,Roboto,Arial,Helvetica,sans-serif; font-size:12pt" moz-do-not-send="true">Outlook per Android</a></div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> George Baltz via
wsjt-devel <a class="moz-txt-link-rfc2396E" href="mailto:wsj...@li..." moz-do-not-send="true"><wsj...@li...></a><br>
<b>Sent:</b> Wednesday, September 17, 2025 2:19:57 PM<br>
<b>To:</b> <a class="moz-txt-link-abbreviated moz-txt-link-freetext" href="mailto:wsj...@li..." moz-do-not-send="true">wsj...@li...</a>
<a class="moz-txt-link-rfc2396E" href="mailto:wsj...@li..." moz-do-not-send="true"><wsj...@li...></a><br>
<b>Cc:</b> George Baltz <a class="moz-txt-link-rfc2396E" href="mailto:Geo...@gm..." moz-do-not-send="true"><Geo...@gm...></a><br>
<b>Subject:</b> Re: [wsjt-devel] Candidate Release WSJT-X
3.0.0-rc1</font>
<div> </div>
</div>
<div class="x_BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="x_PlainText">Add the max version to the same
addition -<br>
-DCMAKE_POLICY_VERSION_MINIMUM=3.5...3.11<br>
<br>
On 9/16/25 20:58, Marco Calistri via wsjt-devel wrote:<br>
> Hello,<br>
> <br>
> I attempted to compile the new source WSJTX
3.0.0-rc1 code as always I <br>
> did so far, but now cmake is giving an error.<br>
> <br>
> This is the sequence of commands I alway launch
(in this specific case I <br>
> added the POLICY_VERSION=3.5):<br>
> <br>
> tar -xzvf
/home/marco/Scaricati/wsjtx-3.0.0-rc1.tgz -C
/home/marco/WSJT- <br>
> X_build/build/<br>
> cd
/home/marco/WSJT-X_build/build/wsjtx-3.0.0-rc1/<br>
> /usr/bin/cmake
-Dhamlib_INCLUDE_DIRS=/usr/local/include \<br>
>
-Dhamlib_LIBRARIES=/usr/local/lib64/libhamlib.so \<br>
> -Dhamlib_LIBRARY_DIRS=/usr/local/lib64 \<br>
> -DWSJT_GENERATE_DOCS=OFF \<br>
> -DWSJT_SKIP_MANPAGES=ON \<br>
> -DWSJT_QMAP=NO \<br>
> -Werror=deprecated-declarations \<br>
> -Wno-error \<br>
> -DCMAKE_POLICY_VERSION_MINIMUM=3.5<br>
>
-DCMAKE_INSTALL_PREFIX=/home/marco/WSJT-X_build/.wsjtx
.<br>
> <br>
> This is the answer of cmake:<br>
> <br>
> CMake Warning:<br>
> No source or binary directory provided. Both
will be assumed to be the<br>
> same as the current working directory, but
note that this warning will<br>
> become a fatal error in future CMake releases.<br>
> <br>
> <br>
> CMake Deprecation Warning at CMakeLists.txt:1
(cmake_minimum_required):<br>
> Compatibility with CMake < 3.10 will be
removed from a future version of<br>
> CMake.<br>
> <br>
> Update the VERSION argument <min>
value. Or, use the <min>...<max> <br>
> syntax<br>
> to tell CMake that the project requires at
least <min> but has been <br>
> updated<br>
> to work with policies introduced by
<max> or earlier.<br>
> <br>
> <br>
> -- The C compiler identification is GNU 15.2.0<br>
> -- The CXX compiler identification is GNU 15.2.0<br>
> -- Detecting C compiler ABI info<br>
> -- Detecting C compiler ABI info - done<br>
> -- Check for working C compiler: /usr/bin/cc -
skipped<br>
> -- Detecting C compile features<br>
> -- Detecting C compile features - done<br>
> -- Detecting CXX compiler ABI info<br>
> -- Detecting CXX compiler ABI info - done<br>
> -- Check for working CXX compiler: /usr/bin/c++ -
skipped<br>
> -- Detecting CXX compile features<br>
> -- Detecting CXX compile features - done<br>
> -- Found Git: /usr/bin/git (found version
"2.51.0")<br>
> CMake Warning (dev) at
/usr/share/cmake/Modules/ExternalProject/ <br>
> shared_internal_commands.cmake:1261 (message):<br>
> The DOWNLOAD_EXTRACT_TIMESTAMP option was not
given and policy CMP0135 is<br>
> not set. The policy's OLD behavior will be
used. When using a URL<br>
> download, the timestamps of extracted files
should preferably be that of<br>
> the time of extraction, otherwise code that
depends on the extracted<br>
> contents might not be rebuilt if the URL
changes. The OLD behavior<br>
> preserves the timestamps from the archive
instead, but this is <br>
> usually not<br>
> what you want. Update your project to the NEW
behavior or specify the<br>
> DOWNLOAD_EXTRACT_TIMESTAMP option with a value
of true to avoid this<br>
> robustness issue.<br>
> Call Stack (most recent call first):<br>
>
/usr/share/cmake/Modules/ExternalProject.cmake:3080 <br>
> (_ep_add_download_command)<br>
> CMakeLists.txt:112 (ExternalProject_Add)<br>
> This warning is for project developers. Use
-Wno-dev to suppress it.<br>
> <br>
> CMake Warning (dev) at
/usr/share/cmake/Modules/ExternalProject/ <br>
> shared_internal_commands.cmake:1261 (message):<br>
> The DOWNLOAD_EXTRACT_TIMESTAMP option was not
given and policy CMP0135 is<br>
> not set. The policy's OLD behavior will be
used. When using a URL<br>
> download, the timestamps of extracted files
should preferably be that of<br>
> the time of extraction, otherwise code that
depends on the extracted<br>
> contents might not be rebuilt if the URL
changes. The OLD behavior<br>
> preserves the timestamps from the archive
instead, but this is <br>
> usually not<br>
> what you want. Update your project to the NEW
behavior or specify the<br>
> DOWNLOAD_EXTRACT_TIMESTAMP option with a value
of true to avoid this<br>
> robustness issue.<br>
> Call Stack (most recent call first):<br>
>
/usr/share/cmake/Modules/ExternalProject.cmake:3080 <br>
> (_ep_add_download_command)<br>
> CMakeLists.txt:165 (ExternalProject_Add)<br>
> This warning is for project developers. Use
-Wno-dev to suppress it.<br>
> <br>
> CMake Error at CMakeLists.txt:199
(add_custom_target):<br>
> The target name "install" is reserved or not
valid for certain CMake<br>
> features, such as generator expressions, and
may result in undefined<br>
> behavior.<br>
> <br>
> <br>
> -- Configuring incomplete, errors occurred!<br>
> <a class="moz-txt-link-abbreviated moz-txt-link-freetext" href="mailto:marco@linux-turion64:~/WSJT-X_build/build/wsjtx-3.0.0-rc1" moz-do-not-send="true">marco@linux-turion64:~/WSJT-X_build/build/wsjtx-3.0.0-rc1</a>>
- <br>
>
DCMAKE_INSTALL_PREFIX=/home/marco/WSJT-X_build/.wsjtx
.<br>
> <br>
> <br>
> Could someone kindly clarify to me what I need to
change, in order the <br>
> code being compiled without error, please?<br>
> Note: <a class="moz-txt-link-abbreviated moz-txt-link-freetext" href="mailto:marco@linux-turion64:~/WSJT-X_build/build/wsjtx-3.0.0-rc1" moz-do-not-send="true">marco@linux-turion64:~/WSJT-X_build/build/wsjtx-3.0.0-rc1</a>>
cmake <br>
> --version<br>
> cmake version 4.1.1<br>
> <br>
> TNX!<br>
> <br>
> ---<br>
> *73 de Marco, PY1ZRJ (former IK5BCU)*<br>
> **<br>
> <br>
> <br>
> <br>
> Il 15/09/25 11:02, Joseph Taylor via wsjt-devel
ha scritto:<br>
<br>
<br>
<br>
_______________________________________________<br>
wsjt-devel mailing list<br>
<a class="moz-txt-link-abbreviated moz-txt-link-freetext" href="mailto:wsj...@li..." moz-do-not-send="true">wsj...@li...</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/wsjt-devel" moz-do-not-send="true" class="moz-txt-link-freetext">https://lists.sourceforge.net/lists/listinfo/wsjt-devel</a><br>
</div>
</span></font></div>
</div>
</blockquote>
</blockquote>
<br>
<br>
<div class="moz-signature" signature-switch-id="e31c2a88-22b6-40ba-8925-740a425c9714">---<br>
<b>73 de Marco, PY1ZRJ (former IK5BCU)<b><br>
<div><Uc7xIyLqOTEc0ZKZ.jpeg></div></b></b></div>
<div><OpenPGP_0x38215F3BB231677C.asc></div><span>_______________________________________________</span><br><span>wsjt-devel mailing list</span><br><span>wsj...@li...</span><br><span>https://lists.sourceforge.net/lists/listinfo/wsjt-devel</span><br></div></blockquote></body></html> |