Newbie to programming: Please help... Thanks a lot

Discussion in 'Mac Programming' started by pantera, Jan 23, 2010.

  1. pantera macrumors newbie

    Joined:
    Jan 23, 2010
    #1
    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.
     
  2. lloyddean macrumors 6502a

    Joined:
    May 10, 2009
    Location:
    Des Moines, WA
    #2
    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.
     
  3. pantera thread starter macrumors newbie

    Joined:
    Jan 23, 2010
    #3
    Thank you very much.
     
  4. jCrabb13 macrumors newbie

    Joined:
    Apr 8, 2010
    #4
    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?
     
  5. lee1210 macrumors 68040

    lee1210

    Joined:
    Jan 10, 2005
    Location:
    Dallas, TX
    #5
    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
     
  6. Sydde macrumors 68020

    Sydde

    Joined:
    Aug 17, 2009
    #6
    Oh, now Lee, must you interfere with natural selection?
     
  7. jCrabb13 macrumors newbie

    Joined:
    Apr 8, 2010
    #7
    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!
     

Share This Page