Posted to tcl by Emiliano at Wed Jan 09 16:47:12 GMT 2008view raw

  1. File downloaded from
  2. http://www.flightlab.com/~joe/downloads/tkimg-1.3-2005-01-05.tar.gz
  3.  
  4. Background:
  5. Using libjpeg, libpng and libtiff from pkgsrc, installed on /usr/pkg.
  6. Tcl/Tk installation on /home/emiliano/programas
  7.  
  8. NetBSD needs to link using rpath, it doesn't support the use of ldconfig
  9.  
  10. Running the configure script with:
  11. $ env CPPFLAGS="-I/usr/X11R6/include -I/usr/pkg/include" LDFLAGS="-L/usr/X11R6/lib -rpath=/usr/X11R6/lib -L/usr/pkg/lib -rpath=/usr/pkg/lib -L/home/emiliano/programas/lib -rpath=/home/emiliano/programas/lib" /bin/ksh ./configure
  12.  
  13. [configure output]
  14.  
  15. ==== Configuration summary ====
  16.  
  17. TCL_INCLUDES = -I"/home/emiliano/programas/include"
  18. TK_INCLUDES = -I"/home/emiliano/programas/include"
  19. LIBS = -ltiff -ljpeg -lpng -lz -lm
  20.  
  21. $ make
  22.  
  23. [make output]
  24.  
  25. $ vi pkgIndex.tcl
  26.  
  27. [adjust version to 1.3.99]
  28.  
  29. $ make test
  30.  
  31. [test output]
  32.  
  33. Tests ended at Wed Jan 09 14:38:40 ART 2008
  34. all.tcl: Total 64 Passed 59 Skipped 5 Failed 0
  35. Sourced 15 Test Files.
  36. Number of tests skipped for each constraint:
  37. 5 unknownfailure
  38.  
  39.  
  40. Note1: I use /bin/ksh (pdksh, it comes with the base system) to avoid
  41. the configure quoting problem which shows using bash
  42.  
  43. Note2: I have the sources on the same subdir, tcl_sources, having
  44. tcl, tk and tkimg directories at the same level.

Comments

Posted by jenglish at Thu Jan 17 03:27:02 GMT 2008 [text] [code]

New tarball available: http://www.flightlab.com/~joe/downloads/tkimg-1.3-2008-01-16.tar.gz This one uses a newer tcl.m4, which has better support for *BSDs, so you might be able to shorten the ./configure line. (1) don't need to use ksh, the MP-RAS CF has been avoided (2) probably don't need to set CPPFLAGS, the TEA_PATH_X macro should be able to find the X11 headers. (3) you can *try* using '--enable-rpath' instead of explicitly setting LDFLAGS at configure-time; I don't expect that will work though.

Posted by Emiliano at Fri Jan 18 11:13:26 GMT 2008 [text] [code]

The minimal working version now is: $ CPPFLAGS="-I/usr/X11R6/include -I/usr/pkg/include" LDFLAGS="-L/usr/pkg/lib" ./configure --prefix=/home/emiliano/programas --with-tcl=/home/emiliano/programas/lib --with-tk=/home/emiliano/programas/lib --enable-rpath Failing to provide any of these result in a failed build