www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Dear ChrisMiller: This is day 4 of me trying to Compile a (tutorial)

reply "vmars316" <vmars316 live.com> writes:
Hello Chris Miller,
This is day 4 of me trying to Compile a (tutorial) myForm.d 
program with D/Dfl/Entice.
I am not getting the answers I need from dprogramming Forums..
Could you please help me with this.
I am beginning to hate D-programming.
But I’ll try to hang on a bit longer.

http://forum.dlang.org/thread/daltsisbevgtmkbnyovb forum.dlang.org?page=2#post-lxpqntoshkhjjempujth:40forum.dlang.org

Thanks for your help...Vernon
Apr 10 2012
parent reply Andrej Mitrovic <andrej.mitrovich gmail.com> writes:
On 4/10/12, vmars316 <vmars316 live.com> wrote:
 This is day 4 of me trying to Compile a (tutorial) myForm.d
 program with D/Dfl/Entice.
Almost a year ago a newbie had the same issue. I gave him some short instructions but apparently this post isn't in the archives for some reason. Anyway the instructions were: msysgit: $ git clone https://github.com/Rayerd/dfl.git cmd.exe (set these paths to where DM and DMD are installed) $ set dmc_path=C:\dm $ set dmd_path=C:\DMD\dmd2 $ cd dfl\win32\dfl $ makelib.bat Wait for it to build, then: $ set dfl_lib=%cd%\dfl.lib $ cd.. $ set dfl_import=%cd% $ cd ../.. $ mkdir testdfl $ cd testdfl Copy this example to a test.d file: http://wiki.dprogramming.com/Dfl/Tutorial2 And then run: $ dmd test.d -I%dfl_import% %dfl_lib% $ test.exe Ultimately you would use the dfl_import and dfl_lib variables in a build script of some sort, maybe a batch file. E.g. if you've cloned the DFL repository to C:\git\dfl you could use this build.bat batch file: echo off setlocal EnableDelayedExpansion set "DFL_LIB=C:\git\dfl\win32\dfl\dfl.lib" set "DFL_IMPORT=C:\git\dfl\win32" dmd -I%DFL_IMPORT% %DFL_LIB% test.d and this would build test.d to test.exe.
Apr 10 2012
parent reply "vmars316" <vmars316 live.com> writes:
On Tuesday, 10 April 2012 at 20:07:41 UTC, Andrej Mitrovic wrote:
 On 4/10/12, vmars316 <vmars316 live.com> wrote:
Ah, this looks thorough. It'll probably be a while before I respond, because GIT is all new to me. I am starting here: http://help.github.com/win-set-up-git/ Thanks...vm
Apr 10 2012
parent reply Andrej Mitrovic <andrej.mitrovich gmail.com> writes:
On 4/10/12, vmars316 <vmars316 live.com> wrote:
 On Tuesday, 10 April 2012 at 20:07:41 UTC, Andrej Mitrovic wrote:
 On 4/10/12, vmars316 <vmars316 live.com> wrote:
Ah, this looks thorough. It'll probably be a while before I respond, because GIT is all new to me. I am starting here: http://help.github.com/win-set-up-git/ Thanks...vm
You can use the zip download: https://github.com/Rayerd/dfl/zipball/master
Apr 10 2012
next sibling parent "vmars316" <vmars316 live.com> writes:
On Tuesday, 10 April 2012 at 22:31:44 UTC, Andrej Mitrovic wrote:
 On 4/10/12, vmars316 <vmars316 live.com> wrote:
 On Tuesday, 10 April 2012 at 20:07:41 UTC, Andrej Mitrovic
You can use the zip download: https://github.com/Rayerd/dfl/zipball/master
A couple years ago i learned HotBasic. An awesome language. (www.vmars316.com has some freeware programs, with source.) Quick to write, and tiny executables. But no workem on MAC. No HotBasic GUI, so I built my own blockStyle GUI. This year I started on a DIY EECP (external heart pump), which led me to Arduino, for which I have to learn "C". Also. This year i decided to leard a language that IS crossplatform, like "D". So I Bought the "D" book. I used to program on IBM mainframes. I am a retired senior citizen. My vocation became my vacation. :) But this GitHub seems to be a horrendous chore. It looks like at least a weeks worth of asking questions. Is there any way of downloading an already built DFL_LIB & DFL_IMPORT Or if git is the only way to build these, is there a portable version available. Thanks...Vernon
Apr 11 2012
prev sibling parent reply "vmars316" <vmars316 live.com> writes:
On Tuesday, 10 April 2012 at 22:31:44 UTC, Andrej Mitrovic wrote:
 You can use the zip download: 
 https://github.com/Rayerd/dfl/zipball/master
...ok, i downloaded PortableGit-1.7.10-preview20120409.7z and i put it here: C:\D\dmd2\windows\Dfl\import\dfl\win32\dflexe I am not sure if i need GTK (for D DFL and Entice), but i put it here: C:\D\dmd2\windows\Dfl\import\dfl\gtk\dfl and i ran the following: Start configuring git with your personal settings: git config --global user.name "..................." git config --global user.name ................... and ran git --help How do I build the dfl.lib (DFL_LIB & DFL_IMPORT), and whatever else i need to run D DFL and Entice ? Thanks..vm
Apr 11 2012
parent reply Andrej Mitrovic <andrej.mitrovich gmail.com> writes:
On 4/11/12, vmars316 <vmars316 live.com> wrote:
 How do I build the dfl.lib (DFL_LIB & DFL_IMPORT),
Didn't you get this message: msysgit: $ git clone https://github.com/Rayerd/dfl.git cmd.exe (set these paths to where DM and DMD are installed) $ set dmc_path=C:\dm $ set dmd_path=C:\DMD\dmd2 $ cd dfl\win32\dfl $ makelib.bat Wait for it to build, then: $ set dfl_lib=%cd%\dfl.lib $ cd.. $ set dfl_import=%cd% $ cd ../.. $ mkdir testdfl $ cd testdfl Copy this example to a test.d file: http://wiki.dprogramming.com/Dfl/Tutorial2 And then run: $ dmd test.d -I%dfl_import% %dfl_lib% $ test.exe Ultimately you would use the dfl_import and dfl_lib variables in a build script of some sort, maybe a batch file. E.g. if you've cloned the DFL repository to C:\git\dfl you could use this build.bat batch file: echo off setlocal EnableDelayedExpansion set "DFL_LIB=C:\git\dfl\win32\dfl\dfl.lib" set "DFL_IMPORT=C:\git\dfl\win32" dmd -I%DFL_IMPORT% %DFL_LIB% test.d and this would build test.d to test.exe.
Apr 11 2012
parent reply "vmars316" <vmars316 live.com> writes:
On Wednesday, 11 April 2012 at 18:39:40 UTC, Andrej Mitrovic 
wrote:
 On 4/11/12, vmars316 <vmars316 live.com> wrote:
 Didn't you get this message:
Andrej, Yes, I got it. But lost track of it, sorry. Anyways, yahoo, I am almost there. I now have a dfl.lib . I ran following (~myForm-compile-2.bat) : echo Compile myForm.d setlocal EnableDelayedExpansion set "DFL_LIB=C:\D\dmd2\windows\Dfl\import\dfl\win32\dfl\dfl.lib" set "DFL_IMPORT=C:\D\dmd2\windows\Dfl\import\dfl\win32\" dmd -I %DFL_IMPORT% %DFL_LIB% myForm.d And these are the results: C:\D\dmd2\windows\Entice\vmPrograms\myForm>echo Compile myForm.d Compile myForm.d C:\D\dmd2\windows\Entice\vmPrograms\myForm>setlocal EnableDelayedExpansion C:\D\dmd2\windows\Entice\vmPrograms\myForm>set "DFL_LIB=C:\D\dmd2\windows\Dfl\import\dfl\win32\dfl\dfl.lib" C:\D\dmd2\windows\Entice\vmPrograms\myForm>set "DFL_IMPORT=C:\D\dmd2\windows\Dfl\import\dfl\win32\" C:\D\dmd2\windows\Entice\vmPrograms\myForm>dmd -I C:\D\dmd2\windows\Dfl\import\dfl\win32\ C:\D\dmd2\windows\Dfl\import\dfl\win32\dfl\dfl.lib myForm.d Error: invalid file name 'C:\D\dmd2\windows\Dfl\import\dfl\win32\' What is looking for? *import* something? Thanks...vm
Apr 11 2012
parent reply Andrej Mitrovic <andrej.mitrovich gmail.com> writes:
On 4/12/12, vmars316 <vmars316 live.com> wrote:
 What is looking for?  *import* something?
Remove the space between '-I' and the import path.
Apr 11 2012
parent "vmars316" <vmars316 live.com> writes:
On Thursday, 12 April 2012 at 05:18:22 UTC, Andrej Mitrovic wrote:
 On 4/12/12, vmars316 <vmars316 live.com> wrote:
 What is looking for?  *import* something?
Remove the space between '-I' and the import path.
Ah, Thank you very much, works perfectly. Ok, so that's Dmd with Dfl. The myForm.exe is 743K large. That doesn't seem right. Now, I would like to compile/run the myForm.d program with Dmd, Entice, and Dfl . My Run-Entice-myForm.bat file looks like this: pause START of Run-Entice-myForm.bat setlocal EnableDelayedExpansion set "DFL_LIB=C:\D\dmd2\windows\Dfl\import\dfl\win32\dfl\dfl.lib" set "DFL_IMPORT=C:\D\dmd2\windows\Dfl\import\dfl\win32\" Entice.exe C:\D\dmd2\windows\Entice\vmPrograms\myForm\myForm.d -I%DFL_IMPORT% %DFL_LIB% If i have a -gui switch in there, i get an "Unrecognized Switch -gui" error. How can I get Entice to show GUI mode? Also, Entice reads in the entire dfl.lib into a separate Tab. Is that normal? I need some help with the "Compile Command" that Entice asks for. Nothng I try works. Thanks..vm
Apr 12 2012