Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

[MBS] PictureToPNGStringMBS not working on my Linux system (MBS Xojo Plugin Mailinglist archive)

Back to the thread list
Previous thread: [MBS] DynaPDF ParseContent
Next thread: [MBS] CGShadingCreateAxialMBS and 64b


Re: [MBS] 9.3pr11   -   Garth Hjelte
  [MBS] PictureToPNGStringMBS not working on my Linux system   -   Marnaud
   Re: [MBS] PictureToPNGStringMBS not working on my Linux system   -   Marnaud
   Re: [MBS] PictureToPNGStringMBS not working on my Linux system   -   Marnaud
    Re: [MBS] PictureToPNGStringMBS not working on my Linux system   -   Tim Jones
    Re: [MBS] PictureToPNGStringMBS not working on my Linux system   -   Christian Schmitz
   Re: [MBS] PictureToPNGStringMBS not working on my Linux system   -   Marnaud
    Re: [MBS] PictureToPNGStringMBS not working on my Linux system   -   Christian Schmitz
   Re: [MBS] PictureToPNGStringMBS not working on my Linux system   -   Marnaud
   Re: [MBS] PictureToPNGStringMBS not working on my Linux system   -   Marnaud
    Re: [MBS] PictureToPNGStringMBS not working on my Linux system   -   Christian Schmitz
   Re: [MBS] PictureToPNGStringMBS not working on my Linux system   -   Marnaud
    Re: [MBS] PictureToPNGStringMBS not working on my Linux system   -   Christian Schmitz
   Re: [MBS] PictureToPNGStringMBS not working on my Linux system   -   Christian Schmitz

[MBS] PictureToPNGStringMBS not working on my Linux system
Date: 02.04.18 19:13 (Mon, 02 Apr 2018 20:13:13 +0200)
From: Marnaud
Hello. I have this test code which works fine on Mac but fails on my Linux installation:

dim p As Picture
dim q As Picture
dim s As String

p=new Picture(32,32,32)
p.Graphics.DrawOval 0,0,32,32

s=PictureToPNGStringMBS(p)

q=PNGStringToPictureMBS(s)
Break

Running on Linux Mint 18.1 64-bit, Cinnamon 3.2.7., PictureToPNGStringMBS returns an empty string.

In the more complex project where I had troubles at the first place, I noticed PNGStringToPictureMBS returned a nil picture (it worked fine on the Mac and Windows versions).

Perhaps a problem with shared libraries?
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] PictureToPNGStringMBS not working on my Linux system
Date: 04.04.18 15:29 (Wed, 04 Apr 2018 16:29:24 +0200)
From: Marnaud
Le 4 avr. 2018 à 16:18 du soir, Christian Schmitz <<email address removed>> a écrit:
>
>> Ok, the Nautilus search gave better results than the Terminal one. I finally found these files:
>> libcairo.so.2 in /usr/lib/i386-linux-gnu
>> libcairo.so.2 in /usr/lib/x86_64-linux-gnu
>
> Let me rebuild a new plugin or 18.2pr2 in the next days to fix this.

Ok, thank you.
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] PictureToPNGStringMBS not working on my Linux system
Date: 04.04.18 15:13 (Wed, 04 Apr 2018 16:13:52 +0200)
From: Marnaud
Le 4 avr. 2018 à 15:54 du soir, Christian Schmitz <<email address removed>> a écrit:
> Yes. So where is the file on the disk?

Ok, the Nautilus search gave better results than the Terminal one. I finally found these files:
libcairo.so.2 in /usr/lib/i386-linux-gnu
libcairo.so.2 in /usr/lib/x86_64-linux-gnu

Those two files are each a link to libcairo.so.2.11400.6 files in the same two directories.

No mention of simple libcairo.so file (i.e. without the ending “2”). Not sure that it's relevant or not.
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] PictureToPNGStringMBS not working on my Linux system
Date: 04.04.18 16:35 (Wed, 04 Apr 2018 08:35:21 -0700)
From: Tim Jones

> On Apr 4, 2018, at 7:13 AM, Marnaud <<email address removed>> wrote:
>
> Le 4 avr. 2018 à 15:54 du soir, Christian Schmitz <<email address removed>> a écrit:
>> Yes. So where is the file on the disk?
>
> Ok, the Nautilus search gave better results than the Terminal one. I finally found these files:
> libcairo.so.2 in /usr/lib/i386-linux-gnu
> libcairo.so.2 in /usr/lib/x86_64-linux-gnu
>
> Those two files are each a link to libcairo.so.2.11400.6 files in the same two directories.
>
> No mention of simple libcairo.so file (i.e. without the ending “2”). Not sure that it's relevant or not.

This is something that developers are complaining about bitterly. The constant shifting of the lib folders away from accepted, long-standing, standard locations. I now create symlinks from the "found" locations to the standard locations of /lib/ /usr/lib, /lib64, and /usr/lib64 as part of my installer scripts.

Tim

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] PictureToPNGStringMBS not working on my Linux system
Date: 04.04.18 15:18 (Wed, 4 Apr 2018 16:18:44 +0200)
From: Christian Schmitz

> Ok, the Nautilus search gave better results than the Terminal one. I finally found these files:
> libcairo.so.2 in /usr/lib/i386-linux-gnu
> libcairo.so.2 in /usr/lib/x86_64-linux-gnu
>

Let me rebuild a new plugin or 18.2pr2 in the next days to fix this.

Sincerely
Christian

Re: [MBS] PictureToPNGStringMBS not working on my Linux system
Date: 04.04.18 14:52 (Wed, 04 Apr 2018 15:52:54 +0200)
From: Marnaud
Le 3 avr. 2018 à 14:19 du soir, Christian Schmitz <<email address removed>> a écrit:
>
> Than please install Cairo library.

In the software manager, the thing that looks most like Cairo is named “Libcairo2” and is already installed. Is it this one you asked me to install?
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] PictureToPNGStringMBS not working on my Linux system
Date: 04.04.18 14:54 (Wed, 4 Apr 2018 15:54:13 +0200)
From: Christian Schmitz

> Am 04.04.2018 um 15:52 schrieb Marnaud <<email address removed>>:
>
> Le 3 avr. 2018 à 14:19 du soir, Christian Schmitz <<email address removed>> a écrit:
>>
>> Than please install Cairo library.
>
> In the software manager, the thing that looks most like Cairo is named “Libcairo2” and is already installed. Is it this one you asked me to install?

Yes. So where is the file on the disk?

Sincerely
Christian

Re: [MBS] PictureToPNGStringMBS not working on my Linux system
Date: 04.04.18 10:20 (Wed, 04 Apr 2018 11:20:26 +0200)
From: Marnaud
Le 4 avr. 2018 à 11:13 du matin, Christian Schmitz <<email address removed>> a écrit:
>
> Strange that Xojo works without Cairo?

I'm remote debugging, so the IDE is not running. Still, the remote debugger and my app launch without Cairo.

> Well, it's a system library and you should not put it next to your app.

So I'll need to instruct the users to install it manually; don't ask me why I dislike Linux…

Thanks.
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] PictureToPNGStringMBS not working on my Linux system
Date: 04.04.18 10:07 (Wed, 04 Apr 2018 11:07:27 +0200)
From: Marnaud

> Le 3 avr. 2018 à 14:19 du soir, Christian Schmitz <<email address removed>> a écrit:
>
>> I'm actually failing to find it; could it be not installed? Linux isn't the system I'm most comfortable with.
>> (I tried the “find” terminal command to search for it)
>
> Than please install Cairo library.

I will, for testing. But if someone wants to try my app, (s)he will also need to install the library, which is "ugly". Can't I install the library somewhere next to the app?
Thanks.
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] PictureToPNGStringMBS not working on my Linux system
Date: 04.04.18 10:13 (Wed, 4 Apr 2018 11:13:13 +0200)
From: Christian Schmitz
> I will, for testing. But if someone wants to try my app, (s)he will also need to install the library, which is "ugly". Can't I install the library somewhere next to the app?#

Strange that Xojo works without Cairo?

Well, it's a system library and you should not put it next to your app.

Sincerely
Christian

Re: [MBS] PictureToPNGStringMBS not working on my Linux system
Date: 03.04.18 13:03 (Tue, 03 Apr 2018 14:03:17 +0200)
From: Marnaud
Le 2 avr. 2018 à 20:33 du soir, Christian Schmitz <<email address removed>> a écrit:
>
>> Running on Linux Mint 18.1 64-bit, Cinnamon 3.2.7., PictureToPNGStringMBS returns an empty string.
>
> Well, just this functions or also other functions?
> Like LogoMBS() works?

You're right: LogoMBS also fails.

> Because if e.g. Cairo library is not found, some things fail.
> Where is your libcairo.so file on disk?

I'm actually failing to find it; could it be not installed? Linux isn't the system I'm most comfortable with.
(I tried the “find” terminal command to search for it)

Thank you.
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] PictureToPNGStringMBS not working on my Linux system
Date: 03.04.18 13:19 (Tue, 3 Apr 2018 14:19:47 +0200)
From: Christian Schmitz

>> Because if e.g. Cairo library is not found, some things fail.
>> Where is your libcairo.so file on disk?
>
> I'm actually failing to find it; could it be not installed? Linux isn't the system I'm most comfortable with.
> (I tried the “find” terminal command to search for it)

Than please install Cairo library.

Sincerely
Christian

Re: [MBS] PictureToPNGStringMBS not working on my Linux system
Date: 02.04.18 19:33 (Mon, 2 Apr 2018 20:33:35 +0200)
From: Christian Schmitz

>
> Running on Linux Mint 18.1 64-bit, Cinnamon 3.2.7., PictureToPNGStringMBS returns an empty string.

Well, just this functions or also other functions?
Like LogoMBS() works?

Because if e.g. Cairo library is not found, some things fail.
Where is your libcairo.so file on disk?

Sincerely
Christian