Unable to install svga lib

Using applications, configuring, problems
Post Reply
Message
Author
User avatar
phantrongnghia
Posts: 205
Joined: Mon 24 Apr 2006, 14:11
Location: Hanoi,Vietnam
Contact:

Unable to install svga lib

#1 Post by phantrongnghia »

I want to install fce ultra, it required svga lib ,and i downloaded from svgalib.org,but
after i extracted it and run command
make && make install
Error !

Code: Select all

To install SVGAlib, do one of the following:

        make clean      - clean every thing. Do this after every change
                          of Makefile.cfg! Esp. when changing from a.out
                          to ELF and vice versa
        make install    - compile & install components specified in Makefile.cfg
        make demoprogs  - make demo programs in demo/ and threeDKit/

        make uninstall  - remove an existing installation from various
                          common places. (old traces often confuse the
                          compiler even when svgalib is not installed anew)
                          (make install includes an uninstall first)

        Be sure to read the file 0-INSTALL!

sh-3.00# make install
Removing textmode utilities...
Removing shared library stubs (old & current)...
Removing shared library images (old & current)...
Removing static libraries...
Removing header files...
(cd doc; make -f /root/svgalib-1.4.3/doc/Makefile srcdir="/root/svgalib-1.4.3" u                                                             ninstall)
make[1]: Entering directory `/root/svgalib-1.4.3/doc'
Removing all svgalib man pages.
/bin/sh: line 0: cd: /usr/man: No such file or directory
make[1]: Leaving directory `/root/svgalib-1.4.3/doc'
Installing header files in /usr/local/include.
mkdir -p /usr/local/include
(cd sharedlib/; \
 make -f /root/svgalib-1.4.3/src/Makefile libvga.so.1.4.3 \
        srcdir="/root/svgalib-1.4.3" DLLFLAGS="-fPIC" \
)
make[1]: Entering directory `/root/svgalib-1.4.3/sharedlib'
cc -Wall -Wstrict-prototypes -fPIC -I/root/svgalib-1.4.3/include -I. -I/root/svg                                                             alib-1.4.3/src -fomit-frame-pointer -O2 -fno-strength-reduce -pipe -g -DSVGALIB_                                                             CONFIG_FILE=\"/etc/vga/libvga.config\" -DALLOW_MOUSE_OVERRIDE -DET4000_REGS=\"/e                                                             tc/vga/libvga.et4000\" -DDYNAMIC -DROOT_VC_SHORTCUT -DINCLUDE_ET4000_DRIVER -DIN                                                             CLUDE_ET4000_DRIVER_TEST -DINCLUDE_CIRRUS_DRIVER -DINCLUDE_CIRRUS_DRIVER_TEST -D                                                             INCLUDE_TVGA_DRIVER -DINCLUDE_TVGA_DRIVER_TEST -DINCLUDE_MACH32_DRIVER -DINCLUDE                                                             _MACH32_DRIVER_TEST -DINCLUDE_S3_DRIVER -DINCLUDE_S3_DRIVER_TEST -DINCLUDE_CHIPS                                                             _DRIVER -DINCLUDE_CHIPS_DRIVER_TEST -DINCLUDE_APM_DRIVER -DINCLUDE_APM_DRIVER_TE                                                             ST -DINCLUDE_VESA_DRIVER -DINCLUDE_VESA_DRIVER_TEST -DINCLUDE_NV3_DRIVER -DINCLU                                                             DE_NV3_DRIVER_TEST -DINCLUDE_G400_DRIVER -DINCLUDE_G400_DRIVER_TEST -DINCLUDE_R1                                                             28_DRIVER -DINCLUDE_R128_DRIVER_TEST -DINCLUDE_MX_DRIVER -DINCLUDE_MX_DRIVER_TES                                                             T -DINCLUDE_SAVAGE_DRIVER -DINCLUDE_SAVAGE_DRIVER_TEST -DINCLUDE_PARADISE_DRIVER                                                              -DINCLUDE_PARADISE_DRIVER_TEST -DINCLUDE_RAGE_DRIVER -DINCLUDE_RAGE_DRIVER_TEST                                                              -DINCLUDE_BANSHEE_DRIVER -DINCLUDE_BANSHEE_DRIVER_TEST -DINCLUDE_SIS_DRIVER -DI                    
NCLUDE_SIS_DRIVER_TEST -DINCLUDE_I740_DRIVER -DINCLUDE_I740_DRIVER_TEST -DINCLUD                                                             E_LAGUNA_DRIVER -DINCLUDE_LAGUNA_DRIVER_TEST -DINCLUDE_ET6000_DRIVER -DINCLUDE_E                                                             T6000_DRIVER_TEST -DINCLUDE_NEO_DRIVER -DINCLUDE_NEO_DRIVER_TEST -DINCLUDE_FBDEV                                                             _DRIVER -c -o vga.o /root/svgalib-1.4.3/src/vga.c
/root/svgalib-1.4.3/src/vga.c:3919:31: pasting "." and "HDisplay" does not give                                                              a valid preprocessing token
/root/svgalib-1.4.3/src/vga.c:3920:33: pasting "." and "HSyncStart" does not giv                                                             e a valid preprocessing token
/root/svgalib-1.4.3/src/vga.c:3921:31: pasting "." and "HSyncEnd" does not give                                                              a valid preprocessing token
/root/svgalib-1.4.3/src/vga.c:3922:29: pasting "." and "HTotal" does not give a                                                              valid preprocessing token
/root/svgalib-1.4.3/src/vga.c:3923:31: pasting "." and "VDisplay" does not give                                                              a valid preprocessing token
/root/svgalib-1.4.3/src/vga.c:3924:33: pasting "." and "VSyncStart" does not giv                                                             e a valid preprocessing token
/root/svgalib-1.4.3/src/vga.c:3925:31: pasting "." and "VSyncEnd" does not give                                                              a valid preprocessing token
/root/svgalib-1.4.3/src/vga.c:3926:29: pasting "." and "VTotal" does not give a                                                              valid preprocessing token
/root/svgalib-1.4.3/src/vga.c:318: warning: `release_acquire' defined but not us                                                             ed
make[1]: *** [vga.o] Error 1
make[1]: Leaving directory `/root/svgalib-1.4.3/sharedlib'
make: *** [sharedlib/libvga.so.1.4.3] Error 2
How to fix?
Thanks

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#2 Post by MU »

fce ultra, it required svga lib
no.
http://fceultra.sourceforge.net/
http://prdownloads.sourceforge.net/fceu ... 2?download

It uses SDL.
http://www.libsdl.org/index.php

To compile fce with openGL:
You must create a symlink for OpenGL first:
ln -s /usr/X11R6/include/GL /usr/include/GL

Then run
./configure --prefix=/usr --with-opengl

I made a Dotpup like this:
http://dotpups.de/dotpups/Emulators/
It includes the binary , a startscript that you can edit, and the documentation.
Mark

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#3 Post by MU »

If you still need svgalib for other things:

http://dotpups.de/dotpups/Games/gcompris/

But it is only the .so, not the includefiles.
Took them from Debian I think.
Mark

User avatar
phantrongnghia
Posts: 205
Joined: Mon 24 Apr 2006, 14:11
Location: Hanoi,Vietnam
Contact:

#4 Post by phantrongnghia »

File configure of SDL had some error and I fixed in some line
When I

Code: Select all

make && make install
Near the end
ibs/XF86DGA2.o build/.libs/SDL_dgaevents.o build/.libs/SDL_dgamouse.o build/.li bs/SDL_dgavideo.o build/.libs/XF86VMode.o build/.libs/Xv.o build/.libs/Xinerama. o build/.libs/xme.o build/.libs/SDL_fb3dfx.o build/.libs/SDL_fbelo.o build/.libs /SDL_fbevents.o build/.libs/SDL_fbmatrox.o build/.libs/SDL_fbmouse.o build/.libs /SDL_fbriva.o build/.libs/SDL_fbvideo.o build/.libs/SDL_svgaevents.o build/.libs /SDL_svgamouse.o build/.libs/SDL_svgavideo.o build/.libs/SDL_systhread.o build/. libs/SDL_syssem.o build/.libs/SDL_sysmutex.o build/.libs/SDL_syscond.o build/.li bs/SDL_sysjoystick.o build/.libs/SDL_syscdrom.o build/.libs/SDL_systimer.o -lm -ldl -lvga -lpthread -Wl,-soname -Wl,libSDL-1.2.so.0 -o build/.libs/libSDL-1.2. so.0.7.3
/usr/lib/gcc-lib/i486-slackware-linux/3.3.4/../../../../i486-slackware-linux/bin /ld: cannot find -lvga
collect2: ld returned 1 exit status
make: *** [build/libSDL.la] Error 1
Why ?
Thanks

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#5 Post by MU »

Ah , I think that is the svgalib:
http://dotpups.de/dotpups/Games/gcompris/libsvga1.pup

Mark

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#6 Post by MU »

If you want to compile a game, but not libSDL, it might be sufficient to install these Dotpups:
http://www.murga.org/~puppy/viewtopic.php?t=2482

One of them has the includefiles needed to compile games.

Mark

User avatar
phantrongnghia
Posts: 205
Joined: Mon 24 Apr 2006, 14:11
Location: Hanoi,Vietnam
Contact:

#7 Post by phantrongnghia »

How to configure the controler ? :?

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#8 Post by MU »

In libSDL?
no idea :shock:
I always play with keyboard and mouse.

User avatar
phantrongnghia
Posts: 205
Joined: Mon 24 Apr 2006, 14:11
Location: Hanoi,Vietnam
Contact:

#9 Post by phantrongnghia »

Sorry, I plays with keyboard :)

Post Reply