LoginSignup
0
2

More than 5 years have passed since last update.

TH-wbRadStudio で php7.1をexe化 (python3.6も可)

Last updated at Posted at 2017-09-19

Download

1. VCRUNTIME140.dll のインストール

1.png

スクリーンショット_2017-09-20_08-29-18.png

2. LIBEAY32.dll のインストール

スクリーンショット_2017-09-20_08-20-17.png

ssl.png

スクリーンショット_2017-09-20_08-33-14.png

ビルドしたexeに php7ts.dll も一緒に置く。
ビルドしたexeが実行できることを確認。

その他ためになりそうなサイト

抜粋
たとえば、テキストファイルを相対パスで指定したりする場合には、
インタプリタから見たパスの場所がずれるため、
通常どおりのパスが指定できない点を注意する。

この解決方法はRES://というURLスキーマを利用する。

$file = '../data/data.txt';
$usage_path  =  'res:///PHP/' . strtoupper(md5($file));

他の実装

bamcompile

bamcompile hello.php hello.exe 
bamcompile project main.php result.exe

bamcompile -e:c:\php\extensions\php_mbstring.dll project main.php result.exe
bamcompile -e:php_mbstring.dll -e:php_gd2.dll ・・・
0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2