Page 1 of 1

Mint 18.3 and PB 5.72 +

Posted: Wed Nov 18, 2020 6:55 pm
by jogo
Hi,

I work with Mint 18.3 (ubuntu 16.04)
from PB 5.72 (incl. 5.73b4) on I get this message when I want to start the IDE in the terminal:

jogo@jogo-ThinkPad-T61 ~/purebasic/compilers $ ./purebasic
./purebasic: /lib/x86_64-linux-gnu/libz.so.1: version `ZLIB_1.2.9' not found (required by ./purebasic)


I replaced the old 'libz.so.1.2.8' with the current 'libz.so.1.2.11'.
The IDE worked then.

Now I get this message when using the function 'UsePNGImageEncoder()':

/home/jogo/purebasic/purelibraries/linux/libraries/libpbpng.a(pngrutil.o): In Funktion `png_inflate_claim':
pngrutil.c:(.text+0x343): Nicht definierter Verweis auf `inflateValidate'
collect2: error: ld returned 1 exit status


With Mint 19.3 (ubuntu 18.04) the IDE and also 'UsePNGImageEncoder()' works.

Greeting Jörg

Re: Mint 18.3 and PB 5.72 +

Posted: Tue Dec 08, 2020 1:31 am
by jogo
in the directory ~/purebasic/purelibraries/linux/libraries/ I renamed the file zlib.a to libz.a
After that "UsePNGImageEncoder()" worked.
But why is the name of the lib the wrong way round?

Greeting Jörg

Re: Mint 18.3 and PB 5.72 +

Posted: Tue Jan 12, 2021 8:01 pm
by useful
jogo wrote: I replaced the old 'libz.so.1.2.8' with the current 'libz.so.1.2.11'.
Please. Can we have a little more detail? How to update zlib correctly?

Re: Mint 18.3 and PB 5.72 +

Posted: Fri Feb 12, 2021 6:38 pm
by jogo
hi,
download zlib:
http://archive.ubuntu.com/ubuntu/pool/m ... _amd64.deb

create a script 'purebasic':

Code: Select all

    #!/bin/sh
    LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/USER-NAME/zlib/lib/x86_64-linux-gnu ~/purebasic/compilers/purebasic_new
1. copy the directory 'zlib' to /home/USER-NAME/
2. /home/USER-NAME/purebasic/compilers/purebasic -> rename to 'purebasic_new'.
3. copy the script 'purebasic' to /home/USER-NAME/purebasic/compilers/
4. change the USER-NAME there.

After that you can start your IDE as usual.

This solution does not change the global 'libz.so.1.2.8' in the system, but the PureBasic IDE uses the new 'libz.so.1.2.11' in the /home/USER-NAME/zlib/ directory at runtime.

It worked for me.
Mint 18.3 // PureBasic 5.73

Good luck :-)