Getting the .exe from a compiled version
by Christian · in Torque 2D Beginner · 03/27/2014 (3:07 am) · 13 replies
Hey,
Wanted to try out the new LiquidFunToy, so downloaded it from github. Unfortunately there is no .exe with it (that I have found at least).
So assuming we need to compile the source engine to create it. I haven't done that in about 6 years with T3D so a little rusty. Tried opening the compiling programs in engine -> compilers with VS, but neither worked.
I could be going about this all wrong, but not seeing another way to get the Torque2d.exe
Wanted to try out the new LiquidFunToy, so downloaded it from github. Unfortunately there is no .exe with it (that I have found at least).
So assuming we need to compile the source engine to create it. I haven't done that in about 6 years with T3D so a little rusty. Tried opening the compiling programs in engine -> compilers with VS, but neither worked.
I could be going about this all wrong, but not seeing another way to get the Torque2d.exe
#2
03/27/2014 (5:24 am)
Quote:Tried opening the compiling programs in engine -> compilers with VS, but neither worked.It will also help if you post your compiler error.
#3
When loading the program into visual studio everything is 'load failed', and it cannot be compiled or ran.
03/27/2014 (1:14 pm)
Visual Studio 2013 express.When loading the program into visual studio everything is 'load failed', and it cannot be compiled or ran.
#4
What I usually do when using a newer compiler is copy the Torque2D/engine/compilers/VisualStudio 2012 to a VisualStudio 2013 folder, then open it from there and adjust my project output after the project upgrade is complete.
03/27/2014 (1:42 pm)
"Everything?" Should just be opening the .sln file, and it should ask if you want to upgrade it because T2D is still only distributing the VS 2012 versions of the build files.What I usually do when using a newer compiler is copy the Torque2D/engine/compilers/VisualStudio 2012 to a VisualStudio 2013 folder, then open it from there and adjust my project output after the project upgrade is complete.
#5
I would download VS2012 again, but it was causing problems with other projects when I had two installed simultaneously.
03/27/2014 (2:00 pm)
Yeah, everything. Re-downloaded and found the initial error. I'm not sure, but this looks like it may be due to my version of VS....\Desktop\Torque2D-LiquidFun\engine\compilers\VisualStudio 2012\lpng.vcxproj : error : Unable to read the project file "lpng.vcxproj". C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Platform.targets(64,7): The project file could not be loaded. The 'Target' start tag on line 44 position 4 does not match the end tag of 'VCMessage'. Line 64, position 7. ...\Torque2D-LiquidFun\engine\compilers\VisualStudio 2012\zlib.vcxproj : error : Unable to read the project file "zlib.vcxproj". C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Platform.targets(64,7): The project file could not be loaded. The 'Target' start tag on line 44 position 4 does not match the end tag of 'VCMessage'. Line 64, position 7.
I would download VS2012 again, but it was causing problems with other projects when I had two installed simultaneously.
#6
Actually, looking at https://github.com/GarageGames/Torque2D/blob/master/engine/compilers/VisualStudio%202012/lpng.vcxproj at line 44 there is no "target" tag. The same goes for https://github.com/GarageGames/Torque2D/blob/master/engine/compilers/VisualStudio%202012/zlib.vcxproj.
03/27/2014 (2:21 pm)
No, something is wrong in those two project files. Try comparing them to known good project files.Actually, looking at https://github.com/GarageGames/Torque2D/blob/master/engine/compilers/VisualStudio%202012/lpng.vcxproj at line 44 there is no "target" tag. The same goes for https://github.com/GarageGames/Torque2D/blob/master/engine/compilers/VisualStudio%202012/zlib.vcxproj.
#7
Until I can figure out how to fix this, do any of the github's have the executable for download, that has the liquidfun in it?
03/27/2014 (10:40 pm)
Just tried the compiler from the default Torque engine and it has one of those errors.Until I can figure out how to fix this, do any of the github's have the executable for download, that has the liquidfun in it?
#8
03/28/2014 (6:14 am)
Send me an e-mail (address is in the profile). I'll shoot you the latest executable I have. For it to work, you will need the latest from my repository, since I updated it recently. I do not use VS 2013, so it would be great if you guys get this working and can provide me with a working VS 2013 solution. Better yet, if someone could get a VS 2013 solution in the main T2D MIT development branch, I can pull that into mine.
#11
The compiling error is boiling down to these two not matching up:
03/28/2014 (10:42 am)
Thanks Michael, the LiquidFun build is working with that.The compiling error is boiling down to these two not matching up:
//From lpng.vcxproj
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
//From MSBuild Folder
</VCMessage Code="MSB8020" Type="Error" Arguments="$(_CurrentPlatformToolsetShortName);$(PlatformToolset)" Condition="'$(ToolsetTargetsFound)' != 'true'" />
#12
03/29/2014 (4:54 am)
@Christian - So how is the LiquidFun integration working for you? Are the fluids working? Good performance?
#13
Have not got the engine to compile yet, still show the error above.
Using the exe you gave on my normal version of T2D, it has given a couple errors in the console, but the liquid loads normally and run with good performance (the same as it runs in the sandbox).
03/29/2014 (5:05 am)
Yeah partly,Have not got the engine to compile yet, still show the error above.
Using the exe you gave on my normal version of T2D, it has given a couple errors in the console, but the liquid loads normally and run with good performance (the same as it runs in the sandbox).
Associate Mike Lilligreen
Retired T2Der
this thread has a nice picture in it that describes how to compile the engine:
www.garagegames.com/community/forums/viewthread/136215