![]() |
![]() |
#1 |
Jul 2013
3·5 Posts |
![]()
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 ? |
![]() |
![]() |
![]() |
#2 |
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 |
![]() |
![]() |
![]() |
#3 |
(loop (#_fork))
Feb 2006
Cambridge, England
11000111011112 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) |
![]() |
![]() |
![]() |
#4 |
Jul 2013
178 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 |
![]() |
![]() |
![]() |
#5 |
Tribal Bullet
Oct 2004
33×131 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.
|
![]() |
![]() |
![]() |
#6 |
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 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? |
![]() |
![]() |
![]() |
#7 |
Tribal Bullet
Oct 2004
33×131 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.
|
![]() |
![]() |
![]() |
#8 |
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 |
![]() |
![]() |
![]() |
#9 |
Tribal Bullet
Oct 2004
33·131 Posts |
![]()
That's the one. Happy factoring...
|
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Source code to mprime 289 out there somewhere? | graysky | Linux | 6 | 2016-04-25 23:03 |
Contributions to msieve source code | mickfrancis | Msieve | 23 | 2014-05-15 16:52 |
Source code for my program | Sam Kennedy | Factoring | 7 | 2012-11-22 18:24 |
PrimeNet source code? | ixfd64 | PrimeNet | 8 | 2009-12-11 14:26 |
llrnet - source code? | reezer | Prime Sierpinski Project | 11 | 2009-09-11 10:47 |