image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
Thread Tools
  #1  
Old October 11th, 2001, 07:52 PM
jmmistrot's Avatar
Registered User
 
Join Date: Sep 2001
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
jmmistrot is on a distinguished road
Question unix newbie question

I had a general newbie kinda question to ask;


okay if I am gonna be compiling some GL stuff from the command line where should I place my GL libraries?
Would I throw them into usr/local/lib/? or maybe usr/lib/ ? I know where they are for PB but when I compile from commandline of course they are quite invisble to the compiler.. where does the compiler look first I guess is my question and how can I change this? .in the .cshrc?
Reply With Quote
  #2  
Old October 12th, 2001, 02:22 AM
McInstigator
 
Join Date: Aug 2001
Location: Tokyo
Posts: 191
Thanks: 0
Thanked 0 Times in 0 Posts
jimr is on a distinguished road
Lightbulb what are you trying to compile????

If you have an application/src which depends on libraries you should have a makefile and before that configure your make file.

where to put the libraries is arbitrary

main system libraries are usually in /usr/lib

libraries which you compile and install or get from some package will go into /usr/local/lib

on the other hand some apps might want to put their own libraies in another place.

like /usr/local/mysql/lib

so how do you tell the cc how to compile

1. you run a configuration script which sets up basic system parameters and substitues them into your makefile and any other supporting files.

2. you run cc directly
for example cc -o -c -L -l -I

where the -L is followed by where the libraries you which to include
where -I tell you which .h header files to include.

where -l[name] is a specific library you want to use and it may be found in the system normally

where -o and -c determine the type of out put and the nature and list or location of the source files.

there are tons more. I just tell you a few. to make you think a little

there is extensive documentation installed with the DevTools

there is lot's of help but you have to help your self too.
Reply With Quote
  #3  
Old October 12th, 2001, 02:29 AM
jmmistrot's Avatar
Registered User
 
Join Date: Sep 2001
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
jmmistrot is on a distinguished road
Thanks jimr..
I guess I have some reading to do..
Reply With Quote
  #4  
Old October 12th, 2001, 02:49 AM
McInstigator
 
Join Date: Aug 2001
Location: Tokyo
Posts: 191
Thanks: 0
Thanked 0 Times in 0 Posts
jimr is on a distinguished road
best thing to do first

would be....

find something to compile which has well written configure scripts and Makefiles and learn from others.

Many source packages which you can just dload and Make and run. sometimes with a little tweaking. sometimes just make it.



see articles at

http://www.macosxhints.com

http://www.stepwise.com

IDE like powerbuilder and Codewarrior will set the many -options for you, but if you get some idea of what you are doing at the command line your experience of those tools will also be much more productive.
Reply With Quote
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
newbie question: Samba Linux Server filter Unix & X11 0 November 15th, 2003 01:45 PM
Newbie Query: Linux v. Unix Durbrow Unix & X11 13 March 10th, 2003 08:28 AM
A newbie terminal question and a XDarwin question ethanS Unix & X11 4 January 7th, 2003 10:48 AM
UNIX Newbie Question About "TOPS" AKMedia Unix & X11 2 December 25th, 2002 12:55 AM


All times are GMT -5. The time now is 12:10 AM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.