我正在尝试在崇高文本3中编译haxe,但我总是得到错误:
[Errno 2] No such file or directory: 'haxe'
[cmd: ['haxe', 'build.hxml']]
[dir: /home/bob/Desktop]
[path: /usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/home/bob/.local/bin:/home/bob/bin]
[Finished]
我正在运行fedora 22,并在我的主文件夹中提取了Haxe tar,我还按Ctrl + Shift + P并安装了haxelib和Haxe软件包。我的两个文件是heloWorld.hx
class HelloWorld {
static public function main() {
trace("Hello World");
}
}
生成了build.hxml:
# Autogenerated build.hxml
# hellowWorld (js:hellowworld.js)
-main hellowWorld
js hellowworld.js
为什么haxe不是构建系统选项或根本不编译?
答案 0 :(得分:0)
我发现我需要将haxe exacutables添加到/ usr / bin /,因为它是linux上常用路径的地方。发生的另一个问题是,无论类名是否为小写,我都会收到错误:
Error: Could not process argument haxe -main HelloWorld
Class name must start with uppercase character
Build failed