Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

pantera

macrumors newbie
Original poster
Jan 23, 2010
10
0
Hi,

I'm learning C++ by self-study, and I don't have any previous programming experience at all. So far I've done some of the chapters up until functions/classes (8 chapters of the new book by Bjarne Stroustrup). I'm now on the chapter that introduces GRAPHICS. The book uses FLTK for all C++ programs. I've survived so far using TextWrangler + Terminal, but now I definitely need to INSTALL FLTK. I've visited FLTK website & download it to the local drive.

My problem is:
- I don't know how to install FLTK. It's not click-and-point & follow-on-screen-instructions sort of thing.
- I don't know much about Terminal Commands. I got some installation instructions online, but it still doesn't make sense to me. All things like sudo, make install, ./configure, etc... I've tried them all but it never works. I've spent almost the whole week trying to find out how to install it, but the problem is that there's so much info, all general and all assuming that the person knows quite a lot about the stuff.


I need to install this FLTK so I can proceed with 4-5 chapters on GUI/Graphic classes, before I move on to vector & array as set out in the book.

Could you please help with some very specific, idiot's guide instructions?

Thank you so much for your time and help.
 
Look into MacPorts.

Using MacPorts 'fltk' can in turn be installed with the following at the terminal -

Code:
sudo port install fltk

You can continue to develop as you have been.
 
Look into MacPorts.

Using MacPorts 'fltk' can in turn be installed with the following at the terminal -

Code:
sudo port install fltk

You can continue to develop as you have been.

Thank you very much.
 
I go to Texas A&M and I'm actually in Stroustrup's class. he does know his stuff. Are you using the graphics library he provides as a connection between code and FLTK?
 

I would be very careful about posting things like this to a public forum. You're likely J.W. Crabb (positing initials to not totally out you) studying ELEL, easily found in the TAMU directory. ENGR 112 is the only thing Dr. Stroustrup teaches, so it would be pretty easy for someone to let him know what you think of him. He may not mind being referred to in this manner, or he may take great offense and fail you out of spite. The internet is not that anonymous. I would keep this sort of thing to yourself, or for gossip at the Dixie Chicken or somesuch.

Just a friendly warning, i certainly wouldn't act on this, but you're really exposing yourself.

-Lee
 
true. i suppose i didnt think of the possible repercussions. hes just a wee bit arrogant "If i don't know your name, then your no good at programming" really? I realize he was talking to a 112 class, but still...things like that just arent necessary. Professor Ward is definitely my favored, I dont think that would effect my grade. :p

Anyways, I was more or less looking for assisstance to get his graphics library to work on my XCode. I posted a thread about this...in the wrong forum i do believe, and Ive done as asked in that thread and made progress but am still not quite there. If you could look at that thread it would be much appreciated!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.