How to use/install an old version of boost package

Hello! I try to compile this application:
Morris

The compiler complains about a missing file boost/signals.hpp:

[roland@portable morris-0.2]$ make
make all-recursive
make[1]: on entre dans le répertoire «/home/roland/Documents/sources/morris-0.2*»
Making all in src
make[2]: on entre dans le répertoire «/home/roland/Documents/sources/morris-0.2/src*»
g++ -DHAVE_CONFIG_H -I. -I… -DLOCALEDIR="/usr/local/share/locale" -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/atk-1.0 -pthread -I/usr/include/gconf/2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -pthread -I/usr/include/libmount -I/usr/include/blkid -I/usr/include -I/usr/include/gconf/2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -pthread -I/usr/include/libmount -I/usr/include/blkid -g -O2 -MT morris.o -MD -MP -MF .deps/morris.Tpo -c -o morris.o morris.cc
Dans le fichier inclus depuis boardgui.hh:24,
depuis appgui.hh:23,
depuis gtk_appgui_interface.hh:23,
depuis gtk_appgui.hh:22,
depuis morris.cc:20:
control.hh:24:10: erreur fatale: boost/signals.hpp*: Aucun fichier ou dossier de ce type
24 | #include <boost/signals.hpp>
| ^~~~~~~~~~~~~~~~~~~
compilation terminée.
make[2]: *** [Makefile:370 : morris.o] Erreur 1
make[2]: on quitte le répertoire «/home/roland/Documents/sources/morris-0.2/src*»
make[1]: *** [Makefile:387 : all-recursive] Erreur 1
make[1]: on quitte le répertoire «/home/roland/Documents/sources/morris-0.2*»
make: *** [Makefile:285 : all] Erreur 2
[roland@portable morris-0.2]$

It seems that I should install or use an old version of boost (1.67 or 1.68), but I don’t know how to do that.

Could you tell me what to do?

Maybe if you can find an old package or source for what you want.
But that morris software hasnt been updated since 2009…

Thank you for your answer.
I found this:
https://www.boost.org/users/history/version_1_67_0.html
But I don’t know what to do with it.

Or do you think it would be a better idea to try to update the source code itself, and to replace signals.hpp with signals2.hpp?

Thats one way. Its possible it works.
An even easier way is probably to create a symlink from where signals.hpp should be.

…though I am currently checking if boost171 will work, as thats in the AUR.

EDIT - no it doesnt … but 1.69 is in the AUR too… checking for you :wink:

1 Like

OK … none of that seemed workable. Looks like you might need to build 1.67 from source if it provides the lib.
(1.69 did not … and symlink didnt work)

1 Like

I’ll take a look but I don’t make promise

2 Likes

I’ve got it, I have used the Debian patches

Complete list of command to get it

 sudo pacman -Syyu git base-devel --needed
 git clone https://github.com/FabioLolix/PKGBUILD-AUR_fix
 cd PKGBUILD-AUR_fix/m/morris
 makepkg -scCi

I have emaild the AUR maintainer with the fixes

2 Likes

It works perfectly. Morris is now installed. Thank you!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.