mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Programming (https://www.mersenneforum.org/forumdisplay.php?f=29)
-   -   Help me compile Pachi GO program, please (https://www.mersenneforum.org/showthread.php?t=16734)

skan 2012-04-17 16:02

Help me compile Pachi GO program, please
 
Hello

I'm trying to compile Pachi Go game with sezero mingw64.
It's supposed to be the best free program to play GO.
Here is the latest snapshot:
[URL="Pachi 2012-03-30 "]http://repo.or.cz/w/pachi.git/snapshot/91ab12a2a40c4368a4d1893a37bc998b88360c5e.zip[/URL]
I'm not an IT specialist and I couldn't compile it properly.

[QUOTE]The system cannot find the path specified.
'target' is not recognized as an internal or external command[/QUOTE]

I've tried editing the Makefile and changing the folder names, substituting pthread with lpthread and many other things.

I've also found an older precompiled version that doen't work well with my GOGUI game interface, but includes a Makefile that could be useful:
[URL="pachi-d8248-win32.7z"] http://pachi.or.cz/pachi-d8248-win32.7z[/URL]
But I couldn't compile it either, it's been created for Dev-C++.
[QUOTE]"please include wincock2.h"....
y * *
gcc.exe: unrecognized option '-static-libstdc++'[/QUOTE]

Could you tell me what makefile should I use, please?
The official pachi site doesn't give much support for Windows nor mingw.

thanks

Best regards

Batalov 2012-04-17 19:36

Stronger than [URL="http://www.sjeng.org/leela.html"]Leela[/URL]? Interesting! I'll have a look in the evening.
(I see that Jean-loup Gailly is one of the develpers. Niiice!)

You will get better response results if you would post not so frighteningly looking (potentially virally looking) URLs (yeah I can see that it is git-repo-generated). The main site reference would have been better: [URL]http://pachi.or.cz/[/URL] Anyone who can compile, can git :-)

skan 2012-04-17 19:45

[QUOTE=Batalov;296660]Stronger than [URL="http://www.sjeng.org/leela.html"]Leela[/URL]? Interesting! I'll have a look in the evening.
(I see that Jean-loup Gailly is one of the develpers. Niiice!)

You will get better response results if you would post not so frighteningly looking (potentially virally looking) URLs (yeah I can see that it is git-repo-generated). The main site reference would have been better: [URL]http://pachi.or.cz/[/URL] Anyone who can compile, can git :-)[/QUOTE]


I'm sorry, I thought it was more comfortable for other.

[url]http://senseis.xmp.net/?KGSBotRatings[/url]

Batalov 2012-04-18 18:37

Sorry, I can't help you with a mingw64 build, but it builds and runs fine on x86_64.
I built the 03-30 snapshot, i.e. the same that you referenced.
Looking at makefile:
[CODE]# Do you compile on Windows instead of Linux? Please note that the
# performance may not be optimal.
# (XXX: For now, only the mingw target is supported on Windows.
# Patches for others are welcome!)

[U]# WIN=1[/U]
[/CODE]

skan 2012-04-18 19:01

Hello Batalov

what compiler did you use?
The first thing I tried was uncomenting that WIN=1, but using minw64.

Batalov 2012-04-18 22:38

Weill it is an OpenSUSE 12.1 box and it has gcc version 4.6.2. All pretty standard.
[CODE]> uname -a
Linux ya 3.1.9-1.4-desktop #1 SMP PREEMPT Fri Jan 27 08:55:10 UTC 2012 (efb5ff4) x86_64 x86_64 x86_64 GNU/Linux
> gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib64/gcc/x86_64-suse-linux/4.6/lto-wrapper
Target: x86_64-suse-linux
Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64 --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.6 --enable-ssp --disable-libssp --disable-plugin --with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --disable-libgcj --disable-libmudflap --with-slibdir=/lib64 --with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-version-specific-runtime-libs --program-suffix=-4.6 --enable-linux-futex --without-system-libunwind --with-arch-32=i586 --with-tune=generic --build=x86_64-suse-linux
Thread model: posix
gcc version 4.6.2 (SUSE Linux)
> cat /proc/cpuinfo
processor : 0 [times 6]
vendor_id : AuthenticAMD
cpu family : 16
model : 10
model name : AMD Phenom(tm) II X6 1055T Processor
stepping : 0
cpu MHz : 3415.000
cache size : 512 KB
physical id : 0
siblings : 6
core id : 0
cpu cores : 6
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 6
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc extd_apicid aperfmperf pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt cpb npt lbrv svm_lock nrip_save pausefilter
bogomips : 6831.29
TLB size : 1024 4K pages
clflush size : 64
cache_alignment : 64
address sizes : 48 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate [9]
[/CODE]

skan 2012-04-18 23:20

Batalov, I thought you were speaking about Windows.
I know Pachi can be compiled easily in Linux because it's mainly developed for that O.S

Batalov 2012-04-18 23:48

No, it is my fault: I haven't paid attention to mingw64 in your original message. However, note that even the Pachi developers don't know how to build on mingw64 (as per their own admission in Makefile). Porting (is what you are essentially asking about) is 1) not easy and 2) won't likely to give good results at least initially.

You may want to run the program in a virtual machine.

skan 2012-04-19 10:21

Hi

I'm trying to use mingw64 because is the only free x64 windows compiler I know.

Could you please compile it in Linux but targeting x86_64 Windows binaries, please?


All times are UTC. The time now is 01:52.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.