April 14, 2015 Re: DlangUI | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vadim Lopatin | On Tuesday, 20 May 2014 at 18:13:36 UTC, Vadim Lopatin wrote: > Hello! > > I would like to announce my project, DlangUI library - cross-platform GUI for D. > https://github.com/buggins/dlangui > License: Boost License 1.0 I've added first DlangUI tutorial on DlangUI Wiki: https://github.com/buggins/dlangui/wiki/Getting-Started It covers creation of simple DlangUI helloworld project, and then illustrates layouts, standard controls, DML, and signals. Source code for all examples is available on GitHub https://github.com/buggins/dlangui-examples I'm looking forward for ideas for next tutorials. |
April 15, 2015 Re: DlangUI | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vadim Lopatin | Great work!! On windows works fine. On debian: $ dub run dlangui:example1 Building package dlangui:example1 in /home/igor/devel/dlang/dlangui/dlangui/examples/example1/ Target gl3n 1.0.1 is up to date. Use --force to rebuild. Target dlib ~master is up to date. Use --force to rebuild. Target derelict-util 1.9.1 is up to date. Use --force to rebuild. Target derelict-ft 1.0.2 is up to date. Use --force to rebuild. Target derelict-sdl2 1.9.5 is up to date. Use --force to rebuild. Target derelict-gl3 1.0.12 is up to date. Use --force to rebuild. Target dlangui 0.6.20 is up to date. Use --force to rebuild. Building dlangui:example1 0.6.20 configuration "application", build type debug. Compiling using dmd... Linking... Running ./examples/example1/bin/example1 2015-04-15 11:20:21.323 E Derelict: cannot load freetype shared library: Failed to load symbol FT_Gzip_Uncompress from shared library libfreetype.so.6 object.Exception@src/dlangui/graphics/ftfonts.d(519): Cannot load freetype library ---------------- ./examples/example1/bin/example1(bool dlangui.platforms.common.platform.initFontManager()+0x23) [0x73871f] ./examples/example1/bin/example1(int dlangui.platforms.sdl.sdlapp.sdlmain(immutable(char)[][])+0x23) [0x69ae37] ./examples/example1/bin/example1(DLANGUImain+0x25) [0x69ae11] ./examples/example1/bin/example1(_Dmain+0x20) [0x6307dc] ./examples/example1/bin/example1(_D2rt6dmain211_d_run_mainUiPPaPUAAaZiZ6runAllMFZ9__lambda1MFZv+0x1f) [0x78c393] ./examples/example1/bin/example1(void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).tryExec(scope void delegate())+0x2a) [0x78c2e6] ./examples/example1/bin/example1(void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).runAll()+0x30) [0x78c34c] ./examples/example1/bin/example1(void rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).tryExec(scope void delegate())+0x2a) [0x78c2e6] ./examples/example1/bin/example1(_d_run_main+0x193) [0x78c267] ./examples/example1/bin/example1(main+0x25) [0x66d6a9] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xfd) [0x7f8738aedead] 2015-04-15 11:20:21.328 D Destroying font manager Error executing command run: Program exited with code 1 Problem with freetype? or Derelict? What's wrong? google on FT_Gzip_Uncompress show smth about 2.5-2.6 of freetype. May be, this is just new function. In wheezy thereis 2.4 freetype. ( It's today fresh install (even dub) # dmd -v DMD64 D Compiler v2.066.1 # dpkg -l | grep freetype ii libfreetype6:amd64 2.4.9-1.1+deb7u1 amd64 FreeType 2 font engine, shared library files ii libfreetype6-dev 2.4.9-1.1+deb7u1 amd64 FreeType 2 font engine, development files # dpkg -l | grep freeimage ii libfreeimage3 3.15.1-1+b1 amd64 Support library for graphics image formats (library) # dpkg -l | grep opengl ii libqt4-opengl:amd64 4:4.8.2+dfsg-11 amd64 Qt 4 OpenGL module ii libqt4-opengl-dev 4:4.8.2+dfsg-11 amd64 Qt 4 OpenGL library development files ii libsmokeqtopengl4-3 4:4.8.4-1 amd64 Qt OpenGL SMOKE library # dpkg -l | grep libsdl ii libsdl-image1.2:amd64 1.2.12-2 amd64 Image loading library for Simple DirectMedia Layer 1.2, libraries ii libsdl1.2-dev 1.2.15-5 amd64 Simple DirectMedia Layer development files ii libsdl1.2debian:amd64 1.2.15-5 amd64 Simple DirectMedia Layer ii libsdl2-2.0-0:amd64 2.0.0+dfsg1-2~bpo70+1 amd64 Simple DirectMedia Layer ii libsdl2-dev 2.0.0+dfsg1-2~bpo70+1 amd64 Simple DirectMedia Layer development files Thanx one more time! |
April 15, 2015 Re: DlangUI | ||||
---|---|---|---|---|
| ||||
Posted in reply to igor_p | after upgrade apt-get install libfreetype6/jessie apt-get install libsdl2-dev/jessie (this couldn't find Failed to load symbol SDL_GetDefaultAssertionHandler from shared library libSDL2.so) Now: Running ./examples/helloworld/bin/helloworld 2015-04-15 11:56:52.590 W Only hardcoded paths to TTF fonts are supported under linux so far. TODO: implement fontconfig support. 2015-04-15 11:56:52.590 D FreeTypeFontManager.registerFont /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf SansSerif DejaVuSans italic=false weight=400 2015-04-15 11:56:52.590 D FreeTypeFontManager.registerFont /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf SansSerif DejaVuSans italic=false weight=800 2015-04-15 11:56:52.590 D FreeTypeFontManager.registerFont /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Oblique.ttf SansSerif DejaVuSans italic=true weight=400 2015-04-15 11:56:52.590 D FreeTypeFontManager.registerFont /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-BoldOblique.ttf SansSerif DejaVuSans italic=true weight=800 2015-04-15 11:56:52.591 D FreeTypeFontManager.registerFont /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf MonoSpace DejaVuSansMono italic=false weight=400 2015-04-15 11:56:52.591 D FreeTypeFontManager.registerFont /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-Bold.ttf MonoSpace DejaVuSansMono italic=false weight=800 2015-04-15 11:56:52.591 D FreeTypeFontManager.registerFont /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-Oblique.ttf MonoSpace DejaVuSansMono italic=true weight=400 2015-04-15 11:56:52.592 D FreeTypeFontManager.registerFont /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono-BoldOblique.ttf MonoSpace DejaVuSansMono italic=true weight=800 2015-04-15 11:56:52.593 D Creating default theme 2015-04-15 11:56:52.827 D Loading string resources from file @embedded@/std_en.ini 2015-04-15 11:56:52.832 I Applying loaded theme theme_default 2015-04-15 11:56:52.833 D Creating SDL window 2015-04-15 11:56:52.837 I Trying to create OpenGL 3.2 context 2015-04-15 11:56:52.839 E SDL_GL_CreateContext failed: Could not create GL context 2015-04-15 11:56:52.839 W trying other versions of OpenGL 2015-04-15 11:56:52.840 I Trying to create OpenGL 3.3 context 2015-04-15 11:56:52.842 E SDL_GL_CreateContext failed: Could not create GL context 2015-04-15 11:56:52.842 I Trying to create OpenGL 3.1 context 2015-04-15 11:56:52.846 E SDL_GL_CreateContext failed: Could not create GL context 2015-04-15 11:56:52.846 I Trying to create OpenGL 4.0 context 2015-04-15 11:56:52.850 E SDL_GL_CreateContext failed: Could not create GL context 2015-04-15 11:56:52.851 I Trying to create OpenGL 2.1 context 2015-04-15 11:56:52.854 E SDL_GL_CreateContext failed: Could not create GL context 2015-04-15 11:56:52.854 W OpenGL support is disabled But glxgears works fine, glxinfo show direct rendering: yes. BTW, why openGL for forms ? in wiki: "Fallback to pure Win32 API / SDL / XCB when OpenGL is not available (e.g. opengl dynamic library cannot be loaded)" Why no fallback? |
April 15, 2015 Re: DlangUI | ||||
---|---|---|---|---|
| ||||
Posted in reply to igor_p | BTW, if I remove USE_OPENGL works fine :) |
May 06, 2015 Re: DlangUI | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vadim Lopatin | On Tuesday, 20 May 2014 at 18:13:36 UTC, Vadim Lopatin wrote: > Hello! > > I would like to announce my project, DlangUI library - cross-platform GUI for D. > https://github.com/buggins/dlangui > License: Boost License 1.0 > Project Update: FontConfig support is added for Linux builds Examples available on https://github.com/buggins/dlangui-examples Getting Started tutorial: https://github.com/buggins/dlangui/wiki/Getting-Started Some bugs fixed |
December 16, 2015 Re: DlangUI | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vadim Lopatin | Is it's possible to use some native frontend with dlangui instead of drawing all controls with OpenGL? I really dislike how all OpenGL toolkit looks like. Is it's possible to make dlangui fully compatibility with QML to be able easy migrate visual components from Qt solution to dlangui? |
December 16, 2015 Re: DlangUI | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vadim Lopatin | On Tuesday, 14 April 2015 at 11:18:38 UTC, Vadim Lopatin wrote:
> On Tuesday, 20 May 2014 at 18:13:36 UTC, Vadim Lopatin wrote:
>> Hello!
>>
>> I would like to announce my project, DlangUI library - cross-platform GUI for D.
>> https://github.com/buggins/dlangui
>> License: Boost License 1.0
>
> I've added first DlangUI tutorial on DlangUI Wiki:
>
> https://github.com/buggins/dlangui/wiki/Getting-Started
>
> It covers creation of simple DlangUI helloworld project, and then illustrates layouts, standard controls, DML, and signals.
>
> Source code for all examples is available on GitHub
>
> https://github.com/buggins/dlangui-examples
>
> I'm looking forward for ideas for next tutorials.
Maybe tutorial on Menus, tabs, list view, and a little excell app
|
December 17, 2015 Re: DlangUI | ||||
---|---|---|---|---|
| ||||
Posted in reply to Suliman | On Wednesday, 16 December 2015 at 13:32:21 UTC, Suliman wrote: > Is it's possible to use some native frontend with dlangui instead of drawing all controls with OpenGL? I really dislike how all OpenGL toolkit looks like. OpenGL is just hardware acceleration for drawing. Resulting picture is the same for both OpenGL and software rendering. DlangUI will never use native controls. It draws all widgets itself. But look and feel can be changed by providing custom theme. You can create theme (set of .xml and .png files) to get DlangUI app looking exactly like native one. > Is it's possible to make dlangui fully compatibility with QML to be able easy migrate visual components from Qt solution to dlangui? No. It's not planned at least for now. |
December 17, 2015 Re: DlangUI | ||||
---|---|---|---|---|
| ||||
Posted in reply to karabuta | On Wednesday, 16 December 2015 at 16:17:00 UTC, karabuta wrote:
> On Tuesday, 14 April 2015 at 11:18:38 UTC, Vadim Lopatin wrote:
>
> Maybe tutorial on Menus, tabs, list view, and a little excell app
I started to work on Spreadsheet (Excel like app) example
dub run dlangui:spreadsheet
(dlangui/examples/spreadsheet)
Its implementation is in the very beginning. Worksheet split view support development is in progress.
|
December 17, 2015 Re: DlangUI | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vadim Lopatin | On Thursday, 17 December 2015 at 16:12:32 UTC, Vadim Lopatin wrote:
> On Wednesday, 16 December 2015 at 13:32:21 UTC, Suliman wrote:
>> Is it's possible to use some native frontend with dlangui instead of drawing all controls with OpenGL? I really dislike how all OpenGL toolkit looks like.
>
> OpenGL is just hardware acceleration for drawing. Resulting picture is the same for both OpenGL and software rendering.
>
> DlangUI will never use native controls. It draws all widgets itself.
> But look and feel can be changed by providing custom theme.
> You can create theme (set of .xml and .png files) to get DlangUI app looking exactly like native one.
In general I don't care about that sort of thing, but there is one exception: the main application menu. Unity and Aqua (OS X) both end up feeling odd if you don't use the system one.
|
Copyright © 1999-2021 by the D Language Foundation