问题3、还是configure错误
特点:这个还是configure的错误,为什么我还讲呢?主要是这个错误很好,它在后面给出了提示。比起问题2中的没头没脑的去看configure文件外,这个提示对我们来说很宝贵,所以我们来分析分析。首先它提示说,找不到OpenGL的头文件,我一开始以为需要装OpenGL的动态库,后来装了以后还是有这个问题,说明我想法是错的。然后看后面的WARRING的提示,要求我们必须安装wxWidgets,而且还提示了,如果成功了,可以用wx-config命令进行检查。所以这些就是我们现在需要注意的信息了。
注:后面还有3个错误,这次我们不关注。
STDERR: configure: WARNING: No OpenGL headers found, wx will NOT be usable
configure: WARNING:
wxWidgets must be installed on your system.
Please check that wx-config is in path, the directory
where wxWidgets libraries are installed (returned by
'wx-config --libs' or 'wx-config --static --libs' command)
is in LD_LIBRARY_PATH or equivalent variable and
wxWidgets version is 2.8.4 or above.
configure: WARNING: No 'xsltproc' command found: the documentation cannot be built
configure: WARNING: No 'fop' command found: going to generate placeholder PDF files
gcc: fatal error: no input files
解决思路:我们现在知道1个关键词“wxwidgets”,所以第一步找到和这个关键词相关的软件有哪些。第二步就是我们使用wx-config命令来检查自己成功没有。
解决过程:首先搜索,列表如下,第一眼晕死,这里我弄了很久,基本很多都给试过去了,最后弄到libalien-wxwidgets-perl的时候成功了,我就有wx-config这个命令了。
Ubuntu@cloudfoundry:~$ apt-cache search wxwidgets
codeblocks-contrib - contrib plugins for Code::Blocks IDE
codeblocks-contrib-dbg - Debugging libraries for the Code::Blocks contrib plugins
filezilla - Full-featured graphical FTP/FTPS/SFTP client
filezilla-common - Architecture independent files for filezilla
fontypython - Find, view and manage font files of all kinds
jmdlx - jugglemaster deluxe using wxWidgets
libalien-wxwidgets-perl - Perl module for locating wxWidgets binaries
libmgl-wx5 - library for scientific graphs. (wxWidgets runtime library)
libwx-perl - interface to wxWidgets cross-platform GUI toolkit
libwxbase2.6-0 - wxBase library (runtime) - non-GUI support classes of wxWidgets toolkit
……………………………………………………
wx2.8-doc - wxWidgets Cross-platform C++ GUI toolkit (documentation)
wx2.8-examples - wxWidgets Cross-platform C++ GUI toolkit (examples)
wx2.8-headers - wxWidgets Cross-platform C++ GUI toolkit (header files)
wx2.8-i18n - wxWidgets Cross-platform C++ GUI toolkit (i18n support)
wxformbuilder - WYSIWYG GUI Designer and Code Generator for wxWidgets
wxsqlite3-2.8-dbg - Debugging symbols for wxSQLite3 2.8
wxsqlite3-doc - Documentation files for wxSQLite3