Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.1.7 - Can't find libgd on Ubuntu 18.04 #68

Open
sturia opened this issue Oct 7, 2021 · 2 comments
Open

3.1.7 - Can't find libgd on Ubuntu 18.04 #68

sturia opened this issue Oct 7, 2021 · 2 comments
Assignees
Labels

Comments

@sturia
Copy link

sturia commented Oct 7, 2021

with 3.1.7 I can't compile support for graphical stats with libgd, as it's not found at compile time, although libgd are installed.

Ubuntu 18.04

libgd-dev/bionic-updates,bionic-security,now 2.2.5-4ubuntu0.5 amd64 [installed]
libgd-gd2-noxpm-ocaml/bionic,now 1.0~alpha5-8build4 all [installed]
libgd-ocaml/bionic,now 1.0~alpha5-8build4 amd64 [installed,automatic]
libgd2-xpm-dev/now 2.1.0-3ubuntu0.11 all [installed,local]
libgd3/bionic-updates,bionic-security,now 2.2.5-4ubuntu0.5 amd64 [installed,automatic]

any chance to fix it?

@ygrek
Copy link
Owner

ygrek commented Jan 7, 2022

afaics the reason is that mldonkey uses gdlib-config to discover libgd, but it is no longer provided by packages. Should use pkg-config

@ygrek ygrek added the bug label Jan 7, 2022
@ygrek ygrek self-assigned this Jan 7, 2022
@lulol
Copy link

lulol commented Jul 3, 2022

For a clean ununtu bionic install (using the bare minimum official docker container) these packages seems that are sufficient to build all (except mlgui.static because it looks for the libraries in /usr/local/lib).
Iibgd is enabled because configure.in also looks for the installed gd.h headers and tests that work.

$ docker run -it --name=builder --entrypoint /bin/bash ubuntu:bionic
# apt update && apt-get install git make autoconf
# apt-get install -y --no-install-recommends g++ camlp4 ocaml-nox libminiupnpc-dev libnatpmp-dev libbz2-dev librsvg2-dev libmagic-dev libgtk2.0-dev liblablgtk2-ocaml-dev liblablgtk2-gl-ocaml-dev liblablgtk2-gnome-ocaml-dev libgd-dev
# cd home
# git clone https://github.com/ygrek/mldonkey.git
# cd mldonkey

# ./configure --enable-batch --enable-upnp-natpmp --disable-gnutella --disable-gnutella2 --enable-gui=newgui2

Configuring MLDonkey 3.1.7.git - SCM: release-3-1-7-2-9-g6de7bffa completed.

Network modules:
 - eDonkey           enabled (eMule SUI enabled)
 - BitTorrent        enabled
 - FileTP (aka wget) enabled
 - Fasttrack         enabled
 - Gnutella                  disabled - unmaintained
 - Gnutella2                 disabled - unmaintained
 - Direct Connect    enabled
 - Open Napster              disabled - currently not usable
 - Soulseek                  disabled - currently not usable
 - OpenFT                    disabled - currently not usable

Core features:
 - zlib (required)   enabled
 - threads           enabled
 - bzip2             enabled
 - iconv             enabled
 - libmagic          enabled
 - upnp & natpmp     enabled
 - graphical stats   enabled
   - png support     enabled
   - jpg support     enabled


 - GUI support       GTK2 GUI

Compilers:
 - OCaml version     4.05.0 
 - gcc version       7
 - g++ version       7

\nNow execute 'make' to start compiling. Good luck!

To compile a static code execute:     make mlnet.static
To produce a release tarball execute: make release.mlnet.static
To clean the build directory execute: make maintainerclean

Compiling CryptoPP.cc can take several minutes, on slow machines up to half an hour.

@lulol lulol mentioned this issue Jul 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants