Code Monkey home page Code Monkey logo

xcross's Introduction

xcross

xCross is a tool that enable you to build standalone binaries from an haXe/Neko program. By running a single command, xCross will create three binaries, for Windows, OSX (Universal) and Linux with no required dependencies.

To install :

To run :

  • run "haxelib run xcross myfile.n"
  • this will produce three standalone executables myfile-win.exe, myfile-osx and myfile-linux
  • you can create an OSX bundle instead of a binary with haxelib run xcross -bundle MyBundle myfile.n

xCross includes / statically link :

  • the NekoVM itself (neko.dll or libneko.so)
  • the Boehm GC used by NekoVM (gc.dll or libgc.so)
  • the Neko standard library (std.ndll) which contains filesystem access, sockets, threads, etc.
  • the zlib.ndll and regexp.ndll libraries (for zip and regular expressions support)
  • a very tiny UI toolkit used by haXe Installer (see https://github.com/robksawyer/xcross/tree/master/xcross)

If you want to use additional libraries, you'll have to make a custom build of xCross.

xcross's People

Contributors

robksawyer avatar

Watchers

James Cloos avatar

xcross's Issues

Wrong amount of items in neko.Sys.args()

What steps will reproduce the problem?
1. Compile this code:

package;
class Test
{
    public static function main()
    {
        neko.Lib.print("Args: " + neko.Sys.args().length);
    }
}

-main Test.hx
-neko test.n

2. Run haxelib run xcross test.n 
3. Run resulting test-win.exe one two

What is the expected output? What do you see instead?

Expected: neko.Sys.args() should return an array with 2 items (["one", "two"]).
Instead: The array has only 1 item (["one two"]).

What version of the product are you using? On what operating system?

haXe 2.0.5, Neko 1.8.1, xCross 1.0.5, Windows XP SP3.

Please provide any additional information below.

Running:

neko test.n one two

works as expected. This seems to be Windows only, Mac and Linux executables 
seem to work ok.

Original issue reported on code.google.com by [email protected] on 15 Jun 2010 at 3:51

neko.io.Process and neko.Sys.command open new console window

What steps will reproduce the problem?
1. Compile an app for Windows using either Process or command.

What is the expected output? What do you see instead?

Expected: process executes within the main console window.
Instead: a new console window is opened for each process or command invoked (it 
automatically closes when done).

What version of the product are you using? On what operating system?

haXe 2.0.5, Neko 1.8.1, xCross 1.0.5, Windows XP SP3.

Please provide any additional information below.

Linux and OS X binaries and running the app through Neko works as expected.

Original issue reported on code.google.com by [email protected] on 17 Jun 2010 at 10:50

neko.Lib.print doesn't work when compiling to Windows binary

What steps will reproduce the problem?
1.  Compile this code:

package;
class Test
{
    public static function main()
    {
        neko.Lib.print('Hello World');
    }
}

With:

-main Test.hx
-neko test.n


2. Run haxelib run xcross test.n 
3. Run resulting test-win.exe   

What is the expected output? What do you see instead?

Expected: "Hello World" on the console.
Result: empty.

What version of the product are you using? On what operating system?

haXe 2.0.5, Neko 1.8.1, xCross 1.0.5, Windows XP SP3.

Please provide any additional information below.

Binary seem to execute (for example, writing a file to the disk), but nothing 
comes up on the console when writing to default output.

Running neko test.n works as expected.

Haven't been able to compile on Windows 7 because I'm getting a weird error 
when using haxelib run:

"The current directory is invalid".

Thanks,

Juan

Original issue reported on code.google.com by [email protected] on 15 Jun 2010 at 10:07

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.