haXe Forum > problem loading hxcpp

  • Hi

    I run windows XP. While following these directions below, it indicates to me that in C:\Program Files\Motion-Twin\haxe\lib\hxcpp\2,05,1\bin\Windows there ought to be an executable file haxecpp.exe. When I look at the folder there are only 4 dll's. When I typed haxelib install hxcpp I was told that regedit is not recognized as an internal or external command, operable program or batch file, then proceeded to install anyway.

    I think the problem may involve Symantec, I tried disabling Symantec then reloading, but that did not solve it. Since no one else seems to have this problem, I am probably understanding something wrong.

    Thanks for you help

    //# Download and install haxe
    # Access the the windows command prompt (console): Start->Run->"cmd"
    note you will have to close and re-open the command prompt after making any changes to environment variables before they will take effect in the command promt
    # Type "haxelib install hxcpp". This will install the hxcpp library for haXe.
    # Type "haxelib install neash". Installs the neash library.
    # Type "haxelib install nme". Note this may already be installed as a dependency.
    # Open your System Properties dialogue (Start->Control Panel->System), go to the Advanced tab, and then click Environment Variables button. Here we'll be adding some environment paths. You can add them either in the User variables (the top list, which will only work for the current user) or System variables (the bottom list, which work for all users).
    # Set an environment variable called "HXCPP" by clicking New under the list and entering Variable name "HXCPP" and Variable value to hxcpp install directory ie: "C:\Program Files\Motion-Twin\haxe\lib\hxcpp\0,4"
    # Add "%HXCPP%" to the PATH variable, making sure that it is seperated with a ";" and no space.
    # Add "%HXCPP%\bin\Windows" to the PATH as well. This is so haxecpp.exe can be found.//

  • Hi. I'm absolutely not a CPP person, but, had to go through these steps recently. I have some deem memories I've seen this on some blog.
    So, firstly, the current version of hxcpp is 2,05,1 (not 0,4) as stated there - you should check that this is the path you are entering. Additionally, on windows, you would have to restart after making changes to PATH and other env. variables. Most important that you find all parts of the .NET framework required to compile CPP using MSVC from command line - at least for me that was the most challenging part, since I had several express installations of different flavors of Visual Studio and the important files and libraries got spread thus all around my PC :)

  • Thanks for the response Oleg, I haven't gotten as far as Visual Studio problems, still trying to find haxecpp.exe

  • You need to install haxecpp. run haxelib install haxecpp.

  • Oh sorry, I just reread your original post. Ignore my earlier comment.

  • Hi. Again, maybe I am wrong, but I don't have that file either, I assume it was required once before CPP target became closely integrated with the rest of HaXe. Well, I really don't have that file, and my C:\Program Files\Motion-Twin\haxe\lib\hxcpp\2,05,1\bin\Windows contains exactly 4 DLLs, just like yours :)

  • thanks again Oleg, I had eliminated enough other possibilities so that I didn't think haxecpp.exe should be in that folder. Thanks for the confirmation.

  • For those who find the same problem: The solution is that haxecpp.exe has been embedded, therefore there is no file of that name that gets downloaded. So where the directions say haxecpp.exe, change that to haxe.exe -cpp

< Prev | Page 1 / 1 | Next >