On 21 Mar 2010, at 22:07, David Illescas wrote: > I downloaded fltk-1.3.x-r7302 and ran the ./configure. It stated > that I lacked the X11 libraries, so I ran > > sudo apt-get install libx11-dev > > The configure then ran succesfully.
Might be interesting to see what the result of the configure script was - can you post that too? - since if you are missing the X11 dev packages you are probably missing a heap of other stuff too... Note that a stock ubuntu install misses out pretty much all the dev stuff that you need to do actual coding, in any language / toolkit... there can be an awful lot of stuff you need to add (dev packages for zlib, png, jpeg, OpenGL, etc, etc...) Greg Ercolano posted a list somewhere about what you need to add to a stock ubunt system to make it useful for dev work. But I can't recall where... OK, try http://seriss.com/people/erco/ubuntu/ and see section (6) about adding the dev stuff. Much of the rest is Greg specific though! His notes refer to 8.04, but things are much the same now... > I then tried running sudo make, but was told that g++ was not > found, so I ran This seems very unlikely - if configure succeeded before, as you say it did, then it must have found g++... > sudo apt-get install g++ which seems to have installed some version > circa gcc 4.4. > > I then ran sudo make again, succesfully. When I ran sudo make > install, however, I got the following: fltk-1.3 is not stable yet. I would strongly caution against installing it. Rather, use the --prefix option to configure and set a "safe" path to install to, somewhere in your own user space, so there is no danger of breaking the system wide libs. Also, be aware that some ubuntu tools do use fltk-1.1 .so libs, so installing fltk-1.3 on top of that can break things... > > Compiling filename_ext.cxx... > Compiling filename_isdir.cxx... > Compiling filename_list.cxx... > filename_list.cxx: In function ‘int fl_filename_list(const char*, > dirent***, int (*)(dirent**, dirent**))’: > filename_list.cxx:99: error: invalid conversion from ‘int (*)(const > void*, const void*)’ to ‘int (*)(const dirent**, const dirent**)’ > filename_list.cxx:99: error: initializing argument 4 of ‘int > scandir(const char*, dirent***, int (*)(const dirent*), int (*) > (const dirent**, const dirent**))’ > make[1]: *** [filename_list.o] Error 1 > make: *** [install] Error 1 > dille...@dillesca-laptop:~/Desktop/fltk-1.3.x-r7302$ ^C > > I am wondering if anyone knows how to get around this. I am hoping > I won't have to modify the file where the error is found. If the previous make had, as you say, completed successfully, then why is it rebuilding these files at all? This looks very odd, and makes me wonder if there's something awry in your setup. I'd very much suggest that you clean out the build that you have and start afresh, and post the summary from a clean run of configure here for folk to take a look at. _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

