gpt4 book ai didi

ubuntu - 在 ubuntu 11.10 上编译 miktex 2.8 时遇到问题

转载 作者:行者123 更新时间:2023-12-04 06:00:51 25 4
gpt4 key购买 nike

我正在尝试在 ubuntu 11.10 上编译 miktex 2.8。我已经安装了所有必要的库。但是在编译源代码时,我得到了这种错误:

RepositoryTableModel.cpp:(.text+0x48b): undefined reference to QAbstractItemModel::headerData(int, Qt::Orientation, int) const'
RepositoryTableModel.cpp:(.text+0x4c8): undefined reference to `QMetaObject::tr(char const*, char const*) const'
RepositoryTableModel.cpp:(.text+0x4d7): undefined reference to `QVariant::QVariant(QString const&)'
RepositoryTableModel.cpp:(.text+0x4f1): undefined reference to `QString::free(QString::Data*)'
RepositoryTableModel.cpp:(.text+0x518): undefined reference to `QMetaObject::tr(char const*, char const*) const'
RepositoryTableModel.cpp:(.text+0x527): undefined reference to `QVariant::QVariant(QString const&)'
RepositoryTableModel.cpp:(.text+0x545): undefined reference to `QString::free(QString::Data*)'
RepositoryTableModel.cpp:(.text+0x570): undefined reference to `QMetaObject::tr(char const*, char const*) const'
RepositoryTableModel.cpp:(.text+0x57f): undefined reference to `QVariant::QVariant(QString const&)'
RepositoryTableModel.cpp:(.text+0x59d): undefined reference to `QString::free(QString::Data*)'
RepositoryTableModel.cpp:(.text+0x5c8): undefined reference to `QMetaObject::tr(char const*, char const*) const'
RepositoryTableModel.cpp:(.text+0x5d7): undefined reference to `QVariant::QVariant(QString const&)'
RepositoryTableModel.cpp:(.text+0x5f5): undefined reference to `QString::free(QString::Data*)'
RepositoryTableModel.cpp:(.text+0x620): undefined reference to `QMetaObject::tr(char const*, char const*) const'
RepositoryTableModel.cpp:(.text+0x62f): undefined reference to `QVariant::QVariant(QString const&)'
RepositoryTableModel.cpp:(.text+0x64d): undefined reference to `QString::free(QString::Data*)'

这些只是其中的一小部分。我以为缺少一些库,我安装了 Qt SDK 但仍然遇到同样的问题。

任何人都可以帮忙吗?

最佳答案

尝试这个:

apt-get install libqt4-dev

您需要 -dev库包的版本,以提供声明新数据类型、函数原型(prototype)等的头文件。(大多数库包提供 -dev 版本,尽管少数在主包中提供头文件。)

关于ubuntu - 在 ubuntu 11.10 上编译 miktex 2.8 时遇到问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8918943/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com