mersenneforum.org Source Code for msieve ?
 Register FAQ Search Today's Posts Mark Forums Read

 2013-09-22, 09:17 #1 mohamed   Jul 2013 11112 Posts Source Code for msieve ? I am studying integer factorization nowadays and I was wandering if msieve's source code is available ( I want to compile it because I want to make some changes in the code from what I've learnt and see what's the results are) , so anyone can guide me where to find it ? I found this link before https://github.com/radii/msieve but this version is too old and besides that I didn't know how to compile it successfully. Any help in finding the source code to compile it on windows platform ?
 2013-09-22, 09:21 #2 debrouxl     Sep 2009 977 Posts The msieve source code is on SourceForge.net, as usual For me, the msieve SF.net project is the first search engine result Last fiddled with by debrouxl on 2013-09-22 at 09:22
 2013-09-22, 09:21 #3 fivemack (loop (#_fork))     Feb 2006 Cambridge, England 142638 Posts To get the code out of source control, do svn checkout svn://svn.code.sf.net/p/msieve/code/trunk msieve-code (you might want to download TortoiseSVN if you don't have an SVN client installed)
 2013-09-22, 10:54 #4 mohamed   Jul 2013 1510 Posts Thanks i've installed TortoiseSVN and downloaded the code, Could you please do me another favor and tell me how to build these files because i got stuck again ,, should i install some libraries first ? i am using VS2010 and didn't install GMP-ECM (i think those are optional) ,, but when i load the project from build.vc10 and (3. Open each of the four project configurations in turn and remove the 'gmp_ecm_config' item (right click and select 'Remove'). as said in the readme file there are errors for files not found. could you please state exactly which libraries should i install first or what to do to build this project successfully ? errors : Error 2 error C1083: Cannot open include file: 'pthread.h': No such file or directory c:\code\common\thread.c 15 Error 3 error C1083: Cannot open include file: 'gmp.h': No such file or directory c:\code\include\gmp_xface.h 19 Thank you very much Last fiddled with by mohamed on 2013-09-22 at 11:03
 2013-09-22, 15:19 #5 jasonp Tribal Bullet     Oct 2004 1101101000012 Posts You need to build either the GMP or MPIR libraries for big-integer support, and you also need to find a pthreads library for use in windows. Brian Gladman and Jeff Gilchrist can provide more information; the win32 binary on the sourceforge site has always used the Makefile to build from MinGW, where GMP is straightforward to build from source and pthreads are available natively.
 2013-12-12, 19:32 #6 humanoid   Dec 2013 2 Posts Hi, I'm trying to build msieve 1.51 with VS2010 as well but I'm getting this output error Code: 1>\msieve-1.51\common\smallfact\gmp_ecm.c(35): fatal error C1083: Cannot open include file: 'ecm.h': No such file or directory I already compiled a static mpir 2.6.0 lib and added the include directories to the project (for some reason relative paths didn't work, I had to use absolute paths). As for the pthreads library, I used this one -> https://www.sourceware.org/pthreads-win32/ I can't really find any information about that missing header though, maybe someone here can tell me what I'm missing?
 2013-12-13, 22:20 #7 jasonp Tribal Bullet     Oct 2004 3×1,163 Posts You need to build GMP-ECM, which is the library that provides ecm.h; if you don't care about using ECM then you remove the definition of HAVE_GMP_ECM and the missing header will be ignored.
 2013-12-13, 23:58 #8 humanoid   Dec 2013 2 Posts Thanks, the website for the GMP-ECM library was a little hard to find for me (its this one, right? -> https://gforge.inria.fr/projects/ecm/ ) But after I compiled it and linked it to the msieve solution I was able to build everything :) Last fiddled with by humanoid on 2013-12-13 at 23:59
 2013-12-14, 01:04 #9 jasonp Tribal Bullet     Oct 2004 348910 Posts That's the one. Happy factoring...

 Similar Threads Thread Thread Starter Forum Replies Last Post graysky Linux 6 2016-04-25 23:03 mickfrancis Msieve 23 2014-05-15 16:52 Sam Kennedy Factoring 7 2012-11-22 18:24 ixfd64 PrimeNet 8 2009-12-11 14:26 reezer Prime Sierpinski Project 11 2009-09-11 10:47

All times are UTC. The time now is 05:47.

Mon Nov 30 05:47:59 UTC 2020 up 81 days, 2:58, 3 users, load averages: 1.02, 1.34, 1.30