Imview无法找到FLTK

时间:2013-03-04 16:08:03

标签: r compilation makefile

我正在尝试安装需要FLTK库的imview(http://sourceforge.net/projects/imview)。

我已安装:

fltk-x86_64
fltk-devel
fltk-static
fltk-fluid

使用

su -c 'yum install <package>'

然而,当我尝试配置imview进行安装时,它无法检测到fltk库。

[joe@fedora imview-1.0.1]$ ./configure
configuring Imview 1.0.1
Branch rel-1-0-0
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking build system type... x86_64-unknown-linux-gnu
*** A platform I haven't tried! Some definitions might be lacking
*** Please contribute your changes if any required.
*** mailto: Hugues.Talbot@cmis.CSIRO.AU
checking for c++... c++
checking whether the C++ compiler (c++   -L/usr/local/lib) works... yes
checking whether the C++ compiler (c++   -L/usr/local/lib) is a cross-compiler... no
checking whether we are using GNU C++... yes
checking whether c++ accepts -g... yes
checking for gcc... gcc
checking whether the C compiler (gcc   -L/usr/local/lib) works... yes
checking whether the C compiler (gcc   -L/usr/local/lib) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for a BSD compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking whether make sets ${MAKE}... yes
checking whether the compiler supports member templates... yes
checking whether the compiler supports use of the template keyword as a qualifier... no
checking whether the compiler supports templates as template arguments... yes
checking whether the compiler supports default template parameters... yes
checking whether the compiler supports standard char traits... yes
checking whether the compiler accepts array type casts in templates... yes
checking for dirent.h that defines DIR... yes
checking for opendir in -ldir... no
checking whether accept uses socklen_t... yes
checking how to run the C preprocessor... gcc -E
checking for sys/select.h... yes
checking for scandir... yes
checking for vsnprintf... yes
checking for snprintf... yes
checking for vsprintf... yes
checking for usleep... yes
checking for nanosleep... yes
checking for X... libraries , headers 
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... yes
Ignoring libraries " -lSM -lICE" requested by configure.
checking whether the compiler needs -fpermissive to compile the X11 headers... no
checking whether gcc bitches when told to look inside INCLUDE_DIR... no
checking whether gcc bitches when including some deprecated headers... yes
checking whether the C++ library knows about string streams... yes
checking for sqrt in -lm... yes
checking for fluid... yes
Alternative libfltk name:  libfltk_c++.a
checking for numericsort in -lfltk_c++... no
checking for numericsort in -lfltk... no
*** FLTK library not found! exiting
[joe@fedora imview-1.0.1]$ ./configure
configuring Imview 1.0.1
Branch rel-1-0-0
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking build system type... x86_64-unknown-linux-gnu
*** A platform I haven't tried! Some definitions might be lacking
*** Please contribute your changes if any required.
*** mailto: Hugues.Talbot@cmis.CSIRO.AU
checking for c++... c++
checking whether the C++ compiler (c++   -L/usr/local/lib) works... yes
checking whether the C++ compiler (c++   -L/usr/local/lib) is a cross-compiler... no
checking whether we are using GNU C++... yes
checking whether c++ accepts -g... yes
checking for gcc... gcc
checking whether the C compiler (gcc   -L/usr/local/lib) works... yes
checking whether the C compiler (gcc   -L/usr/local/lib) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for a BSD compatible install... /usr/bin/install -c
checking for ranlib... ranlib
checking whether make sets ${MAKE}... yes
checking whether the compiler supports member templates... yes
checking whether the compiler supports use of the template keyword as a qualifier... no
checking whether the compiler supports templates as template arguments... yes
checking whether the compiler supports default template parameters... yes
checking whether the compiler supports standard char traits... yes
checking whether the compiler accepts array type casts in templates... yes
checking for dirent.h that defines DIR... yes
checking for opendir in -ldir... no
checking whether accept uses socklen_t... yes
checking how to run the C preprocessor... gcc -E
checking for sys/select.h... yes
checking for scandir... yes
checking for vsnprintf... yes
checking for snprintf... yes
checking for vsprintf... yes
checking for usleep... yes
checking for nanosleep... yes
checking for X... libraries , headers 
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... yes
Ignoring libraries " -lSM -lICE" requested by configure.
checking whether the compiler needs -fpermissive to compile the X11 headers... no
checking whether gcc bitches when told to look inside INCLUDE_DIR... no
checking whether gcc bitches when including some deprecated headers... yes
checking whether the C++ library knows about string streams... yes
checking for sqrt in -lm... yes
checking for fluid... yes
Alternative libfltk name:  libfltk_c++.a
checking for numericsort in -lfltk_c++... no
checking for numericsort in -lfltk... no
*** FLTK library not found! exiting

令我感到困惑的是,脚本似乎检测到已安装的流体,这似乎是FTLK的一部分。我的想法是配置脚本缺少目标,但我不确定。我该怎么做才能让它检测到我安装了FTLK库?有没有办法可以别名或我可以导出的路径?如果你想知道,我正在尝试安装CSIRO SPOT,这是一个R. Imview的包。

PS对不起,如果标签有点通用。

所以在仔细观察输出后,看起来lfltk实际上是一个它试图调用gcc的选项。当我尝试使用该选项调用gcc时,这是输出:

[joe@fedora imview-1.0.1]$ gcc -lfltk
/usr/lib/gcc/x86_64-redhat-linux/4.7.2/../../../../lib64/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status

这是config.log的输出:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:606: checking host system type
configure:627: checking target system type
configure:645: checking build system type
configure:918: checking for c++
configure:950: checking whether the C++ compiler (c++   -L/usr/local/lib) works
configure:966: c++ -o conftest   -I.   -L/usr/local/lib conftest.C  1>&5
configure:992: checking whether the C++ compiler (c++   -L/usr/local/lib) is a c
ross-compiler
configure:997: checking whether we are using GNU C++
configure:1006: c++ -E conftest.C
configure:1025: checking whether c++ accepts -g
configure:1074: cc -c   -I.  conftest.c 1>&5
configure:1091: cc -c   -I.  conftest.c 1>&5
configure: In function 'main':
configure:1087:1: warning: incompatible implicit declaration of built-in functio
n 'exit' [enabled by default]
configure:1110: checking for gcc
configure:1223: checking whether the C compiler (gcc   -L/usr/local/lib) works
configure:1239: gcc -o conftest   -I.   -L/usr/local/lib conftest.c  1>&5
configure:1265: checking whether the C compiler (gcc   -L/usr/local/lib) is a cr
oss-compiler
configure:1270: checking whether we are using GNU C
configure:1279: gcc -E conftest.c
configure:1298: checking whether gcc accepts -g
configure:1341: checking for a BSD compatible install
configure:1396: checking for ranlib
configure:1431: checking whether make sets ${MAKE}
configure:1459: checking whether the compiler supports member templates
configure:1483: c++ -c   -I.  conftest.C 1>&5
configure:1512: checking whether the compiler supports use of the template keywo
rd as a qualifier
configure:1535: c++ -c   -I.  conftest.C 1>&5
configure: In function 'int main()':
configure:1531:15: error: 'template' (as a disambiguator) is only allowed within
 templates
configure: failed program was:
#line 1525 "configure"
#include "confdefs.h"

       class A { public : A() {}; template<class T> static T convert() { return 
T(); }
       };

int main() {
double z = A::template convert<double>(); return 0;
; return 0; }
configure:1564: checking whether the compiler supports templates as template arg
uments
configure:1588: c++ -c   -I.  conftest.C 1>&5
configure:1617: checking whether the compiler supports default template paramete
rs
configure:1639: c++ -c   -I.  conftest.C 1>&5
configure:1668: checking whether the compiler supports standard char traits
configure:1691: c++ -c   -I.  conftest.C 1>&5
configure:1721: checking whether the compiler accepts array type casts in templa
tes
configure:1743: c++ -c   -I.  conftest.C 1>&5
configure:1778: checking for dirent.h that defines DIR
configure:1791: gcc -c   -I.  conftest.c 1>&5
configure:1816: checking for opendir in -ldir
configure:1835: gcc -o conftest   -I.   -L/usr/local/lib conftest.c -ldir   1>&5
/usr/bin/ld: cannot find -ldir
collect2: error: ld returned 1 exit status
configure: failed program was:
#line 1824 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char opendir();

int main() {
opendir()
; return 0; }
configure:1900: checking whether accept uses socklen_t
configure:1925: gcc -c   -I.  conftest.c 1>&5
configure:1955: checking how to run the C preprocessor
configure:1976: gcc -E  -I.  conftest.c >/dev/null 2>conftest.out
configure:2036: checking for sys/select.h
configure:2046: gcc -E  -I.  conftest.c >/dev/null 2>conftest.out
configure:2068: checking for scandir
configure:2096: gcc -o conftest   -I.   -L/usr/local/lib conftest.c  1>&5
configure:2124: checking for vsnprintf
configure:2152: gcc -o conftest   -I.   -L/usr/local/lib conftest.c  1>&5
configure:2136:6: warning: conflicting types for built-in function 'vsnprintf' [
enabled by default]
configure:2180: checking for snprintf
configure:2208: gcc -o conftest   -I.   -L/usr/local/lib conftest.c  1>&5
configure:2192:6: warning: conflicting types for built-in function 'snprintf' [e
nabled by default]
configure:2238: checking for vsprintf
configure:2266: gcc -o conftest   -I.   -L/usr/local/lib conftest.c  1>&5
configure:2250:6: warning: conflicting types for built-in function 'vsprintf' [e
nabled by default]
configure:2294: checking for usleep
configure:2322: gcc -o conftest   -I.   -L/usr/local/lib conftest.c  1>&5
configure:2294: checking for nanosleep
configure:2322: gcc -o conftest   -I.   -L/usr/local/lib conftest.c  1>&5
configure:2354: checking for X
configure:2421: gcc -E  -I.  conftest.c >/dev/null 2>conftest.out
configure:2497: gcc -o conftest   -I.   -L/usr/local/lib conftest.c -lXt  1>&5
configure:2668: checking for dnet_ntoa in -ldnet
configure:2687: gcc -o conftest   -I.   -L/usr/local/lib conftest.c -ldnet   1>&
5
/usr/bin/ld: cannot find -ldnet
collect2: error: ld returned 1 exit status
configure: failed program was:
#line 2676 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char dnet_ntoa();

int main() {
dnet_ntoa()
; return 0; }
configure:2709: checking for dnet_ntoa in -ldnet_stub
configure:2728: gcc -o conftest   -I.   -L/usr/local/lib conftest.c -ldnet_stub 
  1>&5
/usr/bin/ld: cannot find -ldnet_stub
collect2: error: ld returned 1 exit status
configure: failed program was:
#line 2717 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char dnet_ntoa();

int main() {
dnet_ntoa()
; return 0; }
configure:2757: checking for gethostbyname
configure:2785: gcc -o conftest   -I.   -L/usr/local/lib conftest.c  1>&5
configure:2855: checking for connect
configure:2883: gcc -o conftest   -I.   -L/usr/local/lib conftest.c  1>&5
configure:2947: checking for remove
configure:2975: gcc -o conftest   -I.   -L/usr/local/lib conftest.c  1>&5
configure:3039: checking for shmat
configure:3067: gcc -o conftest   -I.   -L/usr/local/lib conftest.c  1>&5
configure:3140: checking for IceConnectionNumber in -lICE
configure:3159: gcc -o conftest   -I.   -L/usr/local/lib conftest.c -lICE   1>&5
configure:3198: checking whether the compiler needs -fpermissive to compile the 
X11 headers
configure:3219: c++ -c   -I.   conftest.C 1>&5
configure:3258: checking whether gcc bitches when told to look inside INCLUDE_DI
R
configure:3282: gcc -c    -I.   -I/usr/local/include -Werror conftest.c 1>&5
configure:3311: checking whether gcc bitches when including some deprecated head
ers
configure:3336: c++ -c   -I.   -I/usr/local/include -I/usr/local/include -Werror
 conftest.C 1>&5
configure:3328:23: fatal error: streambuf.h: No such file or directory
compilation terminated.
configure: failed program was:
#line 3326 "configure"
#include "confdefs.h"

#include <streambuf.h>
#include <iostream.h>
int main() {

        std::cout << "Hello world\n";
; return 0; }
configure:3366: checking whether the C++ library knows about string streams
configure:3387: c++ -c   -I.   -I/usr/local/include -Wno-deprecated conftest.C 1
>&5
configure:3518: checking for sqrt in -lm
configure:3537: gcc -o conftest -O2 -Wall    -I.   -I/usr/local/include -Wno-dep
recated  -L/usr/local/lib conftest.c -lm   1>&5
configure:3530:6: warning: conflicting types for built-in function 'sqrt' [enabl
ed by default]
configure:3566: checking for fluid
configure:3615: checking for numericsort in -lfltk_c++
configure:3634: gcc -o conftest -O2 -Wall    -I.   -I/usr/local/include -Wno-dep
recated  -L/usr/local/lib conftest.c -lfltk_c++   -lm   -lm 1>&5
/usr/bin/ld: cannot find -lfltk_c++
collect2: error: ld returned 1 exit status
configure: failed program was:
#line 3623 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char numericsort();

int main() {
numericsort()
; return 0; }
configure:3653: checking for numericsort in -lfltk
configure:3672: gcc -o conftest -O2 -Wall    -I.   -I/usr/local/include -Wno-dep
recated  -L/usr/local/lib conftest.c -lfltk   -lm   -lm 1>&5
/tmp/ccHdUn4f.o: In function `main':
conftest.c:(.text.startup+0x7): undefined reference to `numericsort'
collect2: error: ld returned 1 exit status
configure: failed program was:
#line 3661 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
    builtin and then its argument prototype would still apply.  */
char numericsort();

int main() {
numericsort()
; return 0; }

0 个答案:

没有答案