Re: wxmaxima-26.06.2: cmake reports an error

Jerome BENOIT via Maxima-discuss <[email protected]> Fri, 19 Jun 2026 10:32:34 +0200
Newsgroups gmane.comp.mathematics.maxima.general
Organization Round Sphere
Message-ID <[email protected]>
Hi,

on an up-to-date Debian/Sid environment, version 26.06.2 of wxmaxima builds well.

On which environment are you building ?

On 18/06/2026 08:26, Andrey G. Grozin via Maxima-discuss wrote:
> I'm trying to compile wxmaxima-26.06.2, but I get
> 
> CMake Error at data/CMakeLists.txt:47 (add_custom_command):
>    add_custom_command called with wrong number of arguments.
> 
> The corresponding part of data/CMakeLists.txt is
> 
>      # Compress man pages
>      add_custom_command(
>          OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/wxmaxima.1.gz"
>          COMMAND gzip -cn9 "${CMAKE_CURRENT_BINARY_DIR}/wxmaxima.1" > "${CMAKE_CURRENT_BINARY_DIR}/wxmaxima.1.gz"
>          DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/wxmaxima.1"
>          COMMENT "Compressing man page"
>      )
>      add_custom_target(generate_man ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/wxmaxima.1.gz")
> 
> I use cmake-4.3.3. I cannot understand what's wrong with this add_custom_command. Any help?

Do you have any gzip installed ?

Otherwise, the newly ``compress man pages'' code is not ``traditional'': you may want to comment/discard it.
For the (official) Debian package, I discarded this part of the code since it mess up with the Debian packaging machinery
which expects ``traditional'' installation.

I have submitted an issue about this:
https://github.com/wxMaxima-developers/wxmaxima/issues/2102

Cheers,
Jerome


> 
> Andrey
> 
> 
> _______________________________________________
> Maxima-discuss mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/maxima-discuss



_______________________________________________
Maxima-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/maxima-discuss