mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Programming

Reply
 
Thread Tools
Old 2012-04-17, 16:02   #1
skan
 
skan's Avatar
 
Apr 2012

1368 Posts
Default 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:
http://repo.or.cz/w/pachi.git/snapshot/91ab12a2a40c4368a4d1893a37bc998b88360c5e.zip
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
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:
http://pachi.or.cz/pachi-d8248-win32.7z
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++'
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
skan is offline   Reply With Quote
Old 2012-04-17, 19:36   #2
Batalov
 
Batalov's Avatar
 
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2

100100111101112 Posts
Default

Stronger than Leela? 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: http://pachi.or.cz/ Anyone who can compile, can git :-)
Batalov is offline   Reply With Quote
Old 2012-04-17, 19:45   #3
skan
 
skan's Avatar
 
Apr 2012

2·47 Posts
Default

Quote:
Originally Posted by Batalov View Post
Stronger than Leela? 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: http://pachi.or.cz/ Anyone who can compile, can git :-)

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

http://senseis.xmp.net/?KGSBotRatings
skan is offline   Reply With Quote
Old 2012-04-18, 18:37   #4
Batalov
 
Batalov's Avatar
 
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2

9,463 Posts
Default

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!)

# WIN=1
Batalov is offline   Reply With Quote
Old 2012-04-18, 19:01   #5
skan
 
skan's Avatar
 
Apr 2012

2×47 Posts
Default

Hello Batalov

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

Last fiddled with by skan on 2012-04-18 at 19:02
skan is offline   Reply With Quote
Old 2012-04-18, 22:38   #6
Batalov
 
Batalov's Avatar
 
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2

9,463 Posts
Default

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]
Batalov is offline   Reply With Quote
Old 2012-04-18, 23:20   #7
skan
 
skan's Avatar
 
Apr 2012

2·47 Posts
Default

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
skan is offline   Reply With Quote
Old 2012-04-18, 23:48   #8
Batalov
 
Batalov's Avatar
 
"Serge"
Mar 2008
Phi(4,2^7658614+1)/2

223678 Posts
Default

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.
Batalov is offline   Reply With Quote
Old 2012-04-19, 10:21   #9
skan
 
skan's Avatar
 
Apr 2012

2·47 Posts
Default

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?

Last fiddled with by skan on 2012-04-19 at 10:24
skan is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
GGNFS won't compile? pakaran Factoring 14 2015-09-05 23:36
Compile v26 on Windows Brain Software 1 2010-11-24 00:34
Anyone want to compile an OS X ecm for yoyo? jasong GMP-ECM 1 2009-03-14 11:22
help to compile.... em99010pepe Programming 8 2006-12-06 17:11
src2414 how to compile 64 bit in Linux Unregistered Software 1 2005-08-22 13:19

All times are UTC. The time now is 18:58.

Tue Jun 15 18:58:35 UTC 2021 up 18 days, 16:45, 1 user, load averages: 2.71, 2.34, 2.32

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

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.