December 23, 2013
On Monday, 23 December 2013 at 10:08:09 UTC, Alexandr Druzhinin wrote:
> Show your package.json file and the project structure.

https://www.dropbox.com/s/l3wwm84w85h5su2/dlang-gtk1.png
https://www.dropbox.com/s/9vs4r9l3lvdw2y1/dlang-gtk2.png
December 23, 2013
23.12.2013 19:19, DLang Beginner пишет:
> On Monday, 23 December 2013 at 10:08:09 UTC, Alexandr Druzhinin wrote:
>> Show your package.json file and the project structure.
>
> https://www.dropbox.com/s/l3wwm84w85h5su2/dlang-gtk1.png
> https://www.dropbox.com/s/9vs4r9l3lvdw2y1/dlang-gtk2.png
You shouldn't create your app inside gtkd structure. Try the following:
cd
mkdir test
cd test
dub init
copy ~/Desktop/gtkd/source/app.d ./source/
copy ~/Desktop/gtkd/package.json .
dub

and show what will happen
December 23, 2013
On Monday, 23 December 2013 at 13:50:29 UTC, Alexandr Druzhinin wrote:
> 23.12.2013 19:19, DLang Beginner пишет:
>> On Monday, 23 December 2013 at 10:08:09 UTC, Alexandr Druzhinin wrote:
>>> Show your package.json file and the project structure.
>>
>> https://www.dropbox.com/s/l3wwm84w85h5su2/dlang-gtk1.png
>> https://www.dropbox.com/s/9vs4r9l3lvdw2y1/dlang-gtk2.png
> You shouldn't create your app inside gtkd structure. Try the following:
> cd
> mkdir test
> cd test
> dub init
> copy ~/Desktop/gtkd/source/app.d ./source/
> copy ~/Desktop/gtkd/package.json .
> dub
>
> and show what will happen

Yeah, that worked! Application successfully compiled. But when I try start it, I'm getting another error because I don't have libgdkglext-3.0 library.

object.Exception@../../.dub/packages/gtk-d-master/src/gtkc/Loader.d(127): Library load failed: libgdkglext-3.0.so.0
December 23, 2013
23.12.2013 22:52, DLang Beginner пишет:
> On Monday, 23 December 2013 at 13:50:29 UTC, Alexandr Druzhinin wrote:
>> You shouldn't create your app inside gtkd structure. Try the following:
>> cd
>> mkdir test
>> cd test
>> dub init
>> copy ~/Desktop/gtkd/source/app.d ./source/
>> copy ~/Desktop/gtkd/package.json .
>> dub
>>
>> and show what will happen
>
> Yeah, that worked! Application successfully compiled. But when I try
> start it, I'm getting another error because I don't have libgdkglext-3.0
> library.
>
> object.Exception@../../.dub/packages/gtk-d-master/src/gtkc/Loader.d(127): Library
> load failed: libgdkglext-3.0.so.0
Either build this libraries like me or try to change dependency in package.json:
	"gtk-d": "~master" => "gtk-d:gtkd": "~master"
You get error because your app try to use opengl extention for gtk, but this extension isn't provided by default for gtk3. I solved this problem for me, but I spent much time and frankly can't remember my steps. But if you don't need opengl you can use only subpackage of gtkd as I write above.
December 23, 2013
On Monday, 23 December 2013 at 16:20:24 UTC, Alexandr Druzhinin wrote:
> 23.12.2013 22:52, DLang Beginner пишет:
>> On Monday, 23 December 2013 at 13:50:29 UTC, Alexandr Druzhinin wrote:
>>> You shouldn't create your app inside gtkd structure. Try the following:
>>> cd
>>> mkdir test
>>> cd test
>>> dub init
>>> copy ~/Desktop/gtkd/source/app.d ./source/
>>> copy ~/Desktop/gtkd/package.json .
>>> dub
>>>
>>> and show what will happen
>>
>> Yeah, that worked! Application successfully compiled. But when I try
>> start it, I'm getting another error because I don't have libgdkglext-3.0
>> library.
>>
>> object.Exception@../../.dub/packages/gtk-d-master/src/gtkc/Loader.d(127): Library
>> load failed: libgdkglext-3.0.so.0
> Either build this libraries like me or try to change dependency in package.json:
> 	"gtk-d": "~master" => "gtk-d:gtkd": "~master"
> You get error because your app try to use opengl extention for gtk, but this extension isn't provided by default for gtk3. I solved this problem for me, but I spent much time and frankly can't remember my steps. But if you don't need opengl you can use only subpackage of gtkd as I write above.

OH YES! No, I don't need OpenGL, so I changed dependency and it works fine! Thank you so much!

I <3 D and it's community. :)
December 23, 2013
23.12.2013 23:50, DLang Beginner пишет:
> On Monday, 23 December 2013 at 16:20:24 UTC, Alexandr Druzhinin wrote:
>> 23.12.2013 22:52, DLang Beginner пишет:
>> Either build this libraries like me or try to change dependency in
>> package.json:
>>     "gtk-d": "~master" => "gtk-d:gtkd": "~master"
>> You get error because your app try to use opengl extention for gtk,
>> but this extension isn't provided by default for gtk3. I solved this
>> problem for me, but I spent much time and frankly can't remember my
>> steps. But if you don't need opengl you can use only subpackage of
>> gtkd as I write above.
>
> OH YES! No, I don't need OpenGL, so I changed dependency and it works
> fine! Thank you so much!
>
> I <3 D and it's community. :)
You're welcome!
1 2
Next ›   Last »