www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Direlect3 with Mono-D

reply "Dementor561" <dementor561 gmail.com> writes:
I have all the needed files to use Direlect3, and I have Mono-D 
installed on Xamarin, I was wondering how I could put it all 
together in a project.
Apr 20 2013
next sibling parent reply "Dementor561" <dementor561 gmail.com> writes:
No responses? Should I post this somewhere else?
Apr 20 2013
parent =?UTF-8?B?TWFydGluIERyYcWhYXI=?= <drasar ics.muni.cz> writes:
Dne 20.4.2013 20:45, Dementor561 napsal(a):
 No responses? Should I post this somewhere else?
Hi, this is the correct forum. However, you may have to wait a while. It is Saturday and the group of people who use Derelict with Mono-D is probably only a small subset of participants in this forum (I am not one of them). In a nutshell - be patient. Regards, Martin
Apr 20 2013
prev sibling next sibling parent reply "Roderick Gibson" <kniteli gmail.com> writes:
On Saturday, 20 April 2013 at 15:49:47 UTC, Dementor561 wrote:
 I have all the needed files to use Direlect3, and I have Mono-D 
 installed on Xamarin, I was wondering how I could put it all 
 together in a project.
If you want to develop for derelict, I have no idea. If you just want to use it, then I can help. The first step is to build it. Derelict3 makes it pretty easy, just build the build.d file and run the batch file. Here's a guide with pictures after you have built it. http://imgur.com/a/chV8W
Apr 20 2013
parent reply "Dementor561" <dementor561 gmail.com> writes:
On Saturday, 20 April 2013 at 22:25:42 UTC, Roderick Gibson wrote:
 On Saturday, 20 April 2013 at 15:49:47 UTC, Dementor561 wrote:
 I have all the needed files to use Direlect3, and I have 
 Mono-D installed on Xamarin, I was wondering how I could put 
 it all together in a project.
If you want to develop for derelict, I have no idea. If you just want to use it, then I can help. The first step is to build it. Derelict3 makes it pretty easy, just build the build.d file and run the batch file. Here's a guide with pictures after you have built it. http://imgur.com/a/chV8W
I have it all built, but I still get an error after I followed the instructions... http://imgur.com/a/eBDbE
Apr 21 2013
next sibling parent "Roderick Gibson" <kniteli gmail.com> writes:
On Sunday, 21 April 2013 at 15:21:00 UTC, Dementor561 wrote:
 On Saturday, 20 April 2013 at 22:25:42 UTC, Roderick Gibson 
 wrote:
 On Saturday, 20 April 2013 at 15:49:47 UTC, Dementor561 wrote:
 I have all the needed files to use Direlect3, and I have 
 Mono-D installed on Xamarin, I was wondering how I could put 
 it all together in a project.
If you want to develop for derelict, I have no idea. If you just want to use it, then I can help. The first step is to build it. Derelict3 makes it pretty easy, just build the build.d file and run the batch file. Here's a guide with pictures after you have built it. http://imgur.com/a/chV8W
I have it all built, but I still get an error after I followed the instructions... http://imgur.com/a/eBDbE
Doesn't look like a derelict3 error. Did you follow the steps at the end of installing Mono-D here: http://mono-d.alexanderbothe.com/?page_id=9 Near the bottom you have to set up includes for phobos and the druntime
Apr 21 2013
prev sibling parent reply "Roderick Gibson" <kniteli gmail.com> writes:
On Sunday, 21 April 2013 at 15:21:00 UTC, Dementor561 wrote:
 On Saturday, 20 April 2013 at 22:25:42 UTC, Roderick Gibson 
 wrote:
 On Saturday, 20 April 2013 at 15:49:47 UTC, Dementor561 wrote:
 I have all the needed files to use Direlect3, and I have 
 Mono-D installed on Xamarin, I was wondering how I could put 
 it all together in a project.
If you want to develop for derelict, I have no idea. If you just want to use it, then I can help. The first step is to build it. Derelict3 makes it pretty easy, just build the build.d file and run the batch file. Here's a guide with pictures after you have built it. http://imgur.com/a/chV8W
I have it all built, but I still get an error after I followed the instructions... http://imgur.com/a/eBDbE
Oh, you need a main function. Every program needs one, just like C/C++. It's where your program starts. void main() { }
Apr 21 2013
parent reply "Dementor561" <dementor561 gmail.com> writes:
On Sunday, 21 April 2013 at 18:13:38 UTC, Roderick Gibson wrote:
 On Sunday, 21 April 2013 at 15:21:00 UTC, Dementor561 wrote:
 On Saturday, 20 April 2013 at 22:25:42 UTC, Roderick Gibson 
 wrote:
 On Saturday, 20 April 2013 at 15:49:47 UTC, Dementor561 wrote:
 I have all the needed files to use Direlect3, and I have 
 Mono-D installed on Xamarin, I was wondering how I could put 
 it all together in a project.
If you want to develop for derelict, I have no idea. If you just want to use it, then I can help. The first step is to build it. Derelict3 makes it pretty easy, just build the build.d file and run the batch file. Here's a guide with pictures after you have built it. http://imgur.com/a/chV8W
I have it all built, but I still get an error after I followed the instructions... http://imgur.com/a/eBDbE
Oh, you need a main function. Every program needs one, just like C/C++. It's where your program starts. void main() { }
Thanks! It is all fixed now!
Apr 21 2013
parent reply "Dementor561" <dementor561 gmail.com> writes:
Well, sorta. When I add import derelict.glfw3.glfw3; it says the 
library could not be resolved... Do I need to add something to 
the library somewhere?
Apr 21 2013
parent reply "Roderick Gibson" <kniteli gmail.com> writes:
On Sunday, 21 April 2013 at 19:49:14 UTC, Dementor561 wrote:
 Well, sorta. When I add import derelict.glfw3.glfw3; it says 
 the library could not be resolved... Do I need to add something 
 to the library somewhere?
Any library you use you have to add to the project linker settings. Derelict3 separates them into separate libraries so you aren't forced to include the entire thing if you don't need some pieces. Here's the include for glfw: http://imgur.com/xv4jesK
Apr 21 2013
parent reply "Dementor561" <dementor561 gmail.com> writes:
On Monday, 22 April 2013 at 04:25:59 UTC, Roderick Gibson wrote:
 On Sunday, 21 April 2013 at 19:49:14 UTC, Dementor561 wrote:
 Well, sorta. When I add import derelict.glfw3.glfw3; it says 
 the library could not be resolved... Do I need to add 
 something to the library somewhere?
Any library you use you have to add to the project linker settings. Derelict3 separates them into separate libraries so you aren't forced to include the entire thing if you don't need some pieces. Here's the include for glfw: http://imgur.com/xv4jesK
Thanks!
Apr 22 2013
parent reply "Dementor561" <dementor561 gmail.com> writes:
On a side note, I have found a tutorial for Opengl... but it is 
very confusing and  is specifically for C++, does anyone know of 
better tutorials? Especially for D?
Apr 22 2013
parent reply "Minas Mina" <minas_mina1990 hotmail.co.uk> writes:
If you aren't comfortable with either C++ or D I would suggest to 
do the tutorials with C++, as there are no OpenGL tutorials for 
D. Don't try to learn two things at the same time.
Apr 22 2013
parent reply "Dementor561" <dementor561 gmail.com> writes:
On Monday, 22 April 2013 at 20:47:32 UTC, Minas Mina wrote:
 If you aren't comfortable with either C++ or D I would suggest 
 to do the tutorials with C++, as there are no OpenGL tutorials 
 for D. Don't try to learn two things at the same time.
No, I am comfortable with C++, I learned it in College. It is just that a lot of the names between the two different contexts confuse me. For example, I am looking to find the equivalent in Derelict3 for GLFW_FSAA_SAMPLES, but I can not find it anywhere.
Apr 22 2013
parent reply "Roderick Gibson" <kniteli gmail.com> writes:
On Monday, 22 April 2013 at 20:57:56 UTC, Dementor561 wrote:
 On Monday, 22 April 2013 at 20:47:32 UTC, Minas Mina wrote:
 If you aren't comfortable with either C++ or D I would suggest 
 to do the tutorials with C++, as there are no OpenGL tutorials 
 for D. Don't try to learn two things at the same time.
No, I am comfortable with C++, I learned it in College. It is just that a lot of the names between the two different contexts confuse me. For example, I am looking to find the equivalent in Derelict3 for GLFW_FSAA_SAMPLES, but I can not find it anywhere.
I don't know anything about glfw as I use the SDL bindings, but my experience with the SDL stuff is that it is identical to c/c++. I can very easily use c/c++ opengl and sdl source and tutorials to translate it into D. There are some gotchas, mostly with using references and pointers, but nothing terribly hard to figure out.
Apr 22 2013
parent "Dementor561" <dementor561 gmail.com> writes:
Today I found out I just wasnt using the correct DLLs.
Apr 25 2013
prev sibling parent "Minas Mina" <minas_mina1990 hotmail.co.uk> writes:
On Saturday, 20 April 2013 at 15:49:47 UTC, Dementor561 wrote:
 I have all the needed files to use Direlect3, and I have Mono-D 
 installed on Xamarin, I was wondering how I could put it all 
 together in a project.
1) Do you use windows or linux? 2) Have you built derelict3? 3) If you are using linux, have you moved the .d files to /usr/include and the .lib files to /usr/lib ?
Apr 21 2013