You are not logged in.

#1 2016-12-20 19:16

rafaelramos
Member
From: Brazil
Registered: 2016-07-19
Posts: 67

PHP-GTK on Q4OS/Raspbian

Hello guys!

I'm working on a project using a Raspberry Pi 3 board as a low cost platform for developing management systems, with the Adianti Framework for PHP:

http://www.adianti.com/framework

I'm trying to make php-gtk work so I can run and use Adianti Studio, the IDE of the framework, but it's difficult. The architecture of the RPi3 processor is ARM, and the php-gtk compiled packages available on the Adianti website are for x86 platform, so they do not work.

I was able to install gtk2 on Raspberry using this tutorial:

https://www.youtube.com/watch?v=Z5ljaf7c-tga

I was able to run "Hello World" on a good one, so, in theory, GTK2 is working, just missing the php-gtk.

Then I followed this tutorial for installing php-gtk in Debian:

http://debianaddict.com/2011/09/15/inst … on-debian/

I followed everything right, except for the installation of php-gtk by svn, because the indicated repository no longer exists. But I downloaded the SRC source code from the official php-gtk page and continued the tutorial steps from that point on to proceed with the installation.

The whole procedure was executed without problems. But at the time of testing php-gtk for the command:

php -m | grep gtk

Displays the following error:

"PHP Warning: Unable to load dynamic library '/usr/lib/php5/20131226/php_gtk2.so' - /usr/lib/php5/20131226/php_gtk2.so: undefined symbol: php_cairo_get_context_ce in Unknown on line 0"

Remembering that the reference to the libraries are already inserted in php.ini...

And when I try to run the Adianti Studio IDE I get the following error:

"./main.sh: 4: ./main.sh: php-gtk2: not found"

Has anyone here accidentally used php-gtk on the Raspbian, and have any suggestions that might help me?

Greetings everyone!

Rafael

Last edited by rafaelramos (2016-12-20 20:02)

Offline

#2 2016-12-27 13:31

rafaelramos
Member
From: Brazil
Registered: 2016-07-19
Posts: 67

Re: PHP-GTK on Q4OS/Raspbian

I made php-gtk work on ARM by following this link:

http://stackoverflow.com/questions/8677 … -php-fails

But after contacting the framework support, I noticed that the IDE is incompatible with the ARM architecture... sad

Offline

Board footer

Powered by FluxBB