Thanks for all the suggestions everyone!

The /configure CC="clang" LINK="clang" THREADS="" didn't get me any further.

When I went to compile, I received this lastly:

...

g++  -O3 -fno-rtti -fno-exceptions  -Wall  -DZLIB 
-F/System/Library/Frameworks/Tcl.framework 
-F/System/Library/Frameworks/Tk.framework -o src/pgnscid.o -c src/pgnscid.cpp
In file included from src/index.h:26:0,
                 from src/pgnscid.cpp:17:
src/sortcache.h:24:18: fatal error: string: No such file or directory
 #include <string>
                  ^
compilation terminated.
make: *** [src/pgnscid.o] Error 1

...


I didn't get away with the --ignore command.  I just received a lot more "No 
such file or directory" orders.  

My current gcc package is 4.8.  I do have the newest x11 2.7.4 installed.  Not 
to sure what else I could have missed.  Apart from the regular Xcode dev tools, 
I use homebrew repos to update must of everything else.  I'm compiling scid 4.4 
in my home folder to forgo any permissions issues.  I'm wondering if there be 
some pathing settings I've overlooked?


Francis



On Apr 9, 2013, at 8:36 PM, Ben St-Pierre <benbon...@gmail.com> wrote:

> Hello Francis,
> 
> Here's what I just sent the developers.
> 
> If you can't read any of this, just keep in mind that it seems
> possible to compile Scid 4.4 on a Mac.
> 
> I'll get some sleep and write back to the mailing list.
> 
> Or you can try again and report yourself.
> 
> If you need a hand to understand what is said below, please ask.
> 
> Good luck!
> 
> Ben
> 
> 
> ---------- Forwarded message ----------
> From: Ben St-Pierre <benbon...@gmail.com>
> Date: Tue, Apr 9, 2013 at 11:32 PM
> Subject: Re: [Scid-users] compiling 4.4 on Mac
> To: Fulvio <f...@libero.it>, Israel Chauca <israelvar...@fastmail.fm>,
> Steve A <stevena...@gmail.com>
> 
> 
> Hello Fulvio and other interested parties,
> 
> For what it's worth, I've run into the same problem as Francis, except
> for this error message:
> 
>> g++  -O3 -fno-rtti -fno-exceptions -std=c++0x -pthread -Wall   
>> -F/System/Library/Frameworks/Tcl.framework 
>> -F/System/Library/Frameworks/Tk.framework -o src/pgnscid.o -c src/pgnscid.cpp
>> cc1plus: error: unrecognized command line option "-std=c++0x"
>> make: *** [src/pgnscid.o] Error 1
> 
> After undoing the make command with make clean, I tried
> 
>> ./configure CC="clang" LINK="clang" THREADS=""
> 
> g++ was happy, except for this:
> 
>> src/index.cpp: In member function ‘void Index::FreeCache(int)’:
>> src/index.cpp:2025: warning: comparison between signed and unsigned integer 
>> expressions
> 
> Is this relevant to you?
> 
> ***
> 
> But then I had this:
> 
>> In file included from src/tkscid.h:58,
>> from src/stored.cpp:328:
>> /usr/include/tk.h:78:23: error: X11/Xlib.h: No such file or directory
> 
> which means I need X11, right?
> 
> If that's so, it seems one needs X11, and Apple points to this for
> Mountain Lion:
> 
> http://xquartz.macosforge.org
> 
> ***
> 
> Please note that I already have XCode and the Command-line tools installed.
> 
> It might be possible to bypass this with this
> 
> https://github.com/kennethreitz/osx-gcc-installer
> 
> But I have no idea.
> 
> ***
> 
> Retrying Fulvio's magic trick, I still got this:
> 
>> unrecognized command line option "-std=c++0x"
> 
> StackOverFlow tells me that I need to update gcc to 4.7.
> I got fed up by many solutions.
> Then I found these instructions:
> 
> http://www.ficksworkshop.com/blog/14-coding/65-installing-gcc-on-mac
> 
> ***
> 
> So here we go.
> 
> First install Macports.
> 
> http://www.macports.org/install.php
> 
> Second, update the port:
> 
>> sudo port selfupdate
> 
> Third, install gcc47 (takes a while, a few hours for me, since it
> builds all the dependencies):
> 
>> sudo port install gcc47
> 
> To list all the gcc on the machine, type:
> 
>> port select --list gcc
> 
> Fourth, the last command is unnecessary, as you need to type:
> 
>> sudo port select --set gcc mp-gcc47
> 
> ***
> 
> Fifth, I'm ready to compile.
> Beware that with xQuartz, but you need to reference them explicitly [1].
> I try the lazy way out, i.e. make a symbolic link at /usr/include:
> 
>> sudo ln -s /opt/X11/include/X11 /usr/include
> 
> [1]: 
> http://stackoverflow.com/questions/14321038/x11-xlib-h-no-such-file-or-directory-on-mac-os-x-mountain-lion
> 
> Six, I simply typed
> 
>> ./configure
> 
> and
> 
>> make
> 
> Seventh, heaven:
> 
>> ./scid
> 
> It opens.  Yeah!
> 
> But wait, the older version seems to starts!
> 
> I remove it, make clean, configure and make again, then ./scid
> 
> I see the splash screen, but this:
> 
>> Unable to start the program /Applications/Scid.app/Contents/[...]/togall
> 
> Seems that scid wishes to use my old layout information.  Hmmm.
> 
> ***
> 
> Here is the error message:
> 
> ./scid
> Error in startup script: Invalid slave specification
>    while executing
> "$nb select [ lindex [ $nb tabs] 0 ]"
>    (procedure "::docking::layout_restore_nb" line 41)
>    invoked from within
> "::docking::layout_restore_nb $pw $name $tabs"
>    (procedure "layout_restore_pw" line 25)
>    invoked from within
> "layout_restore_pw [lindex $elt 1]"
>    (procedure "layout_restore_pw" line 20)
>    invoked from within
> "layout_restore_pw [lindex $elt 1]"
>    (procedure "layout_restore_pw" line 20)
>    invoked from within
> "layout_restore_pw [lindex $elt 1]"
>    (procedure "layout_restore_pw" line 20)
>    invoked from within
> "layout_restore_pw [lindex $elt 1]"
>    (procedure "layout_restore_pw" line 20)
>    invoked from within
> "layout_restore_pw [lindex $elt 1]"
>    (procedure "layout_restore_pw" line 20)
>    invoked from within
> "layout_restore_pw [lindex $data 1]"
>    (procedure "layout_restore_pw" line 10)
>    invoked from within
> "layout_restore_pw $::docking::layout_list($slot)"
>    (procedure "::docking::layout_restore" line 17)
>    invoked from within
> "::docking::layout_restore 1"
>    invoked from within
> "if { $::docking::USE_DOCKING } {
>  setTitle .main [ ::tr "Board" ]
>  # restore geometry
>  wm minsize $dot_w 360 320
>  setWinLocation $dot_w
>  setWinSi..."
>    (file "./scid" line 149798)
> 
> Does this mean anything to you, Steven?
> 
> ***
> 
> I decide to make install anyway:
> 
> No chance.  I make uninstall (which works, yeah!) and make clean.
> 
> ***
> 
> OK.  One last try before bed.
> 
> Looking at Makefile.darwin, I notice:
> 
>> make all_scid
> 
> This would bypass the engines.  Neat!  I try it.
> 
> Still lots of warnings.  Still the request to togall.  Damn.
> 
> Let's
> 
>> make install_scid
> 
> Still does not work.
> 
> Still, happy to bypass the compilation of the chess engines.
> 
> ***
> 
> God I'm stupid: if the problem is my previous layout, what about
> restoring the deleted Scid?
> 
> I do that.
> 
> I have Scid 4.4 on my computer.
> 
> Proof attached.
> 
> It was the good version that started, but with my previous layout.
> 
> Good night,
> 
> Ben
> <Scid4.4osx.png>

Attachment: smime.p7s
Description: S/MIME cryptographic signature

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Scid-users mailing list
Scid-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scid-users

Reply via email to