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

在ubuntu 11.10上编译miktex 2.8时遇到问题,ubuntu,miktex,Ubuntu,Miktex,我正试图在Ubuntu11.10上编译miktex 2.8。我已经安装了所有必要的库。但在编译源代码时,我会遇到这样的错误: RepositoryTableModel.cpp:(.text+0x48b): undefined reference to QAbstractItemModel::headerData(int, Qt::Orientation, int) const' RepositoryTableModel.cpp:(.text+0x4c8): undefined reference

我正试图在Ubuntu11.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*)'
这些只是其中的几个。我以为缺少了一些libs,我安装了qtsdk,但仍然遇到同样的问题

有人能帮忙吗?

试试这个:

apt-get install libqt4-dev

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

我已经这样做了,问题仍然存在。可能尚未将其添加到环境中?请在安装libqt4 dev包后尝试重新运行
cmake-G“Unix Makefiles”
命令。我试图在我的Ubuntu 11.04系统上构建MikToX,并获得了很长的路——直到 PACGETETABLMUDEOL.CPP ,它失败了:<代码>错误:从“sisivit”到“qFALUTE”的转换是模糊的<代码>,这是我的C++舒适区之外的一种方式。