![]() ![]() ![]() So if your js file is output.js, you run pkg output.js. Then, open a command prompt to your projects folder and run npm install -g pkg, then pkg. To generate an exe this way, you first need to install node.js (if you don’t already have it): Node.js The hxcpp approach has some big upsides for potential performance, but that may not matter for your project. There is an alternative way to generate an exe: it’s possible to package the javascript file you’ve currently got into an exe. Try to follow any instructions it gives (I think on windows you need to install the visual studio compiler or something), and let me know if you get stuck at this step Converting video and audio has never been so easy. Most systems don’t include a C++ compiler by default, which is needed to compile the C++ into an exe. A complete, cross-platform solution to record, convert and stream audio and video. This time it should generate C++ code in a folder called bin/ but it may request to install some other bits, depending what system you have (mac, linux, windows). To install libraries, you use a tool called haxelib and to install hxcpp you do:Īfter you run that and it finishes downloading, try running haxe build.hxml again. It will probably say Error: Library hxcpp is not installed I’m guessing you have a couple files right now, something like Main.hx and build.hxml?Ĭurrently you have a line like -js output.js in your build.hxml, what you want to do is replace that line with -cpp bin, then try running haxe build.hxml. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |