Recent

Author Topic: [solved]pas2js configuration?  (Read 689 times)

Soner

  • Full Member
  • ***
  • Posts: 149
[solved]pas2js configuration?
« on: March 16, 2019, 11:35:50 am »
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.


« Last Edit: March 16, 2019, 11:46:00 am by Soner »

Soner

  • Full Member
  • ***
  • Posts: 149
Re: pas2js configuration?
« Reply #1 on: March 16, 2019, 11:45:24 am »
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

  • Administrator
  • Full Member
  • *
  • Posts: 136
    • http://www.lazarus.freepascal.org
Re: [solved]pas2js configuration?
« Reply #2 on: March 16, 2019, 11:56:58 am »
This should be fixed in pas2js 1.4.0RC6.
What version did you try?

Soner

  • Full Member
  • ***
  • Posts: 149
Re: [solved]pas2js configuration?
« Reply #3 on: March 16, 2019, 12:31:36 pm »
pas2js-windows-1.4.0RC6 from here ftp://ftpmaster.freepascal.org/fpc/contrib/pas2js