Visit Our UNIX and Linux User Community


Cross complie linux make files onto a windows 7 machine using PGI Cygwin


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Cross complie linux make files onto a windows 7 machine using PGI Cygwin
# 1  
Old 06-09-2011
Cross complie linux make files onto a windows 7 machine using PGI Cygwin

Hello,


I am very unfamiliar with linux/unix (don't even know the difference), but am trying to get some linux software to run on my Windows machine for my research. I have the makefiles for the software, and it is designed to be compiled in the PGI complier, which I also have. When i try to compile the software i start the bash shell through PGI, go to the directory of the makefiles and enter the command:

make -f make_rrtm_linux_pgi
or
gmake -f make_rrtm_linux_pgi

I've attached screenshots of both trials
in both cases, there seems to be an error, in the case of gmake, something seems to happen, but it makes a .o file (which I can't find) where I need to be making a .exe file.

I have been stuck on this for a while, and obviously don't know what I'm doing, any help would be appreciated. The program I am trying to run is RRTM, an atmospheric modelling program available free at (rtweb.aer.com/rrtm_frame.html )

Thanks!
Cross complie linux make files onto a windows 7 machine using PGI Cygwin-cygwin-make-screenshotjpg
# 2  
Old 06-09-2011
It expects the src to be one directory up from you, i.e. "../src". Also adjust the paths in the makefile to fit your system.

cross-compiling is to compile binaries for one machine on another machine, you're just trying to compile binaries for one machine on the same machine.
# 3  
Old 06-09-2011
Thanks for the quick reply!

To clarify, these are linux binaries I'm trying to complie onto a Windows 7 X64 machine, so i think that I am trying to cross compile.

The file structure that came when it was uncompressed is: /rrtm_sw/src, /rrtm_sw/makefiles. I moved the makefile to the parent directory (rrtm_sw) and re-ran gmake, and got the following screen:

I think I need to tell it to cross compile somwhow, as I am still trying to make a .o file...
Cross complie linux make files onto a windows 7 machine using PGI Cygwin-cygwin-make-screenshot-2jpg
# 4  
Old 06-09-2011
Quote:
Originally Posted by roba87
Thanks for the quick reply!

To clarify, these are linux binaries
Windows is not Linux. You can't use Linux binaries on Windows. You should try downloading the source and building from that instead.

It may be complaining because you don't have mv installed, or perhaps not in your PATH.
# 5  
Old 06-09-2011
Sorry, I think I have my terminology wrong, I do have the source files (they are fortran, i beleive with .f extensions) and am trying to complie it in windows. The makefiles are designed for linux though, i beleive (at least they are named as such)
# 6  
Old 06-09-2011
Do you have mv installed and in your PATH?
# 7  
Old 06-09-2011
yes, at least typing 'mv --help' will pull up help for it, so i'm assuming that the whole thing is tehre
 

Previous Thread | Next Thread
Test Your Knowledge in Computers #742
Difficulty: Medium
XL Fortran is the name of an open source Fortran compiler for IBM-supported environments, including Linux for big-endian distributions and AIX.
True or False?

10 More Discussions You Might Find Interesting

1. IP Networking

Cant ping Linux machine from Windows

Hi I have established LAN with the help of D-Link router. I am having 2 desktops ethernet connection managed by this D-Link router. One PC is with Windows 7 OS Second PC is with Redhat Linux 6.1 Both the PCs now stands connected to internet via this D-Link router. I could ping windows PC... (12 Replies)
Discussion started by: videsh77
12 Replies

2. UNIX for Dummies Questions & Answers

Copy files from Linux server local windows machine using a shell script

Hello, I need to create a shell script which will copy files - which are created on particular date and starting with particular name - to local windows XP machine. Is this possible.? Currently it is being done manually using winscp (1 Reply)
Discussion started by: NarayanaPrakash
1 Replies

3. Ubuntu

Steps to connect linux (Ubuntu) machine from windows 7

Hi, Can anyone give me the steps to connect ubuntu from windows7? Thanks (1 Reply)
Discussion started by: diehard
1 Replies

4. Shell Programming and Scripting

File transfer from Windows machine to Linux server

Hi guys, I need to send a txt file from a windows machine to Linux server. Any help is appreciated.... Thanks... (3 Replies)
Discussion started by: gowrishankar05
3 Replies

5. Shell Programming and Scripting

shell script to copy files frm a linux machine to a windows machine using SCP

I need a shell script to copy files frm a linux machine to a windows machine using SCP. The files keeps changing day-to-day. I have to copy the latest file to the windows machine frm the linux machine. for example :In Linux, On July 20, the file name will be 20.txt and it should be copied to... (3 Replies)
Discussion started by: nithin6034
3 Replies

6. Programming

Cross compiling under Windows for Linux

I have two headless servers I am writing code for, and a Windows box networked with them. I want to compile my code within an IDE on the Windows box (eclipse most likely) and run the compiled binarys on the Linux boxes. Will this work? Using Cygwin (or MinGW)? Thoughts? Cheers, Ian (8 Replies)
Discussion started by: IanVaughan
8 Replies

7. Shell Programming and Scripting

SSH into a linux machine from a windows machine

I basically want to login into different linux machines( on the same network) from a windows machine. I know i can use ssh <machine name>. But i want to automate this process. I dont want to enter the username and password. Is there any way to do it. Can i make some sort of a batch script for it. (4 Replies)
Discussion started by: lassimanji
4 Replies

8. UNIX for Advanced & Expert Users

how can i copy data in LINUX Machine to windows XP

Can anyone tell me how can i copy data in LINUX Machine to windows XP Thanks, Sandeep (2 Replies)
Discussion started by: bsandeep_80
2 Replies

9. UNIX for Advanced & Expert Users

view remote linux desktop on my windows machine

Hi, is there anyway i can view a remote linux desktop on my windows desktop? i am aware that X11 can see 'certain screens'. For eg if i type 'xclock &' and i have a client running on my windows, i can see the clock. If i am interested to see the entire desktop of my linux, how can i do it? (4 Replies)
Discussion started by: new2ss
4 Replies

10. Programming

How to complie a c++ program in Unix or Cygwin?

Can I use gcc to compile a piece of c++ code? Do I need to name the file that contains the code as .cpp? Thank you (14 Replies)
Discussion started by: meili100
14 Replies

Featured Tech Videos