www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - Guigle openGL GUI on GIT

reply "Stephen Jones" <siwenjo gmail.com> writes:
https://github.com/Ste3e/Guigle/ is the link. The wiki has been 
written. If it is not viewable it will be that I have done 
something wrong, or have not done something I should with GIT... 
it is new to me.

I was thinking there may be a problem getting Guigle running on 
Linux and Mac insofar as I use pragma(lib, ...) to load the 
native Window .dll and there is no compatible code for Linux/Mac. 
But if you already know the code then it is simply a matter of 
adding it to the Form.d file where the pragmas are.

There is a general problem to do with the dlls themselves. While 
Derelict3 compiles its own .lib files they still require native 
.dll files on the path. For openGL it is not an issue but for 
SDL2, SDL2_Image and SDL_ttf there is a problem. Does anyone know 
either a repository with viable dll (and whatever linux/Mac 
require), or a clear explanation of the process required to build 
your own from SDL2 source.
Apr 04 2013
next sibling parent "Mike Parker" <aldacron gmail.com> writes:
On Thursday, 4 April 2013 at 23:04:05 UTC, Stephen Jones wrote:
 There is a general problem to do with the dlls themselves. 
 While Derelict3 compiles its own .lib files they still require 
 native .dll files on the path. For openGL it is not an issue
This isn't a problem. It's the nature of shared libraries. It's possible in Derelict to specify a path directly, so that they don't need to be on the global path. When calling a load method, you can pass a relative or full path as an argument: DerelictSDL2.load("/libs/SDL2.dll")
 but for SDL2, SDL2_Image and SDL_ttf there is a problem. Does 
 anyone know either a repository with viable dll (and whatever 
 linux/Mac require), or a clear explanation of the process 
 required to build your own from SDL2 source.
Download the latest SDL2 snapshot from http://www.libsdl.org/hg.php SDL_image and SDL_ttf will need to be checked out from the mercurial repository. You'll need to use either Visual Studio or MinGW to compile. I generally use MinGW and MSYS. MSYS isn't strictly necessary, but it includes a number of unix tools that make life easier. SDL2 now supports CMake, so you can use that to generate a makefile. I generally use the configure script instead. SDL2 includes instructions for building, but it goes something like this: 1. Open MSYS and cd to the SDL2 directory. 2. mkdir build 3. cd build 4. ../configure 5. make Now you'll have an SDL2 dll. You can follow the same steps to build SDL_image and SDL_ttf.
Apr 04 2013
prev sibling next sibling parent reply "azertopia" <azertopia free.fr> writes:
On Thursday, 4 April 2013 at 23:04:05 UTC, Stephen Jones wrote:
 https://github.com/Ste3e/Guigle/ is the link. The wiki has been 
 written. If it is not viewable it will be that I have done 
 something wrong, or have not done something I should with 
 GIT... it is new to me.

 I was thinking there may be a problem getting Guigle running on 
 Linux and Mac insofar as I use pragma(lib, ...) to load the 
 native Window .dll and there is no compatible code for 
 Linux/Mac. But if you already know the code then it is simply a 
 matter of adding it to the Form.d file where the pragmas are.

 There is a general problem to do with the dlls themselves. 
 While Derelict3 compiles its own .lib files they still require 
 native .dll files on the path. For openGL it is not an issue 
 but for SDL2, SDL2_Image and SDL_ttf there is a problem. Does 
 anyone know either a repository with viable dll (and whatever 
 linux/Mac require), or a clear explanation of the process 
 required to build your own from SDL2 source.
This is a nice project but you need to consider how it's maintainable for someone who will use it. You can't built a house with doors and windows without the basis. (I've seen that there is a lot of UI element already)...
Apr 06 2013
parent "Stephen Jones" <siwenjo gmail.com> writes:
On Saturday, 6 April 2013 at 21:42:40 UTC, azertopia wrote:
 On Thursday, 4 April 2013 at 23:04:05 UTC, Stephen Jones wrote:
 https://github.com/Ste3e/Guigle/ is the link. The wiki has 
 been written. If it is not viewable it will be that I have 
 done something wrong, or have not done something I should with 
 GIT... it is new to me.

 I was thinking there may be a problem getting Guigle running 
 on Linux and Mac insofar as I use pragma(lib, ...) to load the 
 native Window .dll and there is no compatible code for 
 Linux/Mac. But if you already know the code then it is simply 
 a matter of adding it to the Form.d file where the pragmas are.

 There is a general problem to do with the dlls themselves. 
 While Derelict3 compiles its own .lib files they still require 
 native .dll files on the path. For openGL it is not an issue 
 but for SDL2, SDL2_Image and SDL_ttf there is a problem. Does 
 anyone know either a repository with viable dll (and whatever 
 linux/Mac require), or a clear explanation of the process 
 required to build your own from SDL2 source.
This is a nice project but you need to consider how it's maintainable for someone who will use it. You can't built a house with doors and windows without the basis. (I've seen that there is a lot of UI element already)...
I don't understand the comment, what basis do you mean? Do you mean where is the assurance that the programming interface will not change which would upset backward compatibility?
Apr 08 2013
prev sibling parent reply Alexandr Druzhinin <drug2004 bk.ru> writes:
05.04.2013 6:04, Stephen Jones пишет:
 https://github.com/Ste3e/Guigle/ is the link. The wiki has been written.
 If it is not viewable it will be that I have done something wrong, or
 have not done something I should with GIT... it is new to me.

 I was thinking there may be a problem getting Guigle running on Linux
 and Mac insofar as I use pragma(lib, ...) to load the native Window .dll
 and there is no compatible code for Linux/Mac. But if you already know
 the code then it is simply a matter of adding it to the Form.d file
 where the pragmas are.

 There is a general problem to do with the dlls themselves. While
 Derelict3 compiles its own .lib files they still require native .dll
 files on the path. For openGL it is not an issue but for SDL2,
 SDL2_Image and SDL_ttf there is a problem. Does anyone know either a
 repository with viable dll (and whatever linux/Mac require), or a clear
 explanation of the process required to build your own from SDL2 source.
your job is very useful, but building failed with the error: Guigle\FileSaver.d(144): Error: undefined identifier listDir the same error appear in every file using listDir symbol of course. How to fix that? And also I'm curious how is it hard to port Guigle from Derelict3 to the second one? I need to work with OpengGL 2.0.
Apr 21 2013
next sibling parent "evilrat" <evilrat666 gmail.com> writes:
On Monday, 22 April 2013 at 04:13:02 UTC, Alexandr Druzhinin 
wrote:
 your job is very useful, but building failed with the error:
 Guigle\FileSaver.d(144): Error: undefined identifier listDir
 the same error appear in every file using listDir symbol of 
 course. How to fix that?
 And also I'm curious how is it hard to port Guigle from 
 Derelict3 to the second one? I need to work with OpengGL 2.0.
have you looked at or ever tryed derelict3? it has all opengl 2(all up to the latest opengl version actually) declaration, that 3 in the name means it for D2, as far i remember derelict2 was initially for D1 or D2 tango+phobos , where derelict3 rewriten purely for D2/Phobos. please don't blame me if i'm wrong, really can't remember what it exactly is.
Apr 22 2013
prev sibling parent "Stephen Jones" <siwenjo gmail.com> writes:
On Monday, 22 April 2013 at 04:13:02 UTC, Alexandr Druzhinin 
wrote:
 05.04.2013 6:04, Stephen Jones пишет:
 https://github.com/Ste3e/Guigle/ is the link. The wiki has 
 been written.
 If it is not viewable it will be that I have done something 
 wrong, or
 have not done something I should with GIT... it is new to me.

 I was thinking there may be a problem getting Guigle running 
 on Linux
 and Mac insofar as I use pragma(lib, ...) to load the native 
 Window .dll
 and there is no compatible code for Linux/Mac. But if you 
 already know
 the code then it is simply a matter of adding it to the Form.d 
 file
 where the pragmas are.

 There is a general problem to do with the dlls themselves. 
 While
 Derelict3 compiles its own .lib files they still require 
 native .dll
 files on the path. For openGL it is not an issue but for SDL2,
 SDL2_Image and SDL_ttf there is a problem. Does anyone know 
 either a
 repository with viable dll (and whatever linux/Mac require), 
 or a clear
 explanation of the process required to build your own from 
 SDL2 source.
your job is very useful, but building failed with the error: Guigle\FileSaver.d(144): Error: undefined identifier listDir the same error appear in every file using listDir symbol of course. How to fix that? And also I'm curious how is it hard to port Guigle from Derelict3 to the second one? I need to work with OpengGL 2.0.
The listDir issue is due to deprecation between the DMD2 v2.058 that I used to build Guigle and v2.062 which is current; who would suspect deprecation would be enforced between major builds? I have downloaded the latest and am seeing what else fails. The Derelict version I have is Derelict3-13f24cc.
Apr 28 2013