2
ubuntu 11.10でmiktex 2.8をコンパイルしようとしています。私は必要なライブラリをすべてインストールしました。しかし、ソースをコンパイルするとき、私はこの種のエラーを受け取ります。miktex 2.8 on ubuntu 11.10
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をインストールしたが、同じ問題が依然としてある。
誰でも手助けできますか?
私はすでにこれを行いましたが、まだ問題は残ります。 envに追加されていない可能性がありますか? –
libqt4-devパッケージをインストールした後、 'cmake -G" Unix Makefiles "コマンドを再実行してみてください。私は自分のUbuntu 11.04システムにmiktexをビルドしようとしました。そして、 'PackageTableModel.cpp'が失敗するまでは、' error: 'size_t'から 'QVariant'への変換はあいまいです。私のC++快適ゾーン。 – sarnold
これを試してみよう。ありがとう。 –