LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-29-2011, 05:24 AM   #1
abhijeet664
LQ Newbie
 
Registered: Apr 2011
Posts: 2

Rep: Reputation: 0
Ubuntu FLTK Installation error


Hello All, I am new to Linux.
I am trying to install fltk-2.0.x-alpha-r8570 on Ubuntu 10.04, I get following error during make process

Code:
root@programmer-desktop:/opt/fltk-2.0.x-r7680# make
=== making src ===
Makefile:223: makedepend: No such file or directory
Compiling add_idle.cxx...
add_idle.cxx:1: error: bad value (generic) for -mtune= switch
add_idle.cxx:1: error: bad value (i486) for -march= switch
make[1]: *** [add_idle.o] Error 1
make: *** [all] Error 2
Below is the configuration output for my system.
Code:
root@programmer-desktop:/opt/fltk-2.0.x-r7680# ./configure
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking for nroff... /usr/bin/nroff
checking for htmldoc... no
checking for ranlib... ranlib
checking for ar... /usr/bin/ar
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether byte ordering is bigendian... no
checking for short... yes
checking size of short... 2
checking for int... yes
checking size of int... 4
checking for long... yes
checking size of long... 4
checking whether the compiler recognizes bool as a built-in type... no
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/stdtypes.h usability... no
checking sys/stdtypes.h presence... no
checking for sys/stdtypes.h... no
checking for scandir... yes
checking whether we have the POSIX compatible scandir() prototype... no
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for snprintf... yes
checking for vsnprintf... yes
checking for strcasecmp... yes
checking for strdup... yes
checking for strncasecmp... yes
checking for strlcat... no
checking for strlcpy... no
checking for library containing pow... -lm
checking jpeglib.h usability... no
checking jpeglib.h presence... no
checking for jpeglib.h... no
checking zlib.h usability... no
checking zlib.h presence... no
checking for zlib.h... no
checking png.h usability... no
checking png.h presence... no
checking for png.h... no
checking libpng/png.h usability... no
checking libpng/png.h presence... no
checking for libpng/png.h... no
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking for pthread_create in -lpthread... yes
checking for X... libraries /usr/lib, headers 
checking whether -R must be followed by a space... neither works
checking for dnet_ntoa in -ldnet... no
checking for dnet_ntoa in -ldnet_stub... no
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... no
checking for library containing dlopen... -ldl
checking GL/gl.h usability... no
checking GL/gl.h presence... no
checking for GL/gl.h... no
checking GL/glu.h usability... no
checking GL/glu.h presence... no
checking for GL/glu.h... no
checking for freetype-config... no
./configure: line 10961: --cflags: command not found
./configure: line 10962: --cflags: command not found
./configure: line 10963: --cflags: command not found
checking X11/Xft/Xft.h usability... no
checking X11/Xft/Xft.h presence... no
checking for X11/Xft/Xft.h... no
checking X11/Xcursor/Xcursor.h usability... no
checking X11/Xcursor/Xcursor.h presence... no
checking for X11/Xcursor/Xcursor.h... no
checking for X11/extensions/Xdbe.h... yes
checking for X11/extensions/Xinerama.h... yes
checking for X overlay visuals... no
checking for Xutf8LookupString in -lX11... yes
checking if libsupc++ is required... no
configure: creating ./config.status
config.status: creating makeinclude
config.status: WARNING:  makeinclude.in seems to ignore the --datarootdir setting
config.status: creating fltk.list
config.status: WARNING:  fltk.list.in seems to ignore the --datarootdir setting
config.status: creating fltk2-config
config.status: creating config.h

Libs: -lX11 -lXi -lXinerama -ldl -lpthread -lm -lXext
System image libs: -lfltk2_png -lfltk2_z -lfltk2_images -lfltk2_jpeg
Local image libs: ../lib/libfltk2_jpeg.a ../lib/libfltk2_z.a ../lib/libfltk2_png.a
OpenGL libs:

Build targets: static
I have updated my system to latest, but problem still persists.


Thanks in Advance.
 
Old 04-29-2011, 05:58 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
Welcome to LQ.

sudo apt-get install xutils-dev libxi-dev

You will probably need the shared libraries :
./configure --enable-shared
( And without a --prefix= , fltk will be installed to /usr/local.
See README.unix ).

sudo apt-get install libfltk1.1-dev : Will install fltk-1.1.10.

..
 
Old 05-08-2011, 02:08 PM   #3
abhijeet664
LQ Newbie
 
Registered: Apr 2011
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks knudfl for quick response, however it didnt solve the error, i had to make a reinstall of ubuntu. Now it's working fine.
Thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu: How do you installing FLTK? Delpheno Programming 5 01-17-2009 07:55 PM
VMware installation error in Ubuntu peterha Linux - Software 5 12-05-2008 04:02 PM
FLTK 2.0 SVN r6191 Compile Error nickbird Programming 2 09-07-2008 05:25 AM
Ubuntu Installation Error sgwelly Linux - Newbie 7 07-14-2008 04:06 PM
Ubuntu 6.10/6.06 X Server error during installation Diomedes Tydeus Linux - Newbie 3 01-29-2007 08:01 PM


All times are GMT -5. The time now is 06:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration