Hi! I've compiled GRX 2.4.6 without problems. But when I compile my own program using GRX library I recaive this message:
"GrSetMode: could not find suitable video driver"
Please help!
On Sun, Jul 04, 2004 at 04:59:40PM +0200, Jacek wrote:
"GrSetMode: could not find suitable video driver"
How do you initialiize your program?
Eike
4 Jul 2004 Jacek gepardzik@o2.pl wrote:
I've compiled GRX 2.4.6 without problems. But when I compile my own program using GRX library I recaive this message:
"GrSetMode: could not find suitable video driver"
You should be a bit more specific, for example tell us what your OS is and what makefile have you used to compile GRX. The above message signifies that either GRX was compiled with no video drivers (for example makefile.lnx allows this, albeit it's pointless) or that none of the video drivers GRX was compiled with can be currently used (for example GRX for X11 being run from a text or framebuffer console).
Ok. I tell more about my system. I use Debian Linux 3.0. I've compiled GRX 2.4.6 with command:
make -f makefile.lnx
that means it's for linux console.
Settings in makedefs.grx were: USE_SVGALIB_DRIVER=n USE_FRAMEBUFFER_DRIVER=y
I set the environment variable: export GRX20DRV="linuxfb gw 1024 gh 768 nc 256"
And after running my program which use function GrSetMode(), I recaive that message:
"GrSetMode: could not find suitable video driver"
I think it's enought information to you to help me :)
Blackhole
PS. Sorry for my not good english.
5 Jul 2004 Jacek gepardzik@o2.pl wrote:
Ok. I tell more about my system. ... I set the environment variable: export GRX20DRV="linuxfb gw 1024 gh 768 nc 256" ... "GrSetMode: could not find suitable video driver"
I'm not a big framebuffer fan, but will try to answer. First, to use GRX/framebuffer your console must already be in a framebuffer mode; the above message is usually a result from running GRX/fb from text mode. Second, the only framebuffer mode available will be the current screen mode; your gw, gh and nc will either be ignored or cause problems (I'm not sure), so you'd remove them. Third, the usual requirements apply: your /dev/fb0 (or $FRAMEBUFFER) must be readable, your current console must be a linux console/fb (and not a pty) and so on.