Skip to content

Latest commit

 

History

History
69 lines (49 loc) · 1.68 KB

File metadata and controls

69 lines (49 loc) · 1.68 KB

English | 中文

About PHPSciter

PHPSciter is a PHP extension to bind the Sciter framework which is a cross platform GUI framework.

Install Sciter

Download the [sciter-sdk][]

  1. Put Sciter's dynamic library directly into the same location as the PHP executable files.

  2. Extract the sciter runtime library from [sciter-sdk][] to system PATH

    The runtime libraries lives in bin bin.gtk bin.osx with suffix like dll so or dylib

    • Windows: simply copying bin\64\sciter.dll to c:\windows\system32 is just enough
    • Linux:
      • cd lib/sciter/linux
      • tar zxvf libsciter-gtk-lnx.tar.gz
      • echo $PWD >> libsciter.conf
      • sudo cp libsciter.conf /etc/ld.so.conf.d/
      • sudo ldconfig
      • ldconfig -p | grep sciter should print libsciter-gtk-64.so location
    • OSX:
      • cd lib/sciter/mac
      • export DYLD_LIBRARY_PATH=$PWD

Windows

  • Please put "phpsciter.dll" to php.exe/extension folder

Ubuntu 16.04

apt-get install build-essential pkg-config
apt install libgtk-3-dev

git clone https://github.com/longyan/phpsciter.git
cd phpsciter
phpize
./configure
make
make install

php examples/phpsciter-load-frame/index.phpt

Mac OS

git clone https://github.com/longyan/phpsciter.git
cd phpsciter
phpize
./configure
make
make install

php examples/phpsciter-load-frame/index.phpt

Notice!

  • If you used "make clean function", you have to do configuration again.

Debug

  • 如何进行Sciter软件方面的调试?

  • 需要将sciter-sdk下面的inspector 拷贝到 与php.exe 同级目录下,点击Dom inspector