ChessDB ./configure [tcl.h tk.h] errors

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Verlager
Level 2
Level 2
Posts: 54
Joined: Sun Jul 01, 2007 1:23 pm

ChessDB ./configure [tcl.h tk.h] errors

Post by Verlager »

I'm a chessplayer using LM 4.0 who wants to compile chessDB from scratch. I to ./configure and ran into a problem:

Code: Select all

rmack@recruit:~/ChessDB-3.6.19-beta-1$ ./configure 
configure: Makefile configuration program for ChessDB
    Renaming "Makefile" to "Makefile.bak"
    Tcl/Tk version: 8.4
    Your operating system is: Linux 2.6.22-14-generic
    Location of "tcl.h": not found
    Location of "tk.h": not found
    Location of Tcl 8.4 library: /usr/lib
    Location of Tk 8.4 library: /usr/lib
    Location of X11 library: /usr/lib
    Checking if your system already has zlib installed: yes.
Not all settings could be determined!
The default Makefile was written.
You will need to edit it before you can compile ChessDB.
rmack@recruit:~/ChessDB-3.6.19-beta-1$ 
So I did:

Code: Select all

rmack@recruit:~/ChessDB-3.6.19-beta-1$ sudo find / -mount -name 'tcl.h'
[sudo] password for rmack:
/usr/lib/perl5/Tk/pTk/tcl.h
rmack@recruit:~/ChessDB-3.6.19-beta-1$ sudo find / -mount -name 'tk.h'
/usr/lib/perl5/Tk/pTk/tk.h
Here is what I think I need to edit:

Code: Select all

# Someone sent Shane these settings for FreeBSD with Tcl/Tk 8.0:
### FreeBSD:
# TCL_INCLUDE = -I /usr/local/include/tcl8.0 -I /usr/local/include/tk8.0
# TCL_LIBRARY = -L /usr/local/lib -ltcl80 -ldl
# TK_LIBRARY  = $(TCL_LIBRARY) -ltk80 -L /usr/X11/lib -lX11
What do I need to edit these lines to?

Note: here is the actual (nearly complete) Makefile. I omitted stuff at the bottom that is not needed.[/size]

Code: Select all

##### Makefile for ChessDB for Unix operating systems.

### Compiler: Most Unix systems use g++ for compiling and linking.
#
COMPILE = g++
CC = gcc
LINK = g++
DESTDIR =

# BINDIR: where the ChessDB programs are copied for "make install".
#
BINDIR = /usr/local/bin

# SHAREDIR: where chessdb.eco and spelling.ssp are copied for "make install".
#
SHAREDIR = /usr/local/share/chessdb

# Sounds directory where WAV files are stored. One needs to have 
# the 'snack' package for these to work. 
SOUNDSDIR = /usr/local/share/chessdb/sounds
TBDIR =/usr/local/share/chessdb/tablebases

MANDIR = /usr/local/man
### TCL_VERSION: Set this according to the version of Tcl/Tk you have
#   installed that you want ChessDB to use: 8.0, 8.1, 8.2, 8.3, etc.
#
TCL_VERSION = 8.4

# TCL_INCLUDE, TCL_LIBRARY, TK_LIBRARY: these are the compiler options
#    needed for linking ChessDB with Tcl/Tk.  The program "./configure"
#    will try to determine them automatically, but if it cannot, you
#    can use the examples below for help in setting these variables.
#
# Sorry, "./configure" was not successful. The default settings are:
#
TCL_INCLUDE = -I/usr/include
TCL_LIBRARY = -L/usr/lib -ltcl$(TCL_VERSION) -ldl
TK_LIBRARY  = $(TCL_LIBRARY) -ltk$(TCL_VERSION) -L/usr/X11R6/lib -lX11

### Here are other commonly used settings for the Tcl/Tk compiler options:

### Linux (Red Hat and other distributions):
# TCL_INCLUDE = -I /usr/include
# TCL_LIBRARY = -L /usr/lib -ltcl$(TCL_VERSION) -ldl
# TK_LIBRARY  = $(TCL_LIBRARY) -ltk$(TCL_VERSION) -L /usr/X11R6/lib -lX11

# Linux 64-bit LSB-compliant (sent by Heinz van Saanen)

# TCL_INCLUDE = -I/usr/include
# TCL_LIBRARY = -L /usr/lib64 -ltcl$(TCL_VERSION) -ldl
# TK_LIBRARY  = $(TCL_LIBRARY) -ltk$(TCL_VERSION) -L /usr/X11R6/lib64 lX11

### Solaris:
# TCL_INCLUDE = -I /usr/local/tcl/include
# TCL_LIBRARY = -L /usr/local/tcl/lib -ltcl$(TCL_VERSION) -ldl
# TK_LIBRARY  = $(TCL_LIBRARY) -ltk$(TCL_VERSION)

# Someone sent me these settings for SuSE Linux 6.1:
### Linux (SuSE distribution):
# TCL_INCLUDE = -I /usr/X11R6/include
# TCL_LIBRARY = -L /usr/lib -ltcl$(TCL_VERSION) -ldl
# TK_LIBRARY  = $(TCL_LIBRARY) -L /usr/X11R6/lib -ltk$(TCL_VERSION) -lX11

# Someone sent Shane these settings for FreeBSD with Tcl/Tk 8.0:
### FreeBSD:
# TCL_INCLUDE = -I /usr/local/include/tcl8.0 -I /usr/local/include/tk8.0
# TCL_LIBRARY = -L /usr/local/lib -ltcl80 -ldl
# TK_LIBRARY  = $(TCL_LIBRARY) -ltk80 -L /usr/X11/lib -lX11


########################################
### Compiler options:

### TB: Using Nalimov tablebases with ChessDB. Use "TB = -DSCID_USE_TB" for 
#      tablebase support, or just "TB = " for no tablebase capability.
#      Use "TB = -DSCID_USE_TB -DT41_INCLUDE" to include use of 4-1
#      (King + 3 pieces vs lone king) tablebases.
#
TB = -DSCID_USE_TB -DT41_INCLUDE

SCIDFLAGS = 

### OPTIMIZE: Optimization options for C++ compiler.
#      -O4 is the most optimization for g++. I have found -O2 to do
#      just as well, but someone reported a noticable difference in speed
#      between -O4 and -O2 so the default here is -O4.
#      On some systems, adding "-fno-rtti" and "-fno-exceptions" produces
#      smaller, faster programs since ChessDB does not use those C++ features.
#      Note by David Kirkby. If feel its wrong to use -O4 in a Makefile. Have changed
#      to -O2, following bug report on FressBSD. 
OPTIMIZE = -O2 -fno-rtti -fno-exceptions

### DEBUG: Defining the macro ASSERTIONS will turn on assertions, which
#       helps to track bugs after modifications, but the programs will run 
#       a little faster with assertions turned off.
#
DEBUG = #-DASSERTIONS

### WARNINGS: I always compile with all warnings on (-Wall), and all the
#       files should compile warning-free using g++.
#
WARNINGS = -Wall

### PROFILE: Set this to "-pg" for profiling in g++ and gcc.
#
PROFILE = 

### CPP_FLAGS: Flags for C++ compilation.
#
CPP_FLAGS = $(PROFILE) $(OPTIMIZE) $(WARNINGS) $(DEBUG) $(SCIDFLAGS)

### LANGUAGES: List of additional Tcl files to include in ChessDB for
#       multi-language menu support.
#       By default, it is all the contributed languages, but you
#       can reduce the size of the ChessDB program by only specifying
#       the languages you want supported.
#
LANGUAGES = tcl/lang/czech-basic.tcl tcl/lang/czech-eco.tcl tcl/lang/czech-gpl.tcl tcl/lang/czech-help.tcl tcl/lang/czech-tips.tcl tcl/lang/deutsch-basic.tcl tcl/lang/deutsch-eco.tcl tcl/lang/deutsch-gpl.tcl tcl/lang/deutsch-help.tcl tcl/lang/deutsch-tips.tcl tcl/lang/francais-basic.tcl tcl/lang/francais-eco.tcl tcl/lang/francais-gpl.tcl tcl/lang/francais-help.tcl tcl/lang/francais-tips.tcl tcl/lang/hungary-basic.tcl tcl/lang/hungary-eco.tcl tcl/lang/hungary-gpl.tcl tcl/lang/hungary-help.tcl tcl/lang/hungary-tips.tcl tcl/lang/italian-basic.tcl tcl/lang/italian-eco.tcl tcl/lang/italian-gpl.tcl tcl/lang/italian-help.tcl tcl/lang/italian-tips.tcl tcl/lang/korean-basic.tcl tcl/lang/korean-eco.tcl tcl/lang/korean-gpl.tcl tcl/lang/korean-help.tcl tcl/lang/korean-tips.tcl tcl/lang/nederlan-basic.tcl tcl/lang/nederlan-eco.tcl tcl/lang/nederlan-gpl.tcl tcl/lang/nederlan-help.tcl tcl/lang/nederlan-tips.tcl tcl/lang/norsk-basic.tcl tcl/lang/norsk-eco.tcl tcl/lang/norsk-gpl.tcl tcl/lang/norsk-help.tcl tcl/lang/norsk-tips.tcl tcl/lang/polish-basic.tcl tcl/lang/polish-eco.tcl tcl/lang/polish-gpl.tcl tcl/lang/polish-help.tcl tcl/lang/polish-tips.tcl tcl/lang/portbr-basic.tcl tcl/lang/portbr-eco.tcl tcl/lang/portbr-gpl.tcl tcl/lang/portbr-help.tcl tcl/lang/portbr-tips.tcl tcl/lang/russian-basic.tcl tcl/lang/russian-eco.tcl tcl/lang/russian-gpl.tcl tcl/lang/russian-help.tcl tcl/lang/russian-tips.tcl tcl/lang/russian-UTF-8-basic.tcl tcl/lang/russian-UTF-8-eco.tcl tcl/lang/russian-UTF-8-gpl.tcl tcl/lang/russian-UTF-8-help.tcl tcl/lang/russian-UTF-8-tips.tcl tcl/lang/serbian-basic.tcl tcl/lang/serbian-eco.tcl tcl/lang/serbian-gpl.tcl tcl/lang/serbian-help.tcl tcl/lang/serbian-tips.tcl tcl/lang/spanish-basic.tcl tcl/lang/spanish-eco.tcl tcl/lang/spanish-gpl.tcl tcl/lang/spanish-help.tcl tcl/lang/spanish-tips.tcl tcl/lang/swedish-basic.tcl tcl/lang/swedish-eco.tcl tcl/lang/swedish-gpl.tcl tcl/lang/swedish-help.tcl tcl/lang/swedish-tips.tcl


############################################################
#
# You should not need to edit anything below this line.
#
############################################################

Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
nick
Level 5
Level 5
Posts: 684
Joined: Sat Dec 02, 2006 8:04 am

Re: ChessDB ./configure [tcl.h tk.h] errors

Post by nick »

Hi

Have you tried installing tcl8.4-dev tk8.4-dev

Nick
Verlager
Level 2
Level 2
Posts: 54
Joined: Sun Jul 01, 2007 1:23 pm

Re: ChessDB ./configure [tcl.h tk.h] errors

Post by Verlager »

Excellent! Your suggestion worked and I successfully compiled the program.

Thanks, have a good New Year!
Locked

Return to “Software & Applications”