gtk+/linux-fb:



I am trying to get a gtk+ 2.0.3 app to run on my Matrox G400
framebuffer with gtk+ for linux-fb.  I have it compiled and linked to
the gtk+ linux-fb versions of the libs, however when I try to run the
app (which works fine linked to x11 verison of gtk+) I get:

# /usr/src/openpvr/chooser/src/chooser 

(chooser:1777): Gdk-WARNING **: Mouse driver open failed

(chooser:1777): Gdk-WARNING **: Failed to initialize mouse

(chooser:1777): Gtk-WARNING **: cannot open display: /dev/fb0

Now indeed there is no mouse hooked up to this box, but I don't know
why there should be an error opening /dev/fb0.  An strace shows it
opening ok, it just gets an error later on trying to ioctl (I have no
idea what the ioctl is) it:

...
1770  setsid()                          = 1770
1770  open("/dev/console", O_RDWR)      = 3
1770  ioctl(3, 0x5603, 0xbffff860)      = 0
1770  open("/dev/tty1", O_RDWR|O_NONBLOCK) = 4
1770  ioctl(0, 0x5422)                  = -1 ENOTTY (Inappropriate ioctl for device)
1770  ioctl(4, 0x540e)                  = 0
1770  open("/dev/fb0", O_RDWR)          = 5
1770  ioctl(5, 0x4600, 0x80516ec)       = 0
1770  ioctl(5, 0x4602, 0x80516a8)       = 0
1770  ioctl(5, 0x4b3a, 0x1)             = -1 EINVAL (Invalid argument)
1770  ioctl(5, 0x4611, 0)               = 0
1770  old_mmap(NULL, 1920000, PROT_READ|PROT_WRITE, MAP_SHARED, 5, 0) = 0x40705000
1770  old_mmap(NULL, 1921024, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x408da000
1770  rt_sigaction(SIGALRM, {0x40294330, [], 0x4000000}, NULL, 8) = 0
1770  ioctl(4, SNDCTL_TMR_TIMEBASE, {B38400 opost isig icanon echo ...}) = 0
1770  ioctl(4, SNDCTL_TMR_CONTINUE, {B38400 opost -isig -icanon -echo ...}) = 0
1770  getpgrp()                         = 1770
1770  ioctl(4, 0x5410, [1770])          = 0
1770  write(4, "\33[?1;0;0c", 9)        = 9
1770  ioctl(4, 0x4b45, 0x1)             = 0
1770  fstat64(4, {st_mode=S_IFCHR|0600, st_rdev=makedev(4, 1), ...}) = 0
1770  fcntl64(4, F_GETFL)               = 0x802 (flags O_RDWR|O_NONBLOCK)
1770  brk(0x8053000)                    = 0x8053000
1770  open("/dev/psaux", O_RDWR|O_NONBLOCK) = -1 ENXIO (No such device or address)
1770  getpid()                          = 1770
1770  open("/usr/lib/charset.alias", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
1770  open("/usr/lib/gconv/gconv-modules.cache", O_RDONLY) = 6
1770  fstat64(6, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
1770  close(6)                          = 0
1770  open("/usr/lib/gconv/gconv-modules", O_RDONLY) = 6
1770  fstat64(6, {st_mode=S_IFREG|0644, st_size=44057, ...}) = 0
1770  old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40aaf000
1770  read(6, "# GNU libc iconv configuration.\n"..., 4096) = 4096
1770  brk(0x8054000)                    = 0x8054000
1770  read(6, "2\n\nalias\tISO-IR-141//\t\tJUS_I.B1."..., 4096) = 4096
1770  brk(0x8055000)                    = 0x8055000
1770  brk(0x8056000)                    = 0x8056000
1770  read(6, "SF00010003//\t\tISO-8859-3//\nmodul"..., 4096) = 4096
...
1770  read(6, "", 4096)                 = 0
1770  close(6)                          = 0
1770  munmap(0x40aaf000, 4096)          = 0
1770  brk(0x8067000)                    = 0x8067000
1770  open("/usr/lib/gconv/ISO8859-1.so", O_RDONLY) = 6
1770  read(6, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300\6\0"..., 1024) = 1024
1770  fstat64(6, {st_mode=S_IFREG|0755, st_size=5492, ...}) = 0
1770  old_mmap(NULL, 8524, PROT_READ|PROT_EXEC, MAP_PRIVATE, 6, 0) = 0x40aaf000
1770  mprotect(0x40ab1000, 332, PROT_NONE) = 0
1770  old_mmap(0x40ab1000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 6, 0x1000) = 0x40ab1000
1770  close(6)                          = 0
1770  brk(0x806f000)                    = 0x806f000
1770  write(2, "\n(chooser:1770): Gdk-WARNING **:"..., 58) = 58
1770  getpid()                          = 1770
1770  write(2, "\n(chooser:1770): Gdk-WARNING **:"..., 60) = 60
1770  write(4, "\33c", 2)               = 2
1770  ioctl(4, SNDCTL_TMR_TIMEBASE, {B38400 opost -isig -icanon -echo ...}) = 0
1770  ioctl(4, SNDCTL_TMR_CONTINUE, {B38400 opost isig icanon echo ...}) = 0
1770  ioctl(5, 0x4601, 0x805178c)       = 0
1770  ioctl(5, 0x4b3a, 0)               = -1 EINVAL (Invalid argument)
1770  munmap(0x40705000, 1920000)       = 0
1770  close(5)                          = 0
1770  ioctl(3, 0x5606, 0x1)             = 0
1770  ioctl(3, 0x5607, 0x1)             = 0
1770  close(4)                          = 0
1770  close(3)                          = 0
1770  getpid()                          = 1770
1770  write(2, "\n(chooser:1770): Gtk-WARNING **:"..., 63) = 63
1770  _exit(1)                          = ?


Any ideas where to go from here?

b.

-- 
Brian J. Murrell

Attachment: pgpEmNPYUXklb.pgp
Description: PGP signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]