The officially official Devuan Forum!

You are not logged in.

#1 2025-04-16 20:58:22

igorzwx
Member
Registered: 2024-05-06
Posts: 128  

How to build wxMaxima_24.02.1 from Debian sources

There is a belief that knowledge liberates from ignorance. Perhaps, wxMaxima may help semi-deaf Linux users to understand something about resampling and the Gibbs phenomenon. Although, of course, mathematics might be a problem, because pulseaudio is likely to damage the brain in a severe and irreversible manner. Hearing loss and dementia are doomed to follow.

Hearing Loss and Dementia | The Audiology Center
_http://www.myaudiologycenter.com/untreated-hearing-loss-risks-and-dementia/

_http://en.wikipedia.org/wiki/Maxima_(software)
Maxima is a powerful software package for performing computer algebra calculations in mathematics and the physical sciences.

_http://en.wikipedia.org/wiki/Maxima_(software)#Interfaces
wxMaxima is high-quality graphical front-end using the wxWidgets framework. wxMaxima provides a cell structure similar to the Mathematica notebook.

[Wikibooks] Maxima
_http://en.wikibooks.org/wiki/Maxima

Maxima by Example
_http://home.csulb.edu/~woollett/mbe.html
_http://home.csulb.edu/~woollett/index.html

How to build wxmaxima_24.02.1 on Devuan 5
$ inxi -b | grep Host -A1
  Host: devuan Kernel: 6.1.0-33-amd64 arch: x86_64 bits: 64 Desktop: MATE
    v: 1.26.0 Distro: Devuan GNU/Linux 5 (daedalus) 

Source Package: wxmaxima (24.02.1-1)
_http://packages.debian.org/source/testing/wxmaxima

Download wxMaxima:

wxmaxima_24.02.1-1.dsc 	
wxmaxima_24.02.1.orig.tar.gz 	
wxmaxima_24.02.1.orig.tar.gz.asc 	
wxmaxima_24.02.1-1.debian.tar.xz
Source: wxmaxima
Build-Depends: debhelper-compat (= 13), cmake (>= 3.4) | cmake3, libwxgtk3.2-dev, xvfb, netcat-openbsd, xauth, desktop-file-utils, appstream-util, libwxgtk-webview3.2-dev 

To build wxmaxima (24.02.1-1), we need cmake (>= 3.4).

$ cmake --version
cmake version 3.25.1

CMake v4.0.1

http://github.com/Kitware/CMake/releases/tag/v4.0.1

Download portable CMake v4.0.1:

http://github.com/Kitware/CMake/releases/download/v4.0.1/cmake-4.0.1-linux-x86_64.tar.gz
$ ls
cmake-4.0.1-linux-x86_64.tar.gz
mkdir -v $HOME/.CTools

tar -zxvf cmake*.tar.gz -C $HOME/.CTools
$ ls $HOME/.CTools
cmake-4.0.1-linux-x86_64
mv $HOME/.CTools/cmake-4.0.1-linux-x86_64 $HOME/.CTools/cmake-4.0.1
$ ls $HOME/.CTools/
cmake-4.0.1

$ ls -1 $HOME/.CTools/cmake-4.0.1
bin
doc
man
share

You can open a file manager in the cmake folder and investigate the content

caja $HOME/.CTools/cmake-4.0.1 
How to use portable CMake v4.0.1
export PATH="$HOME/.CTools/cmake-4.0.1/bin:$PATH"
$ cmake --version
cmake version 4.0.1 

Install compilers, build dependencies, etc.:

sudo apt install build-essential debhelper libwxgtk3.2-dev xvfb netcat-openbsd xauth desktop-file-utils appstream-util libwxgtk-webview3.2-dev 

You may want to install devscripts and a sort of AI assistant:

sudo apt install devscripts command-not-found

sudo update-command-not-found

EXAMPLES:

$ mmk-build-deps
Command 'mmk-build-deps' not found, did you mean:
  command 'mk-build-deps' from deb devscripts
Try: sudo apt install <deb name>

$ gbp
Command 'gbp' not found, but can be installed with:
sudo apt install git-buildpackage 

Now we can build wxMaxima.

$ ls -1
wxmaxima_24.02.1-1.debian.tar.xz
wxmaxima_24.02.1-1.dsc
wxmaxima_24.02.1.orig.tar.gz
wxmaxima_24.02.1.orig.tar.gz.asc

Unpack the source:

dpkg-source -x *.dsc
$ ls -1
wxmaxima-24.02.1
wxmaxima_24.02.1-1.debian.tar.xz
wxmaxima_24.02.1-1.dsc
wxmaxima_24.02.1.orig.tar.gz
wxmaxima_24.02.1.orig.tar.gz.asc

Change to the source directory:

cd wxmaxima-24.02.1
$ cmake --version
cmake version 3.25.1
export PATH="$HOME/.CTools/cmake-4.0.1/bin:$PATH"
$ cmake --version
cmake version 4.0.1

We have all the dependencies needed to build wxMaxima.
But, formally, the "Build-Depends" are not satisfied.
Therefore, we have to use -d flag to override the default checking procedure.

Verify whether the terminal prompt is in the source directory:

$ pwd
/home/.../Builds/Build_wxmaxima_24.02.1-1/wxmaxima-24.02.1

Build wxMaxima (use -d flag to override):

$ dpkg-buildpackage -us -uc -b -d
...
dpkg-deb: building package 'wxmaxima-dbgsym' in '../wxmaxima-dbgsym_24.02.1-1_amd64.deb'.
dpkg-deb: building package 'wxmaxima' in '../wxmaxima_24.02.1-1_amd64.deb'.
 dpkg-genbuildinfo --build=binary -O../wxmaxima_24.02.1-1_amd64.buildinfo
 dpkg-genchanges --build=binary -O../wxmaxima_24.02.1-1_amd64.changes
dpkg-genchanges: info: binary-only upload (no source code included)
 dpkg-source --after-build .
dpkg-buildpackage: info: binary-only upload (no source included) 
$ cd ../

[$ ls -1 *.deb
wxmaxima_24.02.1-1_amd64.deb
wxmaxima-dbgsym_24.02.1-1_amd64.deb
$ dpkg-deb --info wxmaxima_24.02.1-1_amd64.deb | grep Package: -A11
 Package: wxmaxima
 Version: 24.02.1-1
 Architecture: amd64
 Maintainer: Gunter Königsmann <wxmaxima@physikbuch.de>
 Installed-Size: 14144
 Depends: libc6 (>= 2.34), libgcc-s1 (>= 3.0), libstdc++6 (>= 11), libwxbase3.2-1 (>= 3.2.2+dfsg), libwxgtk-webview3.2-1 (>= 3.2.2+dfsg), libwxgtk3.2-1 (>= 3.2.1+dfsg-2), maxima
 Recommends: maxima-doc
 Suggests: fonts-jsmath, texlive-latex-extra, ibus-gtk3
 Section: math
 Priority: optional
 Homepage: http://wxmaxima-developers.github.io/wxmaxima/
 Description: GUI for the computer algebra system Maxima 

Install wxMaxima

sudo dpkg -i wxmaxima_24.02.1-1_amd64.deb 
$ apt show wxmaxima | grep Package: -A2
Package: wxmaxima
Version: 24.02.1-1
Status: install ok installed

$ whereis wxmaxima
wxmaxima: /usr/bin/wxmaxima /usr/share/man/man1/wxmaxima.1.gz

$ wxmaxima --version
wxMaxima 24.02.1

You may want to install gnuplot

sudo apt install gnuplot

Last edited by igorzwx (2025-04-16 21:07:29)

Offline

Board footer