February 22, 2015
On Sunday, 22 February 2015 at 20:42:20 UTC, Gan wrote:
> On Sunday, 22 February 2015 at 09:30:10 UTC, Namespace wrote:
>> On Sunday, 22 February 2015 at 09:05:16 UTC, Mike Parker wrote:
>>> On 2/22/2015 2:43 PM, Gan wrote:
>>>
>>>>
>>>>
>>>>
>>>> dub.json:
>>>> {
>>>>   "name": "game",
>>>>   "description": "game",
>>>>   "dependencies":
>>>>   {
>>>>       "dgame": "~master"
>>>>   }
>>>> }
>>>
>>> First, you need to change your dependency to something like this:
>>>
>>> "dependencies":
>>> >    {
>>> >        "dgame": "~>0.4.0"
>>> >    }
>>>
>>> Or you can use ==0.4.0, or >=0.4.0. Just don't use branch-based dependencies anymore (like ~master) as those are deprecated.
>>>
>>> Second, there's a bug in Dgame's dub.json, which is causing compilation to error out. I'll post a PR for it.
>>
>> I have the PR merged, the problem should be fixed now. Thanks to you and growlercab.
>
> Now it builds though crashes on run with this error:
>
> init openAL
> derelict.util.exception.SharedLibLoadException@../../.dub/packages/derelict-util-1.9.1/source/derelict/util/exception.d(35): Failed to load one or more shared libraries:
> 	libogg.dylib - dlopen(libogg.dylib, 2): image not found
> 	libogg.0.dylib - dlopen(libogg.0.dylib, 2): image not found
> Error executing command run: Program exited with code 1
>
>
> Press any key to continue...

I think you need to install the ogg libraries. Derelict, which Dgame uses, only provides bindings to the C/C++ libraries. You still need to get the those libraries for things to work.

Sorry I cannot help more. On linux it's just a matter of using the pkg manager (apt, pacman, yum etc.) On MAC I have not idea.


I can confirm Dgame 0.4.1 is now working on Linux (Debian x86_64) after I did a dub upgrade.

Thanks,
amber

February 22, 2015
> I think you need to install the ogg libraries. Derelict, which Dgame uses, only provides bindings to the C/C++ libraries. You still need to get the those libraries for things to work.
>
> Sorry I cannot help more. On linux it's just a matter of using the pkg manager (apt, pacman, yum etc.) On MAC I have not idea.
>
>
> I can confirm Dgame 0.4.1 is now working on Linux (Debian x86_64) after I did a dub upgrade.
>
> Thanks,
> amber

That is nice to hear. It works for me on Windows 8.1. Someone with a Mac here?
February 22, 2015
> Now it builds though crashes on run with this error:
>
> init openAL
> derelict.util.exception.SharedLibLoadException@../../.dub/packages/derelict-util-1.9.1/source/derelict/util/exception.d(35): Failed to load one or more shared libraries:
> 	libogg.dylib - dlopen(libogg.dylib, 2): image not found
> 	libogg.0.dylib - dlopen(libogg.0.dylib, 2): image not found
> Error executing command run: Program exited with code 1
>
>
> Press any key to continue...

That sounds strange. Have you already tried to update the libraries?
BTW: The domain is back in action: http://dgame-dev.de/
But I still need to update the installations chapter.
February 22, 2015
On Sunday, 22 February 2015 at 21:34:03 UTC, Foo wrote:
>> I think you need to install the ogg libraries. Derelict, which Dgame uses, only provides bindings to the C/C++ libraries. You still need to get the those libraries for things to work.
>>
>> Sorry I cannot help more. On linux it's just a matter of using the pkg manager (apt, pacman, yum etc.) On MAC I have not idea.
>>
>>
>> I can confirm Dgame 0.4.1 is now working on Linux (Debian x86_64) after I did a dub upgrade.
>>
>> Thanks,
>> amber
>
> That is nice to hear. It works for me on Windows 8.1. Someone with a Mac here?

I'll try tomorrow if no-one else has.
February 22, 2015
On Sunday, 22 February 2015 at 21:58:13 UTC, John Colvin wrote:
> On Sunday, 22 February 2015 at 21:34:03 UTC, Foo wrote:
>>> I think you need to install the ogg libraries. Derelict, which Dgame uses, only provides bindings to the C/C++ libraries. You still need to get the those libraries for things to work.
>>>
>>> Sorry I cannot help more. On linux it's just a matter of using the pkg manager (apt, pacman, yum etc.) On MAC I have not idea.
>>>
>>>
>>> I can confirm Dgame 0.4.1 is now working on Linux (Debian x86_64) after I did a dub upgrade.
>>>
>>> Thanks,
>>> amber
>>
>> That is nice to hear. It works for me on Windows 8.1. Someone with a Mac here?
>
> I'll try tomorrow if no-one else has.

I have a Mac. OS Yosemite 10.10. Macbook Pro 2011. Intel HD 3000, 16gb of ram, i5 CPU.

When I run one of your Dgame tutorials I get this error:
Derelict loaded GL version: GL21 (GL21), available GL version: 2.1 INTEL-10.0.22
object.Exception@../.dub/packages/dgame-0.4.1/Window/Window.d(144): Your OpenGL version (21) is too low. Need at least GL 3.0.
February 22, 2015
On Sunday, 22 February 2015 at 22:24:59 UTC, Gan wrote:
> On Sunday, 22 February 2015 at 21:58:13 UTC, John Colvin wrote:
>> On Sunday, 22 February 2015 at 21:34:03 UTC, Foo wrote:
>>>> I think you need to install the ogg libraries. Derelict, which Dgame uses, only provides bindings to the C/C++ libraries. You still need to get the those libraries for things to work.
>>>>
>>>> Sorry I cannot help more. On linux it's just a matter of using the pkg manager (apt, pacman, yum etc.) On MAC I have not idea.
>>>>
>>>>
>>>> I can confirm Dgame 0.4.1 is now working on Linux (Debian x86_64) after I did a dub upgrade.
>>>>
>>>> Thanks,
>>>> amber
>>>
>>> That is nice to hear. It works for me on Windows 8.1. Someone with a Mac here?
>>
>> I'll try tomorrow if no-one else has.
>
> I have a Mac. OS Yosemite 10.10. Macbook Pro 2011. Intel HD 3000, 16gb of ram, i5 CPU.
>
> When I run one of your Dgame tutorials I get this error:
> Derelict loaded GL version: GL21 (GL21), available GL version: 2.1 INTEL-10.0.22
> object.Exception@../.dub/packages/dgame-0.4.1/Window/Window.d(144): Your OpenGL version (21) is too low. Need at least GL 3.0.

That is strange. Every PC should be be capable to launch at least OpenGL 3.0. Did you try to update your graphic driver?
February 22, 2015
On Sunday, 22 February 2015 at 22:29:53 UTC, Namespace wrote:
> On Sunday, 22 February 2015 at 22:24:59 UTC, Gan wrote:
>> On Sunday, 22 February 2015 at 21:58:13 UTC, John Colvin wrote:
>>> On Sunday, 22 February 2015 at 21:34:03 UTC, Foo wrote:
>>>>> I think you need to install the ogg libraries. Derelict, which Dgame uses, only provides bindings to the C/C++ libraries. You still need to get the those libraries for things to work.
>>>>>
>>>>> Sorry I cannot help more. On linux it's just a matter of using the pkg manager (apt, pacman, yum etc.) On MAC I have not idea.
>>>>>
>>>>>
>>>>> I can confirm Dgame 0.4.1 is now working on Linux (Debian x86_64) after I did a dub upgrade.
>>>>>
>>>>> Thanks,
>>>>> amber
>>>>
>>>> That is nice to hear. It works for me on Windows 8.1. Someone with a Mac here?
>>>
>>> I'll try tomorrow if no-one else has.
>>
>> I have a Mac. OS Yosemite 10.10. Macbook Pro 2011. Intel HD 3000, 16gb of ram, i5 CPU.
>>
>> When I run one of your Dgame tutorials I get this error:
>> Derelict loaded GL version: GL21 (GL21), available GL version: 2.1 INTEL-10.0.22
>> object.Exception@../.dub/packages/dgame-0.4.1/Window/Window.d(144): Your OpenGL version (21) is too low. Need at least GL 3.0.
>
> That is strange. Every PC should be be capable to launch at least OpenGL 3.0. Did you try to update your graphic driver?

You can't really upgrade your graphics driver on a mac.
February 22, 2015
On Sunday, 22 February 2015 at 22:32:44 UTC, Gan wrote:
> On Sunday, 22 February 2015 at 22:29:53 UTC, Namespace wrote:
>> On Sunday, 22 February 2015 at 22:24:59 UTC, Gan wrote:
>>> On Sunday, 22 February 2015 at 21:58:13 UTC, John Colvin wrote:
>>>> On Sunday, 22 February 2015 at 21:34:03 UTC, Foo wrote:
>>>>>> I think you need to install the ogg libraries. Derelict, which Dgame uses, only provides bindings to the C/C++ libraries. You still need to get the those libraries for things to work.
>>>>>>
>>>>>> Sorry I cannot help more. On linux it's just a matter of using the pkg manager (apt, pacman, yum etc.) On MAC I have not idea.
>>>>>>
>>>>>>
>>>>>> I can confirm Dgame 0.4.1 is now working on Linux (Debian x86_64) after I did a dub upgrade.
>>>>>>
>>>>>> Thanks,
>>>>>> amber
>>>>>
>>>>> That is nice to hear. It works for me on Windows 8.1. Someone with a Mac here?
>>>>
>>>> I'll try tomorrow if no-one else has.
>>>
>>> I have a Mac. OS Yosemite 10.10. Macbook Pro 2011. Intel HD 3000, 16gb of ram, i5 CPU.
>>>
>>> When I run one of your Dgame tutorials I get this error:
>>> Derelict loaded GL version: GL21 (GL21), available GL version: 2.1 INTEL-10.0.22
>>> object.Exception@../.dub/packages/dgame-0.4.1/Window/Window.d(144): Your OpenGL version (21) is too low. Need at least GL 3.0.
>>
>> That is strange. Every PC should be be capable to launch at least OpenGL 3.0. Did you try to update your graphic driver?
>
> You can't really upgrade your graphics driver on a mac.

Stackoverflow says it is possible. One guy's fix was something like:
glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE);

Cause apparently it supports it.
February 22, 2015
On Sunday, 22 February 2015 at 22:32:44 UTC, Gan wrote:
> On Sunday, 22 February 2015 at 22:29:53 UTC, Namespace wrote:
>> On Sunday, 22 February 2015 at 22:24:59 UTC, Gan wrote:
>>> On Sunday, 22 February 2015 at 21:58:13 UTC, John Colvin wrote:
>>>> On Sunday, 22 February 2015 at 21:34:03 UTC, Foo wrote:
>>>>>> I think you need to install the ogg libraries. Derelict, which Dgame uses, only provides bindings to the C/C++ libraries. You still need to get the those libraries for things to work.
>>>>>>
>>>>>> Sorry I cannot help more. On linux it's just a matter of using the pkg manager (apt, pacman, yum etc.) On MAC I have not idea.
>>>>>>
>>>>>>
>>>>>> I can confirm Dgame 0.4.1 is now working on Linux (Debian x86_64) after I did a dub upgrade.
>>>>>>
>>>>>> Thanks,
>>>>>> amber
>>>>>
>>>>> That is nice to hear. It works for me on Windows 8.1. Someone with a Mac here?
>>>>
>>>> I'll try tomorrow if no-one else has.
>>>
>>> I have a Mac. OS Yosemite 10.10. Macbook Pro 2011. Intel HD 3000, 16gb of ram, i5 CPU.
>>>
>>> When I run one of your Dgame tutorials I get this error:
>>> Derelict loaded GL version: GL21 (GL21), available GL version: 2.1 INTEL-10.0.22
>>> object.Exception@../.dub/packages/dgame-0.4.1/Window/Window.d(144): Your OpenGL version (21) is too low. Need at least GL 3.0.
>>
>> That is strange. Every PC should be be capable to launch at least OpenGL 3.0. Did you try to update your graphic driver?
>
> You can't really upgrade your graphics driver on a mac.

This sounds similar: http://stackoverflow.com/questions/5294295/how-to-do-opengl-3-programming-on-os-x-with-a-geforce-9400
I'm sorry, in my next upgrade I will use GLEW, that should solve the problem. Maybe I can start the upgrade before end of march.
February 22, 2015
> Stackoverflow says it is possible. One guy's fix was something like:
> glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 3);
> glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
> glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
> glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE);
>
> Cause apparently it supports it.

Ok, you could try to use something identical in the Window constructor: https://github.com/Dgame/Dgame/blob/master/Window/Window.d#L124

----
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 0);
----