ubuntu安装unixodbc-gui-qt的时候出错,提示configure: error: cannot compile a Qt program!
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ubuntu安装unixodbc-gui-qt的时候出错,提示configure: error: cannot compile a Qt program!相关的知识,希望对你有一定的参考价值。
:./configure --with-qt-dir-include=/usr/include/qt4 --with-qt-dir-lib=/usr/lib/qt4 --with-qt-dir-bin=/usr/share/qt4/bin
以下是运行./configure之后所有的提示(由于长度限制的问题,省略了前面正确提示的部分):
。。。。。。。。。。。。
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking if we are using the included libltdl ... yes
checking for shared lib extension... .so
checking for crypt in -lcrypt... yes
checking for pow in -lm... yes
checking for readline in -lreadline ... no
checking for readline in -lreadline -lcurses ... no
checking Are we using ini caching ... yes
checking whether time.h and sys/time.h may both be included... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking size of long... 8
checking if platform is 64 bit... Yes
checking for long long... yes
checking size of long int... 8
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for vsnprintf... yes
checking for strtol... yes
checking for atoll... yes
checking for strtoll... yes
checking for endpwent... yes
checking for gettimeofday... yes
checking for ftime... yes
checking for time... yes
checking for stricmp... no
checking for strnicmp... no
checking if os is AIX ... no - enable check for libthread
checking for mutex_lock in -lthread ... no
checking for pthread_mutex_lock in -lpthread... yes
checking if compiler accepts -pthread... yes
checking for localtime_r in -lc... yes
checking for ftok... yes
checking for semget... yes
checking for shmget... yes
checking for semop... yes
checking for snprintf... yes
checking for semundo union... yes
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... yes
checking for X... libraries , headers
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... no
configure: checking for Qt
yes (/usr/include/qt4)
yes (/usr/lib/qt4)
yes (/usr/share/qt4/bin)
checking for /usr/include/qt4/QtGui/QWizard... yes
checking for /usr/include/qt4/QtGui/QMdiArea... yes
configure: qt_dir_lib=/usr/lib/qt4
configure: LDFLAGS=
configure: X_LIBS=
checking whether a simple Qt program compiles... no
configure: error: cannot compile a Qt program!
重点就是最后几句:
configure: checking for Qt
yes (/usr/include/qt4)
yes (/usr/lib/qt4)
yes (/usr/share/qt4/bin)
checking for /usr/include/qt4/QtGui/QWizard... yes
checking for /usr/include/qt4/QtGui/QMdiArea... yes
configure: qt_dir_lib=/usr/lib/qt4
configure: LDFLAGS=
configure: X_LIBS=
checking whether a simple Qt program compiles... no
configure: error: cannot compile a Qt program!
高分求解,拜托了
不行的话,把你的 /etc/ld.so.conf 和 /etc/ld.so.conf.d/qt-i386.con本回答被提问者采纳 参考技术C sudo 试试
ubuntu下播放h264,h265文件
vlc可以播放h264,h265文件, 并且既可以在win下,可以在ubuntu下
- 安装vlc
在ubuntu软件中心,搜索vlc,既可以看到vlc media player,点击安装 - 对于h264结尾的文件,可以直接使用命令播放
vlc *.h264 - 对于h265文件, 我安装的时v2.1.6版本,不支持h265, 需要安装一库,采用ppa的方式
sudo add-apt-repository ppa:strukturag/libde265
sudo aptitude update
sudo apt-get install vlc-plugin-libde265- 然后就可以用vlc命令播放h265文件了
vlc *.h265
- 然后就可以用vlc命令播放h265文件了
以上是关于ubuntu安装unixodbc-gui-qt的时候出错,提示configure: error: cannot compile a Qt program!的主要内容,如果未能解决你的问题,请参考以下文章