pre build command line in FD3

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

pre build command line in FD3

tom rhodes
Hi All, i hope this is somemthing simple...

i'm following the instructions here...


but when i put the paths in i get an Exception about not finding the files. i've tried with and without quotes, with forward slashes and with backwards slashes.the path to haxe on my machine is "C:\Motion-Twin\haxe.exe" (windows 7 64bit) when i try just with that (leaving out the path to my compile.hxml) it still fails. the path is correct but no dice...

i've used haxe for php and JS in the past and it was a great experience, now i really want to start using it to target multiple platforms using the same project in FD3 to explore the cpp, flash, nme, jeash possibilites. so any help greatly appreciated!

cheers,

tom.

--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|

Re: pre build command line in FD3

jlm@justinfront.net
only use win during the week so can't check at mo that your path is right, but maybe it's not that, can you paste the *.hxproj file and your dir structure,   I take it you can compile fine from the commandline?


On 29 Jan 2011, at 14:28, tom rhodes wrote:

Hi All, i hope this is somemthing simple...

i'm following the instructions here...


but when i put the paths in i get an Exception about not finding the files. i've tried with and without quotes, with forward slashes and with backwards slashes.the path to haxe on my machine is "C:\Motion-Twin\haxe.exe" (windows 7 64bit) when i try just with that (leaving out the path to my compile.hxml) it still fails. the path is correct but no dice...

i've used haxe for php and JS in the past and it was a great experience, now i really want to start using it to target multiple platforms using the same project in FD3 to explore the cpp, flash, nme, jeash possibilites. so any help greatly appreciated!

cheers,

tom.
--
haXe - an open source web programming language
http://haxe.org


--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|

Re: pre build command line in FD3

tom rhodes
compiles fine using the hxml file yup.

here's the hxproj...

<?xml version="1.0" encoding="utf-8"?>
<project>
  <!-- Output SWF options -->
  <output>
    <movie disabled="True" />
    <movie input="" />
    <movie path="" />
    <movie fps="30" />
    <movie width="800" />
    <movie height="600" />
    <movie version="9" />
    <movie background="#FFFFFF" />
  </output>
  <!-- Other classes to be compiled into your SWF -->
  <classpaths>
    <class path="src" />
  </classpaths>
  <!-- Build options -->
  <build>
    <option directives="" />
    <option flashStrict="False" />
    <option mainClass="" />
    <option enabledebug="False" />
    <option additional="" />
  </build>
  <!-- haxelib libraries -->
  <haxelib>
    <!-- example: <library name="..." /> -->
  </haxelib>
  <!-- Class files to compile (other referenced classes will automatically be included) -->
  <compileTargets>
    <!-- example: <compile path="..." /> -->
  </compileTargets>
  <!-- Assets to embed into the output SWF -->
  <library>
    <!-- example: <asset path="..." id="..." update="..." glyphs="..." mode="..." place="..." sharepoint="..." /> -->
  </library>
  <!-- Paths to exclude from the Project Explorer tree -->
  <hiddenPaths>
    <!-- example: <hidden path="..." /> -->
  </hiddenPaths>
  <!-- Executed before build -->
  <preBuildCommand>"C:\Motion-Twin\haxe.exe"</preBuildCommand>
  <!-- Executed after build -->
  <postBuildCommand alwaysRun="False" />
  <!-- Other project options -->
  <options>
    <option showHiddenPaths="False" />
    <option testMovie="Default" />
  </options>
</project>

cheers

On 29 January 2011 14:43, [hidden email] <[hidden email]> wrote:
only use win during the week so can't check at mo that your path is right, but maybe it's not that, can you paste the *.hxproj file and your dir structure,   I take it you can compile fine from the commandline?


On 29 Jan 2011, at 14:28, tom rhodes wrote:

Hi All, i hope this is somemthing simple...

i'm following the instructions here...


but when i put the paths in i get an Exception about not finding the files. i've tried with and without quotes, with forward slashes and with backwards slashes.the path to haxe on my machine is "C:\Motion-Twin\haxe.exe" (windows 7 64bit) when i try just with that (leaving out the path to my compile.hxml) it still fails. the path is correct but no dice...

i've used haxe for php and JS in the past and it was a great experience, now i really want to start using it to target multiple platforms using the same project in FD3 to explore the cpp, flash, nme, jeash possibilites. so any help greatly appreciated!

cheers,

tom.
--
haXe - an open source web programming language
http://haxe.org


--
haXe - an open source web programming language
http://haxe.org


--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|

Re: pre build command line in FD3

jlm@justinfront.net
  <preBuildCommand>"C:\Motion-Twin\haxe.exe"</preBuildCommand>
I don't have anything in here, I don't think that's the right place.

you don't seem to have a movie path...
    <movie path="" />
I have something along the lines of...
<movie path="bin\out.swf" />

and you don't seem to have a main class defined
    <option mainClass="" />
should be more like...
<option mainClass="myPackage.Main" />

in build I also have these set...
    <option enabledebug="True" />
    <option additional="--no-inline&#xA;-D fdb&#xA;-D no_network" />

but they maybe specific to our project (fairly new to FD3 also).


On 29 Jan 2011, at 14:53, tom rhodes wrote:

compiles fine using the hxml file yup.

here's the hxproj...

<?xml version="1.0" encoding="utf-8"?>
<project>
  <!-- Output SWF options -->
  <output>
    <movie disabled="True" />
    <movie input="" />
    <movie path="" />
    <movie fps="30" />
    <movie width="800" />
    <movie height="600" />
    <movie version="9" />
    <movie background="#FFFFFF" />
  </output>
  <!-- Other classes to be compiled into your SWF -->
  <classpaths>
    <class path="src" />
  </classpaths>
  <!-- Build options -->
  <build>
    <option directives="" />
    <option flashStrict="False" />
    <option mainClass="" />
    <option enabledebug="False" />
    <option additional="" />
  </build>
  <!-- haxelib libraries -->
  <haxelib>
    <!-- example: <library name="..." /> -->
  </haxelib>
  <!-- Class files to compile (other referenced classes will automatically be included) -->
  <compileTargets>
    <!-- example: <compile path="..." /> -->
  </compileTargets>
  <!-- Assets to embed into the output SWF -->
  <library>
    <!-- example: <asset path="..." id="..." update="..." glyphs="..." mode="..." place="..." sharepoint="..." /> -->
  </library>
  <!-- Paths to exclude from the Project Explorer tree -->
  <hiddenPaths>
    <!-- example: <hidden path="..." /> -->
  </hiddenPaths>
  <!-- Executed before build -->
  <preBuildCommand>"C:\Motion-Twin\haxe.exe"</preBuildCommand>
  <!-- Executed after build -->
  <postBuildCommand alwaysRun="False" />
  <!-- Other project options -->
  <options>
    <option showHiddenPaths="False" />
    <option testMovie="Default" />
  </options>
</project>

cheers

On 29 January 2011 14:43, [hidden email] <[hidden email]> wrote:
only use win during the week so can't check at mo that your path is right, but maybe it's not that, can you paste the *.hxproj file and your dir structure,   I take it you can compile fine from the commandline?


On 29 Jan 2011, at 14:28, tom rhodes wrote:

Hi All, i hope this is somemthing simple...

i'm following the instructions here...


but when i put the paths in i get an Exception about not finding the files. i've tried with and without quotes, with forward slashes and with backwards slashes.the path to haxe on my machine is "C:\Motion-Twin\haxe.exe" (windows 7 64bit) when i try just with that (leaving out the path to my compile.hxml) it still fails. the path is correct but no dice...

i've used haxe for php and JS in the past and it was a great experience, now i really want to start using it to target multiple platforms using the same project in FD3 to explore the cpp, flash, nme, jeash possibilites. so any help greatly appreciated!

cheers,

tom.
--
haXe - an open source web programming language
http://haxe.org


--
haXe - an open source web programming language
http://haxe.org

--
haXe - an open source web programming language
http://haxe.org


--
haXe - an open source web programming language
http://haxe.org