eric wrote:
> after i install every package and ready to go(compile) some simple fltk 
> program
> from Mr. Stroustrup "Programming-Principle and practice usingC++" 4th ed., 
> chapter 12's first example program(chapter.12.3.cpp copied from his website,
> http://www.stroustrup.com/Programming/

    I missed this part of the thread, which shows the link
    to the book's website.

    According to my take on that page, you only need to download
    this one zip file:

    http://www.stroustrup.com/Programming/Programming-code2.zip

    ..which has all the examples from all chapters, and has
    a copy of FLTK 1.1.9 along with it.

    The zip file comes with:

        1) a hierarchy of example programs for each chapter
        2) a copy of FLTK 1.1.9 which it will use if no other FLTK is found
        3) Makefiles for everything
        4) a "readme.txt" file that tells you what to do.

    I was able to get the example programs to build by doing
    the following:

        1) Downloaded the above zip, extracted it

        2) cd'ed into the extracted zip directory

        3) Ran the following from that directory:

                ( cd FLTK ; autoconf; make; make install )      # <-- builds 
FLTK 1.1.9, installs it
                make                                            # <-- this 
builds all the examples against that FLTK release

     This seems to build all the examples.
     There are some warnings, but it seems to build OK.

Some notes:

     Some of the examples need 'boost' installed.

     Also: you have to build AND ACTUALLY "make install" fltk 1.1.9
     in order for the examples to build with the Makefiles included.
     The example Makefiles don't seem to provide a way to specify
     an alternate directory for the FLTK libs (via an -L flag or
     environment variable). It seems you'd have to edit all the Makefiles
     to make such a change, so it's easier to just do the 'make install')
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to