Forum > Pas2JS

[solved]pas2js configuration?

(1/1)

Soner:
Here is my configuration:
Lazarus 2.0.1 Svn-Revision 60692, fpc 3.0.4, x86_64-win64
pas2js-windows-1.4.0RC6 installed in subfolder in lazarus folder: d:/lazarus/pas2js

I followed instructions from here http://wiki.freepascal.org/lazarus_pas2js_integration and set path of pas2js to:
d:/lazarus/pas2js/bin/pas2js.exe

I opened the example democanvas2d.lpi and tried to compile but I get error:
"
Project: Executing command before: cannot find executable "pas2js.exe", Errors: 1
Panic: internal error: cannot find executable "pas2js.exe"
"
What is wrong? What should I set for path of pas2js?


Only when I change the command in [Project Options > Compiler Options > Compiler Commands> Execute Before Command:] to D:\lazarus\pas2js\bin\pas2js.exe then I can compile it.


Soner:
For the examples this helps:
"..
i fixed that error by opening the .lpi file and replace $MakeExe(pas2js)
by
$(pas2js)
.."
from the topic.
http://forum.lazarus-ide.org/index.php/topic,44545.msg313519.html?PHPSESSID=idgsg6le613ek6vuac18gesom4#msg313519

mattias:
This should be fixed in pas2js 1.4.0RC6.
What version did you try?

Soner:
pas2js-windows-1.4.0RC6 from here ftp://ftpmaster.freepascal.org/fpc/contrib/pas2js

Navigation

[0] Message Index

Go to full version