[Solved] links2 --enable-graphics from source, configure error: no graphics driver found.

Howdy
I am trying to install links2 with graphics support on snow leopard 10.6.8 (xcode installed). I have had the program running last year, also installed from source - but then I had installed some image libraries with mac ports and fink - cannot reproduce that setup. Plus I would like to not use ports or fink. I am assuming I need to pass some info to configure.
/usr/local/lib/:/usr/X11R6/:/usr/include/X11/:/usr/X11/lib/ are in the PATH

I appreciate any hints on how to go about this. I use Links2 mostly for reading offline documents like the tldp html manuals.

thank you :slight_smile:

checking for directfb-config... no
checking for X... no
checking for pmshell... no
checking for gui/view.h... no
checking for gui/window.h... no
checking for gui/desktop.h... no
checking for gui/bitmap.h... no
checking for util/locker.h... no
checking for util/application.h... no
checking for inflate in -lz... (cached) yes
checking for libpng >= 1.0.0... yes
checking LIBPNG_CFLAGS... -I/usr/local/include/libpng14  
checking LIBPNG_LIBS... -L/usr/local/lib -lpng14  
checking for png.h... yes
checking for libpng/png.h... no
checking for png_create_info_struct... yes
checking for png_set_rgb_to_gray... yes
checking for png_get_image_width... yes
checking for png_get_image_height... yes
checking for png_get_gAMA... yes
checking for png_get_color_type... yes
checking for png_get_bit_depth... yes
checking for png_set_strip_alpha... yes
checking for png_get_valid... yes
checking for png_get_sRGB... yes
checking if you can include both setjmp.h and png.h... yes
checking for jpeglib.h... yes
checking for jpeg_destroy_decompress in -ljpeg... yes
checking for tiffio.h... yes
checking for TIFFClientOpen in -ltiff... yes
configure: error: No graphics drivers found.

-- links-2.3pre1 --

Is this normal?
When you compile, should we understand you are in a text terminal? as who?
can you from your terminal launch xclock & ?

1 Like

yes - OSX Terminal app. As me [the user] - GNU bash 4.1 (which I installed from source and made my default shell, replacing the bash 3.2 that Snow Leopard ships with). And yes, can run xclock & and up comes a small window with an analog clock and the terminal shows the process id. configure also complained about not finding the pkg-config script, but I just fixed that with: export PKG_CONFIG=/usr/local/bin/pkg-config and now the complaint is gone but still no graphics drivers found.

You dont put header file paths in PATH. PATH controls where you look for executables and only executables.

Try ./configure --help to see what options it lets you set. Paste its output here too please. configure can be, well, configured by the programmer to have lots of different custom options but at least deals with them in a fairly consistent way.

1 Like

thank you for pointing that out - serves me right for trying out things I do not understand - I will go and do some reading ...

and ... thank you for taking the time to help.

bash-4.1$ ./configure --help
Usage: configure [options] [host]
Options: [defaults in brackets after descriptions]
Configuration:
  --cache-file=FILE       cache test results in FILE
  --help                  print this message
  --no-create             do not create output files
  --quiet, --silent       do not print `checking...' messages
  --version               print the version of autoconf that created configure
Directory and file names:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [/usr/local]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [same as prefix]
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  --datadir=DIR           read-only architecture-independent data in DIR
                          [PREFIX/share]
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
                          [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  --includedir=DIR        C header files in DIR [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  --infodir=DIR           info documentation in DIR [PREFIX/info]
  --mandir=DIR            man documentation in DIR [PREFIX/man]
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
  --program-prefix=PREFIX prepend PREFIX to installed program names
  --program-suffix=SUFFIX append SUFFIX to installed program names
  --program-transform-name=PROGRAM
                          run sed PROGRAM on installed program names
Host type:
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
  --host=HOST             configure for HOST [guessed]
  --target=TARGET         configure for TARGET [TARGET=HOST]
Features and packages:
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --x-includes=DIR        X include files are in DIR
  --x-libraries=DIR       X library files are in DIR
--enable and --with options recognized:
  --enable-debuglevel     set internal checking level
	-1 - recover from segmentation faults
	 0 - no checks (fastest)
	 1 - check memory leaks
	 2 - leaks with file/line accuracy, memory red zone, pattern filling
  --enable-graphics       use graphics
  --without-gpm           compile without gpm mouse
  --with-ssl(=directory)  enable SSL support
  --with-ssl=nss          enable SSL support through NSS OpenSSL emulation
  --without-zlib          compile without zlib compression
  --without-bzip2         compile without bzip2 compression
  --without-svgalib       compile without svgalib graphics driver
  --without-x             compile without X Window System graphics driver
  --without-fb            compile without Linux Framebuffer graphics driver
  --without-directfb      compile without DirectFB graphics driver
  --without-pmshell       compile without PMShell graphics driver
  --without-atheos        compile without Atheos graphics driver
  --with-x                use the X Window System
  --without-libjpeg	  compile without JPEG support
  --without-libtiff       compile without TIFF support
bash-4.1$

---------- Post updated at 09:04 AM ---------- Previous update was at 08:54 AM ----------

... and when I pasted the configure --help output into the above message I saw it - there right in front of me. So I ran configure again:

./configure --x-includes=/usr/include/X11/ --x-libraries=/usr/X11/lib/ --enable-graphics

and voila:

snip...<>

checking for TIFFClientOpen in -ltiff... yes
updating cache ./config.cache
creating ./config.status
creating Makefile
creating config.h
---------------------------------------------------------
Configuration results:

GPM support:		NO
SSL support:		OPENSSL
Supported compression:	ZLIB BZIP2
Graphics enabled:	YES
Graphics drivers:	X
Image formats:		GIF PNG XBM JPEG TIFF
---------------------------------------------------------

I will be bold and do a make on that now .... hang on.

yep - installed and is running. ... btw - how do I put [solved] on the starter post?

You don't, you ask a mod to do it.

thanks, could have guessed after trying to fix my speeling error there ... :slight_smile:

so. Dear moderator - if you like you can mark my quest [solved] and ... if you could transpose grapics > graphics, that would be awesome. Great forum, tons to read. Thank you for having me here.

btw ... I tried to read the ... Featured Books and Articles by Active Forum Members page but safari, firefox and seamonkey all give me :

(which I did ... I think) - now, guess what: my brandnew links2 graphics browser gets me that page with no fuss. I am stoked.