mersenneforum.org Need Win7 install CD
 Register FAQ Search Today's Posts Mark Forums Read

2017-06-01, 22:46   #12
Xyzzy

"Mike"
Aug 2002

2×3×5×257 Posts

Quote:
 Originally Posted by ewmayer …which would allow me to use a downloaded .iso, once I do all the associated create-a-bootable-USB fvckery.

 2017-06-02, 07:08 #13 ewmayer ∂2ω=0     Sep 2002 República de California 2·13·443 Posts First step was a Thinkpad mem-upgrade from the original 512MB to the Win7-minimum 2GB - turns out I had all I needed at home already. The ddr2 dimms are same standard kind as in my vintage macbook, so looked thru the 3 defunct macbooks in my e-cycle box, found one of them still had a pair of 1GB dimms. Got Win7 install DVD + license code from housemate, OS upgrade - or more accurately, clean install - underway. Last fiddled with by ewmayer on 2017-06-02 at 07:09
 2017-06-02, 08:25 #14 ewmayer ∂2ω=0     Sep 2002 República de California 2·13·443 Posts Win7 install complete - on to the posix/gcc/pthreads support layer - first 2 options that spring to mind are mingw-w64 and cygwin, but been years since I used the older mingw64, and never used cygwin. Any suggestions to help me make my choice are welcome.
 2017-06-02, 08:29 #15 ATH Einyen     Dec 2003 Denmark 27×23 Posts This is an easy way to create bootable USB drives for almost any OS: https://rufus.akeo.ie/
2017-06-02, 11:25   #16
WraithX

Mar 2006

23·59 Posts

Quote:
 Originally Posted by ewmayer Win7 install complete - on to the posix/gcc/pthreads support layer - first 2 options that spring to mind are mingw-w64 and cygwin, but been years since I used the older mingw64, and never used cygwin. Any suggestions to help me make my choice are welcome.
I would recommend avoiding cygwin. When you compile in that environment, you (generally) add a dependency to all of your executabels that require cygwin.dll in order to run. You can use an msys shell to compile with mingw64 and not have any such additional dependency. I wrote up a post a while back describing how I compile GMP and GMP-ECM. It tells where I got msys and mingw64, and how I switched between different versions of the mingw64 compiler, ie by editing the \etc\profile file. I just checked the links and they are all still relevant. Mingw64 has gcc versions from 4.8.1 up to 7.1.0. Hopefully this will be helpful for you, too.

http://www.mersenneforum.org/showpost.php?p=431359

Which is post 416 of this thread:
http://www.mersenneforum.org/showthr...t=4087&page=38

2017-06-03, 22:03   #17
ewmayer
2ω=0

Sep 2002
República de California

2×13×443 Posts

Quote:
 Originally Posted by Gordon How about a licence key for $4 ? I may need such a key after all - my Win7 install was fine but I did not attempt to register it because it turns out that while my housemate is running Win10, that is via upgrade-install from his Win7, i.e. based on the same license key. (That is as he described it.) Q: The eBay item is for Win7Pro - will that also cover Win7 Home Edition (which is what I installed)? ---------------------- WraithX, thanks for the notes and links - I need to first finish upgrading the basic linux auto-config setup to work with the v17 codebase and test in under genuine linux, then I will move on to the mingw64-based setup under Win7, will post updates as they warrant it. 2017-06-05, 10:55 #18 henryzz Just call me Henry "David" Sep 2007 Cambridge (GMT/BST) 131328 Posts Quote:  Originally Posted by ewmayer I may need such a key after all - my Win7 install was fine but I did not attempt to register it because it turns out that while my housemate is running Win10, that is via upgrade-install from his Win7, i.e. based on the same license key. (That is as he described it.) Q: The eBay item is for Win7Pro - will that also cover Win7 Home Edition (which is what I installed)? ---------------------- WraithX, thanks for the notes and links - I need to first finish upgrading the basic linux auto-config setup to work with the v17 codebase and test in under genuine linux, then I will move on to the mingw64-based setup under Win7, will post updates as they warrant it. I don't think the pro key will cover it as such although you may be able to upgrade an inactivated version of windows using the key. The inbuilt way to upgrade windows is "Windows anytime upgrade" for windows 7. Hopefully that will accept your pro key and do what you want. 2017-06-06, 01:17 #19 ewmayer 2ω=0 Sep 2002 República de California 101100111111102 Posts Quote:  Originally Posted by henryzz I don't think the pro key will cover it as such although you may be able to upgrade an inactivated version of windows using the key. The inbuilt way to upgrade windows is "Windows anytime upgrade" for windows 7. Hopefully that will accept your pro key and do what you want. Think for now I'll just do what I need to do in terms of testing the Mlucas v17 release build under Win64, then bug Mike/Xyzzy to share his "you can extend the 30-day trial up to a year" sekrit trick with me. ------------------------------------- Quote:  Originally Posted by WraithX I would recommend avoiding cygwin. When you compile in that environment, you (generally) add a dependency to all of your executabels that require cygwin.dll in order to run. You can use an msys shell to compile with mingw64 and not have any such additional dependency. I wrote up a post a while back describing how I compile GMP and GMP-ECM. It tells where I got msys and mingw64, and how I switched between different versions of the mingw64 compiler, ie by editing the \etc\profile file. I just checked the links and they are all still relevant. Mingw64 has gcc versions from 4.8.1 up to 7.1.0. Hopefully this will be helpful for you, too. http://www.mersenneforum.org/showpost.php?p=431359 Which is post 416 of this thread: http://www.mersenneforum.org/showthr...t=4087&page=38 OK, I downloaded this: MinGW-W64 GCC-7.1.0 / x86_64-posix-seh also the 7zip package for Win, installed the latter and used it to unpack the former, as well as the xzipped tarball of my code. gcc -v shows what appears to be a properly configured gcc setup, but test-compilation (without even enabling multithreading in the target code) gives this error dialog: cc1.exe - System Error The program can't start because libwinpthread-1.dll is missing from your computer. Try reinstalling the program to fix this problem. Is there some mingw64-configuration step I need to do after unpacking the package, or some set of runtime libs I need to download separately? Note I have no MSFT-build-tools installation, nor do I want to require potential Mlucas-on-Win users to have such. I want to keep the number-of-things-you-need-to-download-and-unzip-and/or-install to an absolute minimum - we're already up to 3 items [Mlucas tarball, mingw64 tarball, 7zip auto-installer.] Edit: I downloaded a copy of the above pthread dll from here, followed the copy-dll-to-both-\Windows\System32-and-\Windows\SysWOW64 instructions, rebooted system, retried simple single-file compile, now get error dialog with cc1.exe - Application Error The application was unable to start correctly (0xc000007b). Click OK to close the application Last fiddled with by ewmayer on 2017-06-06 at 01:41 2017-06-06, 11:53 #20 WraithX Mar 2006 23·59 Posts Quote:  Originally Posted by ewmayer Think for now I'll just do what I need to do in terms of testing the Mlucas v17 release build under Win64, then bug Mike/Xyzzy to share his "you can extend the 30-day trial up to a year" sekrit trick with me. ------------------------------------- OK, I downloaded this: MinGW-W64 GCC-7.1.0 / x86_64-posix-seh Edit: I downloaded a copy of the above pthread dll from here, followed the copy-dll-to-both-\Windows\System32-and-\Windows\SysWOW64 instructions, rebooted system, retried simple single-file compile, now get error dialog with cc1.exe - Application Error The application was unable to start correctly (0xc000007b). Click OK to close the application Hmmm, does your mingw64 download have the following file: c:/path/to/mingw64/bin/libwinpthread-1.dll That should be included with your mingw64 download. Also, when you edit the profile file for msys, you are including the mingw64/bin folder as part of the path. Then, once you've saved your changes to the profile file, you can open an msys shell and do all of your compiling inside of the msys shell. What does your path inside msys look like? You can check with echo$PATH

Once compiled, you will only need your executable and (if necessary) the pthread.dll to run your code on another computer.

2017-06-06, 14:53   #21
Xyzzy

"Mike"
Aug 2002

771010 Posts

Quote:
 Originally Posted by ewmayer …then bug Mike/Xyzzy to share his "you can extend the 30-day trial up to a year" sekrit trick with me.
https://www.techsgig.com/extend-wind...p-to-one-year/

 2017-06-06, 18:51 #22 jasonp Tribal Bullet     Oct 2004 3,529 Posts You can also try running Msys2 as a no-worries unix development layer on windows. It also comes with the pacman package manager, so keeping it up to date is pretty easy. After fighting mingw64 for years it was refreshingly easy to switch to this.

 Similar Threads Thread Thread Starter Forum Replies Last Post swl551 Software 23 2014-10-17 16:25 wildrabbitt Information & Answers 16 2014-07-16 06:01 benDan Software 4 2012-12-17 05:59 willmore Software 6 2009-11-07 05:33 jasong Linux 2 2006-12-07 00:38

All times are UTC. The time now is 15:14.

Wed Sep 30 15:14:12 UTC 2020 up 20 days, 12:25, 0 users, load averages: 1.29, 1.52, 1.61