PureBasic Forum
https://www.purebasic.fr/english/

Mint 18.3 and PB 5.72 +
https://www.purebasic.fr/english/viewtopic.php?f=23&t=76297
Page 1 of 1

Author:  jogo [ Wed Nov 18, 2020 6:55 pm ]
Post subject:  Mint 18.3 and PB 5.72 +

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

Author:  jogo [ Tue Dec 08, 2020 1:31 am ]
Post subject:  Re: Mint 18.3 and PB 5.72 +

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

Author:  useful [ Tue Jan 12, 2021 8:01 pm ]
Post subject:  Re: Mint 18.3 and PB 5.72 +

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?

Author:  jogo [ Fri Feb 12, 2021 6:38 pm ]
Post subject:  Re: Mint 18.3 and PB 5.72 +

hi,
download zlib:
http://archive.ubuntu.com/ubuntu/pool/m ... _amd64.deb

create a script 'purebasic':
Code:
    #!/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 :-)

Page 1 of 1 All times are UTC + 1 hour
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/