It is currently Mon Apr 12, 2021 8:04 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Mint 18.3 and PB 5.72 +
PostPosted: Wed Nov 18, 2020 6:55 pm 
Offline
New User
New User

Joined: Wed Nov 18, 2020 6:10 pm
Posts: 3
Location: Mecklenburg Germany
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

_________________
Greeting Jörg


Top
 Profile  
Reply with quote  
 Post subject: Re: Mint 18.3 and PB 5.72 +
PostPosted: Tue Dec 08, 2020 1:31 am 
Offline
New User
New User

Joined: Wed Nov 18, 2020 6:10 pm
Posts: 3
Location: Mecklenburg Germany
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

_________________
Greeting Jörg


Top
 Profile  
Reply with quote  
 Post subject: Re: Mint 18.3 and PB 5.72 +
PostPosted: Tue Jan 12, 2021 8:01 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Fri Jul 19, 2013 7:36 am
Posts: 262
Location: Novosibirsk
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?

_________________
Dawn will come inevitably. ( Рассвет наступит неизбежно )


Top
 Profile  
Reply with quote  
 Post subject: Re: Mint 18.3 and PB 5.72 +
PostPosted: Fri Feb 12, 2021 6:38 pm 
Offline
New User
New User

Joined: Wed Nov 18, 2020 6:10 pm
Posts: 3
Location: Mecklenburg Germany
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 :-)

_________________
Greeting Jörg


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye