Help installing scidb

Discussion of chess software programming and technical issues.

Moderators: hgm, Dann Corbit, Harvey Williamson

User avatar
Ponti
Posts: 493
Joined: Wed Mar 15, 2006 6:13 am
Location: Curitiba - PR - BRAZIL

Help installing scidb

Post by Ponti »

I get this error after ./configure :

------------------------
configure: Makefile configuration program for Scidb
Tcl/Tk version: 8.5
Your operating system is: Linux 3.2.0-4-686-pae
Distributor: Debian
Revision: 7.0
Checking if your system has gcc installed: yes (version 4.7).
Checking if your system has g++ installed: yes (version 4.7).
Checking if your compiler supports SSE2: yes.
Checking if your kernel supports __sync_* builtin functions: yes.
Checking your fontconfig version:

Cannot install Scidb because library fontconfig
cannot be found.
-code 1 -level 0 -errorcode {POSIX ENOENT {no such file or directory}} -errorinfo {couldn't execute "./testfontconfig": no such file or directory
while executing
"exec ./testfontconfig"} -errorline 22
can't use non-numeric string as operand of "/"
while executing
"expr {$version/10000}"
(procedure "checkFontConfig" line 31)
invoked from within
"checkFontConfig"
invoked from within
"if {[string length $gxxVer]} {
if {$gccVer ne $gxxVer} {
puts "Compiler version mismatch. Please configure CC and GXX with same versions,"..."
(file "./configure" line 2153)
-------------------------------------

system: Lenovo Atom S10-2
Crunchbang linux

Scidb can be found at: http://scidb.sourceforge.net/index.html
A. Ponti
AMD Ryzen 1800x, Windows 10.
FIDE current ratings: standard 1913, rapid 1931
zullil
Posts: 6442
Joined: Tue Jan 09, 2007 12:31 am
Location: PA USA
Full name: Louis Zulli

Re: Help installing scidb

Post by zullil »

Ponti wrote:I get this error after ./configure :

------------------------
configure: Makefile configuration program for Scidb
Tcl/Tk version: 8.5
Your operating system is: Linux 3.2.0-4-686-pae
Distributor: Debian
Revision: 7.0
Checking if your system has gcc installed: yes (version 4.7).
Checking if your system has g++ installed: yes (version 4.7).
Checking if your compiler supports SSE2: yes.
Checking if your kernel supports __sync_* builtin functions: yes.
Checking your fontconfig version:

Cannot install Scidb because library fontconfig
cannot be found.
-code 1 -level 0 -errorcode {POSIX ENOENT {no such file or directory}} -errorinfo {couldn't execute "./testfontconfig": no such file or directory
while executing
"exec ./testfontconfig"} -errorline 22
can't use non-numeric string as operand of "/"
while executing
"expr {$version/10000}"
(procedure "checkFontConfig" line 31)
invoked from within
"checkFontConfig"
invoked from within
"if {[string length $gxxVer]} {
if {$gccVer ne $gxxVer} {
puts "Compiler version mismatch. Please configure CC and GXX with same versions,"..."
(file "./configure" line 2153)
-------------------------------------

system: Lenovo Atom S10-2
Crunchbang linux

Scidb can be found at: http://scidb.sourceforge.net/index.html
In the script named configure, find the following portion (starting near line 810)

Code: Select all

# findFontconfig:
#    Find the fontconfig path.
#    Returns 1 on success, 0 on failure.
#
proc findFontconfig {} {
    variable option

    set path {
        /usr/local/include/fontconfig
        /usr/include/fontconfig
    }

    puts -nonewline "    Checking if your system has fontconfig: "
    set dir [FindDir "fontconfig.h" $path]

    if {[string length $dir]} {
        set option(HAVE_XFT) "-DHAVE_XFT"
        puts "yes."
    } else {
        puts "no."
    }
}
Is your fontconfig.h file located in either of the directories in the path variable above? If not, add the directory to the list.

Also, in the same configure script (starting near line 1680)

Code: Select all

# TestFontConfig.sh:
#    Script used to test the fontconfig version
#    (because version 3.8 is corrupt).
#
set TestFontConfig {#!/bin/sh
cat <<EOF > testfontconfig.c
#include <stdio.h>
extern int FcGetVersion&#40;);
int main&#40;)
&#123;
    printf&#40;"%d", FcGetVersion&#40;));
    return 0;
&#125;
EOF

__CC__ -o testfontconfig testfontconfig.c -lfontconfig
if &#91; -f testfontconfig &#93;; then
    exit 0
else
    exit 1
fi
&#125;
try inserting -L/path-to-your-libfontconfig before the -lfontconfig
kinderchocolate
Posts: 454
Joined: Mon Nov 01, 2010 6:55 am
Full name: Ted Wong

Re: Help installing scidb

Post by kinderchocolate »

Louis, do you have the built executable?
zullil
Posts: 6442
Joined: Tue Jan 09, 2007 12:31 am
Location: PA USA
Full name: Louis Zulli

Re: Help installing scidb

Post by zullil »

kinderchocolate wrote:Louis, do you have the built executable?
No. I spent a couple of hours making patches trying to get it to build on OS X, but ran out of time. Replaced various linux-specific headers with OS X equivalents, but still had an issue with some typedef being duplicated.
User avatar
Jim Ablett
Posts: 1343
Joined: Fri Jul 14, 2006 7:56 am
Location: London, England
Full name: Jim Ablett

Re: Help installing scidb

Post by Jim Ablett »

I compiled it without issue on my 32 bit Puppy Linux chess distro. This distro is Ubuntu Precise based.

I get an error message about a missing x-font when I run it, but it still works ok.
Here is the compiled package (you will need tk/tcl libs installed) >

http://db.tt/JYGbKaqa

Jim.
kinderchocolate
Posts: 454
Joined: Mon Nov 01, 2010 6:55 am
Full name: Ted Wong

Re: Help installing scidb

Post by kinderchocolate »

Jim, how did you install the fontconfig library? I can't compile because I haven't figured out where to get it.
User avatar
Jim Ablett
Posts: 1343
Joined: Fri Jul 14, 2006 7:56 am
Location: London, England
Full name: Jim Ablett

Re: Help installing scidb

Post by Jim Ablett »

kinderchocolate wrote:Jim, how did you install the fontconfig library? I can't compile because I haven't figured out where to get it.
I don't remember whether it came pre-installed or I built the library myself.
You should be able to build and install it on your system.

http://www.linuxfromscratch.org/blfs/vi ... onfig.html
http://www.freedesktop.org/wiki/Software/fontconfig/

Jim.
Jesse Gersenson
Posts: 593
Joined: Sat Aug 20, 2011 9:43 am

Re: Help installing scidb

Post by Jesse Gersenson »

kinderchocolate wrote:Jim, how did you install the fontconfig library? I can't compile because I haven't figured out where to get it.
This may suggest a package to install:

Code: Select all

apt-cache search fontconfig
kinderchocolate
Posts: 454
Joined: Mon Nov 01, 2010 6:55 am
Full name: Ted Wong

Re: Help installing scidb

Post by kinderchocolate »

Thanks. Everything works here.