ASE Home Page Products Download Purchase Support About ASE
ChartDirector General
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  PHP lib for aarch64
Posted by Manish Kutaula on Sep-03-2021 19:44
Hi,

We are facing issues with ChartDirector php library installation. Our server is based on aarch64 architecture.

Kindly provide support for the same.

  Re: PHP lib for aarch64
Posted by Manish Kutaula on Sep-03-2021 19:47
We are running the following php version
PHP version - 7.4.9

  Re: PHP lib for aarch64
Posted by Peter Kwan on Sep-03-2021 21:49
Hi Manish,

The AWS aarch64 server uses a custom made 64-bit ARM CPU called Graviton. We can custom compile a ChartDirector for PHP version for the aarch64 architecture using our Raspberry Pi aarch64 machine. There is a high chance it will work on the Graviton aarch64 machine. It should available within 24 hours.

Regards
Peter Kwan

  Re: PHP lib for aarch64
Posted by Chris on Sep-14-2021 15:48
Hi,
is this build already available somewhere?

We're also requiring an aarch64 build - we're running a Debian Bullseye via Docker on M1 processor.

Best

  Re: PHP lib for aarch64
Posted by Peter Kwan on Sep-14-2021 16:50
Hi Chris,

Yes, it is available at:

https://www.advsofteng.com/chartdir_php_linux_arm64.tar.gz

Please kindly let me know if it works in your "Debian Bullseye via Docker on M1 processor" environment.

Regards
Peter Kwan

  Re: PHP lib for aarch64
Posted by Chris on Sep-14-2021 18:11
Hi Peter,
Thanks for the fast response!

I can confirm that this version works for this environment. I successfully generated a simple chart.

Unfortunately I noticed that we've used version 6 before ($cdPhpVersion = 0x600).
Is it possible to generate a build for this previous version or do we need to buy an upgrade?

Thanks,
Chris

  Re: PHP lib for aarch64
Posted by Peter Kwan on Sep-15-2021 17:01
Hi Chris,

In theory, you can change two files to go back to ChartDirector version 6 - the libchartdir.so and the phpchartdir.php.

You should already have the version 6 phpchartdir.php from your existing ChartDirector for PHP. It is OS and CPU independent and can be used in the aarch64 as well.

For the libchartdir.so version 6, there is an aarch64 version inside the following download:

https://www.advsofteng.com/chartdir_perl_linux_arm64.tar.gz

(The above is ChartDirector version 6 for Perl for aarch64 that we build last year. The libchartdir.so is common for all editions of ChartDirector, so it should work in ChartDirector for PHP too.)

Regards
Peter Kwan

  Re: PHP lib for aarch64
Posted by Chris on Sep-15-2021 19:50
Hi Peter,

Thanks so much for your great support!

Your theory also worked in practice. :) I took the PHP arm64 build for v7 and replaced the PHP integration file and .so file with the v6 Perl arm64 build files.

Best,
Chris