Re: trivial open source fox code don't show any window (Linux, FOX 1.7.84)

[email protected] Mon, 04 Mar 2024 07:10:29 -0600
Newsgroups gmane.comp.lib.fox-toolkit.user
Message-ID <[email protected]>
On 2024-03-03 15:54, Basile Starynkevitch wrote:
> Hello all,
> 
> On Linux/Debian/Trixie x86-64 I successfully compiled fox 1.7.84. I
> will using the libjansson JSON toolkit (might change it to jsoncpp)
> 
> 
> However, the simple code on
> https://github.com/bstarynk/misc-basile/blob/master/browserfox.cc
> (GPLv3+ licensed, my git commit 33e829a254e1572), compiled (using the
> build-browserfox.sh script there) with
> 
> g++ -O -g -Wall -Wextra '-DGIT_ID="33e829a254e1572"' -Wall
> -I/usr/local/include/fox-1.7 browserfox.cc -L/usr/local/lib -lFOX-1.7
> -ljansson -o browserfox
> 
> when I run it with
> 
> rimski.x86_64 ~/misc-basile 22:46 .0 % ./browserfox -D
> @@browserfox.cc:151:start of ./browserfox pid 124949 on rimski git
> 33e829a254e1572 build Mar  3 2024@22:46:01 for FOX 1.7.84
> @@browserfox.cc:122:BfWindow#1 in app @0x7ffdeae04770
> @@browserfox.cc:137:BfWindow:create#1
> @@browserfox.cc:158:show win#1 X=0,Y=0,W=800,H=650
> @@browserfox.cc:161:win#1 is shown
> 
> don't show any window on my screen. for what it is worth,
> 
> rimski.x86_64 ~/misc-basile 22:49 .0 % xdpyinfo|head -55
> name of display:    :0
> version number:    11.0
> vendor string:    The X.Org Foundation
> vendor release number:    12101011
> X.Org version: 21.1.11
> maximum request size:  16777212 bytes
> motion buffer size:  256
> bitmap unit, bit order, padding:    32, LSBFirst, 32
> image byte order:    LSBFirst
> number of supported pixmap formats:    7
> supported pixmap formats:
>     depth 1, bits_per_pixel 1, scanline_pad 32
>     depth 4, bits_per_pixel 8, scanline_pad 32
>     depth 8, bits_per_pixel 8, scanline_pad 32
>     depth 15, bits_per_pixel 16, scanline_pad 32
>     depth 16, bits_per_pixel 16, scanline_pad 32
>     depth 24, bits_per_pixel 32, scanline_pad 32
>     depth 32, bits_per_pixel 32, scanline_pad 32
> keycode range:    minimum 8, maximum 255
> focus:  window 0x3c00004, revert to Parent
> number of extensions:    29
>     BIG-REQUESTS
>     Composite
>     DAMAGE
>     DOUBLE-BUFFER
>     DPMS
>     DRI2
>     DRI3
>     GLX
>     Generic Event Extension
>     MIT-SCREEN-SAVER
>     MIT-SHM
>     Present
>     RANDR
>     RECORD
>     RENDER
>     SECURITY
>     SHAPE
>     SYNC
>     X-Resource
>     XC-MISC
>     XFIXES
>     XFree86-DGA
>     XFree86-VidModeExtension
>     XINERAMA
>     XInputExtension
>     XKEYBOARD
>     XTEST
>     XVideo
>     XVideo-MotionCompensation
> default screen number:    0
> number of screens:    1
> 
> screen #0:
>   dimensions:    5360x1440 pixels (1414x380 millimeters)
> 
> 
> What I am doing wrong?

The create() routine in FXMainWindow never runs, because your overriding 
it with a version that doesn't call it.

Thus, no window ever gets created...

     -- JVZ


_______________________________________________
Foxgui-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/foxgui-users