Qt5, Coin3D and SoQt



我正在尝试使用Qt5,SoQt(版本1.5.0)和Coin3D(3.1.3)。我使用了本网站上的说明来安装Coin3D。我也尝试安装SoQt(说明在这里找到)。我不得不稍微更改这些导出命令:

export COINDIR="/usr/local/share"

我尝试了四个不同版本的导出 INCLUDE,因为我对其目的一无所知,我不确定这是否是我收到错误的原因:

export INCLUDE="/usr/local/include:/usr/include/x86_64-linux-gnu/qt5/QtCore"
export INCLUDE="/usr/local/include:/usr/include/x86_64-linux-gnu/qt5"
export INCLUDE="/usr/include/x86_64-linux-gnu/qt5/QtCore"
export INCLUDE="/usr/include/x86_64-linux-gnu/qt5"

这是出现错误消息的地方:(下面的简短摘要)

checking for QT4... 
Could not gather the configure flags for Qt through pkg-config. Please
ensure that the qt pkg-config metadata .pc files, such as QtCore.pc,
exist on your system. In case the metadata .pc files are installed
into a non-default location verify that the PKG_CONFIG_PATH environment
variable points to the correct directory.
Further details in how to set the PKG_CONFIG_PATH environment variable
can be found in the pkg-config(1) man page.
checking whether the X11 miscellaneous utilities library is available... maybe
checking for cygpath... false
checking for moc... /usr/bin/moc
configure: WARNING: header file qglobal.h not found, can not compile Qtcode
configure: WARNING: QTDIR environment variable not set -- this might be an indication of a problem
Could not find any way to build against the Qt library. If you
are sure Qt is properly installed on your system, see the file
config.log to find out what went wrong.
One common way to solve this problem is to set up the environment
variable QTDIR to the base of the Qt installation directory. Or if it
was already set up, double check to see that it is pointing at the
correct directory.
Note that it is possible to override the combinations of Qt libraries
configure tries to link against by setting up the environment variable
CONFIG_QTLIBS. This might be necessary if you have installed the Qt
library in a manner that is not compatible with any of the known
configurations, for instance by changing the name of the library or
the Qt library having more dependencies on other libraries that we are
aware of.
If you for instance know the correct set of libraries to be qt304.lib,
qtmain.lib and gdi32.lib (this would be on an MSWindows system), then
set CONFIG_QTLIBS to the string ''-lqt304 -lqtmain -lgdi32'' before
re-running configure.
If you still can't get the configure script to detect the presence of
and how to use the Qt library, please mail the config.log file to
<coin-support@coin3d.org> and ask for help.
configure: error: aborting

我可能是错的,但似乎他正在寻找 Qt4 而不是 Qt5,因为

checking for QT4... 

它还读到

configure: WARNING: header file qglobal.h not found, can not compile Qtcode

这就是为什么我尝试使用qt5/QtCore而不是qt5作为路径,因为QtCore中有一个qglobal.h,但它不会改变任何东西。

在使用Qt5设置SoQt时,是否有其他人遇到类似的问题,可以帮助我?

提前感谢!

这些版本非常古老(2012)。请从CMake brach [1]获取最新的Coin来源,从[2]获取SoQt。使用 CMake 构建。另请参阅有关高 DPI 支持的讨论 [3]。

[1] https://bitbucket.org/Coin3D/coin/branch/CMake
[2] https://bitbucket.org/Coin3D/soqt/branch/default
[3] https://groups.google.com/forum/#!topic/coin3d-discuss/ipkSH08iFNk

相关内容

  • 没有找到相关文章

最新更新