GIDForums  

Go Back   GIDForums > Computer Forums > Computer Software Forum - Linux
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 02-Nov-2006, 15:08
markyp markyp is offline
New Member
 
Join Date: Nov 2006
Posts: 26
markyp is on a distinguished road
Exclamation

linux and open gl


hi. I need to get a opengl graphics file to excute in linux have used the make method and think this worked but not sure of how to execute. Not a fan of linux but need to do my method looks something like this ./COMP307/src./eg1
??????????
  #2  
Old 02-Nov-2006, 20:15
davekw7x davekw7x is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Left Coast, USA
Posts: 5,311
davekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to behold

Re: linux and open gl


Quote:
Originally Posted by markyp
...my method looks something like this...

Here's the thing: With computers these days (at least with Linux), "something like this" doesn't feed the bulldog.

Tell us:

1. What is the name of the executable (the program that was created when you "used the make method")?

2. Where are you (what directory are you in) when you want to execute the program? Exactly.

3. Where (exactly) is the executable program?

4. Were there any installation instructions? Was there a README file or an INSTALL file in whatever directory you were in when you "used the make method"? Or: were there any installation instructions that you got from wherever you got the files that you used to create the executable? Did you do anything other than enter "make"? That is, was there any configuration script or other program that you executed?

No one can guarantee to be able to help you by remote control, but I'd like to try. The chances are probably directly proportional to the amount of information (and the amount of specific information) that you give us.

One final suggestion: you might mention what Linux distribution you are using. It probably doesn't matter (much), but sometimes it makes a difference to people trying to help.

Regards,

Dave
  #3  
Old 03-Nov-2006, 04:35
markyp markyp is offline
New Member
 
Join Date: Nov 2006
Posts: 26
markyp is on a distinguished road

Re: linux and open gl


Hi

I used the method make ./COMP307/src/eg1.c

Am using my university home drive the work is in a folder called Comp 307

I copied a directory ~comp307 etc into my file space successfully so the correct files are I my folder

And I’m trying to compile on unix (exceed) think the make method worked it just says nothing to be done

thanks
  #4  
Old 03-Nov-2006, 11:17
davekw7x davekw7x is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Left Coast, USA
Posts: 5,311
davekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to beholddavekw7x is a splendid one to behold

Re: linux and open gl


Quote:
Originally Posted by markyp
Hi

I used the method make ./COMP307/src/eg1.c

Am using my university home drive the work is in a folder called Comp 307

I copied a directory ~comp307 etc into my file space successfully so the correct files are I my folder

And I’m trying to compile on unix (exceed) think the make method worked it just says nothing to be done

thanks
The program that is executed when you enter "make xxxx" looks into a file (either "makefile" or "Makefile") for targets. In particular it looks to see whether there some reference to something named "xxxx". Normally the target would be an executable (maybe eg1, but I have no way of knowing). The target will have a list of files that it depends on. Probably eg1.c would be one of those files.

If you enter "make eg1.c", since eg1.c is not a target, then there is nothing for "make" to do (since , presumably eg1.c is already there and it doesn't have any dependencies.). On the other hand if eg1 is a target and you enter "make eg1" the program will apply rules from the Makefile to create eg1.

Typically this would be: If any of its dependencies, such as eg1.c, has a later timestamp than the target, or if the target file doesn't exist, then the compiler and linker are called in such a way as to create a new target.

The "make" program is extremely powerful, and it's not the easiest thing in the world to figure out all of its uses, but if you are given a Makefile and you have all of the dependencies present, then using it is easy.

So you have to get instructions from wherever you got the files. If there are no instructions (no README or readme.txt or anything else in the directory or in your homework assignment), then you have to Ask Someone at your site (instructor, lab assistant, other student who has already done it, ...)

What are you supposed to "make"?


A final note:I almost forget to mention that if everything is set up correctly and the desired target is the first (or only) target, then you can just enter "make" without any argument and it will do its thing. (It may not work, but it might be worth a shot.)

Regards,

Dave
 
 

Recent GIDBlogProblems with the Navy (Officers) by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
learning terminal commands in linux u04f061 Computer Software Forum - Linux 3 06-Dec-2006 22:12
Porting of Linux code to windows. stormlab C Programming Language 3 10-Sep-2005 01:41
Win32 Window Shading behavior (like linux) WillyumYum C++ Forum 3 18-Apr-2005 14:36
The Traps of Linux...&open source software michael Open Discussion Forum 6 22-May-2004 02:05
Got RedHat 9? JdS Computer Software Forum - Linux 16 22-Nov-2003 10:47

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 14:36.


vBulletin, Copyright © 2000 - 2010, Jelsoft Enterprises Ltd.