Post date: 2016/07/01 2:28:01
1.Qt5でqtruby(qtbindings)が使えるようになる見通しはなかなか暗い
2.なので、Qt4ベースでaltaを作る
export QTDIR=/usr/local/anagix_tools/qt-4
は必須。そうしないと、Found unsuitable Qt version "5.6.0" from /usr/bin/qmake, this code requires Qt 4.x
というエラーになる。それから、以下の2つ+
export LD_LIBRARY_PATH=/usr/local/anagix_tools/lib:/usr/local/anagix_tools/qt-4/lib
export PATH=/usr/local/anagix_tools/bin:/usr/local/anagix_tools/qt-4/bin:$PATH
これで、gem install qtbindings できる。
3.ところがこここで問題発生
qt-4.8.5で作成したqtbindingsでは、Cannot mix incompatible Qt library (version 0x40807) with this library (version 0x40805)というエラーが発生して、ALTAを起動できない。
4.qt-4.8.6を作成したが、qtbindingsで、error: ‘QSslCertificate’ was not declared in this scopeというエラー
これは以前経験していたもので、opensslの環境がないのが問題だった。centosでは、yum install openssl-develだが
ubuntuでは、apt-get install libssl-dev
5.qt-4.8.6を作り直し、qtbindings作成成功。ALTAの起動を確認できた。