View previous topic :: View next topic |
Author |
Message |
zane.sims
Joined: 07 Aug 2007 Posts: 40
|
Posted: Wed Jan 28, 2009 10:30 am Post subject: DSSS with DFL |
|
|
Hello,
Is there a way to use DFL with DSSS? I don't know how to install/configure DFL with DSSS if there is. Can someone shed some light on this for me?
Thanks much!
Zane _________________ わたしがプログラマだよ! |
|
Back to top |
|
|
HeiHon
Joined: 09 Aug 2008 Posts: 10
|
Posted: Thu Jan 29, 2009 4:08 am Post subject: |
|
|
Yes, there is.
I use dsss (0.7 for all my dfl (0.9 + tango (0.99.7) code.
Code: |
// To compile:
// dfl helloworld -gui
// or using dsss e.g.
// dsss build -release -O -L/exet:nt/su:windows:5.0 helloworld.d
module helloworld;
import dfl.all;
int main()
{
Form myForm;
Label myLabel;
myForm = new Form;
version (Tango)
{
myForm.text = "DFL Example (Tango)";
}
else
{
myForm.text = "DFL Example";
}
myLabel = new Label;
myLabel.text = "Hello, World";
myLabel.size = Size(100, 14);
myLabel.parent = myForm;
Application.run(myForm);
return 0;
}
|
|
|
Back to top |
|
|
zane.sims
Joined: 07 Aug 2007 Posts: 40
|
Posted: Mon Feb 02, 2009 5:11 pm Post subject: |
|
|
Sorry I took so long to respond. I have been pre-occupied with some other issues.
Thanks for your quick reply to my question and please excuse my ignorance, as I still seem to be confused. I understand how the command would be run to compile the program example that you gave, however, I need to know how to install DFL so that DSSS can find and use the files it needs.
Up until now, I have been using "dsss net install xyz" to install my libraries. How then do I install DFL so that DSSS can use it properly?
Thanks again _________________ わたしがプログラマだよ! |
|
Back to top |
|
|
gekkonier
Joined: 27 Mar 2007 Posts: 28
|
Posted: Tue Feb 03, 2009 1:17 am Post subject: |
|
|
Installation of DFL via DSSS is not available.
Install DFL "the manual" way and use dfl to compile the applications.
The other way would be using dmd and compile with the lib added.
If you just want to use dsss for absolutely everything you can make a dsss.conf in the project folder with the correct compile command that fits for you. I recommend using the dfl command, its the easiest way.
"The manual" way is simple.
Download DFL 0.9.8 zip archive from http://www.dprogramming.com/dfl.php
For Phobos:
just extract the zip and copy the whole dir/file structure into the dmd directory, then do dfl -dfl-build to create the lib. Then you can just use dfl to create the binaries of your dfl applications.
For Tango:
just extract the zip and copy the whole dir/file structure into the dmd directory, then do dfl -dfl-build to create the lib. Could be, that there comes a blabla.lib is missing in the directorys... just copy the lib from dm\bin to dmd\bin and run the command again. Repeat until the libs (for debug and release) are created, then youre done and can use dfl as compile command. I have testet this with:
current release as a zip (including DMD 1.033)
from http://www.dsource.org/projects/tango/wiki/DmdDownloads
Mybe it could be easier, but it works for me. |
|
Back to top |
|
|
|