Using MinGW (not Cygwin) with Photran--can I simply rename/ copy mingw32-make.exe to "make.exe& [message #711588] |
Sat, 06 August 2011 10:53 |
Kevin Messages: 6 Registered: August 2011 |
Junior Member |
|
|
I'm a new Eclipse user and plan to gain proficiency in Fortran for scientific computing using the Photran package.
Just trying to get my setup configured properly now. I run Windows 7 32-bit, successfully installed Eclipse, and am now writing my "Hello world" program according to the procedure described here: http colon slash slash wiki.eclipse.org/PTP/photran/documentation/photran7#Starting_a_Project_with_an_Auto-Generated_Makefile
When I saved my source code and opened the Console view, I was told there were no consoles to display. So I poked around a bit and decided the proper thing to do was to choose "Build All" from the "Project" menu. The console output is shown below:
**** Build of configuration Debug for project HelloFortran ****
make all
Cannot run program "make": Launching failed
Error: Program "make" is not found in PATH
PATH=[C:\Tcl\bin;C:\Program Files\AMD APP\bin\x86;C:\Program Files\MiKTeX 2.9\miktex\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\MATLAB\R2010b\bin;C:\strawberry\c\bin;C:\strawberry\perl\site\bin;C:\strawberry\perl\bin;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Pandoc\bin;C:\FORTRAN\g95\bin]
**** Build Finished ****
This leads me to these questions:
1) I added the path C:\MinGW\bin\ to my PATH earlier today, and I checked afterwards to make sure it is still there. So it looks like that path is not picked up by Eclipse, or perhaps there is another PATH variable I don't know about. Could someone please clarify for me? (To change my PATH, I do the following: 1) right-clicked Computer; 2) Advanced System Settings; 3) Environment Variables; 3) edit "Path" variable in the System Variables pane.)
2) Once I sort problem (1) out, it looks like I may still have the same problem, since the MinGW programs are named "mingw32-make.exe", "mingw32-gfortran.exe", etc. What is the proper way to show Eclipse the way to the file it needs? Just copy and rename the binary to "make.exe" in the same directory? Or is there an Eclipse/Photran setting I can change?
Thanks in advance.
Kevin
|
|
|
|
|
Re: Using MinGW (not Cygwin) with Photran--can I simply rename/ copy mingw32-make.exe to "make. [message #712680 is a reply to message #711588] |
Sun, 07 August 2011 15:48 |
johngorno Messages: 1 Registered: August 2011 |
Junior Member |
|
|
I just spent at least six hours wrestling with this damn problem and I stumbled on a solution. Like everybody else, I was trying to build the "Hello World" sample and was getting "error "program "make" is not found in path"" -- Nothing I did helped: Eclipse had decided that make.exe was in a particular Default Folder, and I couldn't change its mind! I changed Eclipse's Project -> C/C++ -> Build -> environment PATH for that configuration, my Windows Path variable, but the error message kept giving me the same damn wrong (Default) PATH! (I have a prior installation of Cygwin, and maybe they've changed the default \bin\ location?) (This also caused a "file.h not found" and cascading unrecognized function call errors...)
Here's what worked: I changed my Windows Path (Control Panel -> System -> Advanced -> Environment Variables), then, in Eclipse's Project -> C/C++ -> Discovery options, clicked the CLEAR button (which SHOULD erase its memory of the old Path), then, before Building, I had to close and restart Eclipse for it to actually do so and see the change in the Windows Path variable! It still stubbornly lists the wrong Default Folder, but it works. To be on the safe side, I did the same Clearing process in the Eclipse window properties -> New CDT Project Wizard -> Makefile -> Discovery Options, and a new project can find make... (sarcasm) I didn't even have to restart Eclipse this time. This fix may be necessary for every separate project type.
Gorno
[Updated on: Sun, 07 August 2011 16:00] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.08339 seconds