我一直在尝试使用 QT Jambi,但我还无法安装它。首先,这是我的系统:
Windows 7 家庭高级版 64 位
Java 6 32位(我经常使用不兼容Java 64位版本的JDownloader)
附带 Code::Blocks 的 MinGW C++ 编译器(在设置期间设置所有必需的环境变量)
我也安装了 CygWin,但我不明白为什么在我得到的错误中提到它......
我的第一个想法是尝试 32 位版本,因为我有 32 位 Java,所以我在 Eclipse 中链接了库,尝试了教程中的经典初学者程序,我收到了这条消息:
java.lang.ExceptionInInitializerError
at com.trolltech.qt.QtJambiObject.<clinit>(Unknown Source)
Caused by: java.lang.RuntimeException: Loading library failed, progress so far:
Unpacking .jar file: 'qtjambi-win32-msvc2008-4.7.1.jar'
Checking Archive 'qtjambi-win32-msvc2008-4.7.1.jar'
- skipping because of wrong system: trying to load: 'win32', expected: 'win64'
Loading library: 'QtCore4.dll'...
- using 'java.library.path'
at com.trolltech.qt.internal.NativeLibraryManager.loadNativeLibrary(Unknown Source)
at com.trolltech.qt.internal.NativeLibraryManager.loadQtLibrary(Unknown Source)
at com.trolltech.qt.Utilities.loadQtLibrary(Unknown Source)
at com.trolltech.qt.Utilities.loadQtLibrary(Unknown Source)
at com.trolltech.qt.QtJambi_LibraryInitializer.<clinit>(Unknown Source)
... 1 more
Caused by: java.lang.RuntimeException: Library 'QtCore4.dll' was not found in 'java.library.path'=C:\Program Files\Java\jre6\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C: \Windows;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Broadcom\Broadcom 802.11\Driver;c:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn\;C:\Program Files (x86)\CodeBlocks\MinGW\bin\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\cygwin\bin;C:\Program Files\Microsoft Windows Performance Toolkit\;.
at com.trolltech.qt.internal.NativeLibraryManager.loadLibrary_helper(Unknown Source)
... 6 more
Exception in thread "main"
然后因为它说它需要一个 64 位系统,所以我按照安装指南尝试了以下步骤:
1) 下载QTJambi源码包
2) 下载原QT源码包
3)在环境PATH变量中添加“C:\QTJambi\QT\qt-qt\bin”(QT源码包文件夹)
4) 打开 Visual Studio 2005 命令提示符
5) cd C:\QTJambi\QT\qt-qt
6)尝试:配置-platform win64 -g++ -D QT_JAMBI_BUILD -no-qt3support -plugin-manifests
但它没有用,错误:invalid option win64-g++ for -platform
7) 尝试过 configure -platform win32 -g++ -D QT_JAMBI_BUILD -no-qt3support -plugin-manifests
8) 数字 o 表示开源
9) 数字 y 用于接受许可证
但它也不起作用,出现此错误:
Running syncqt...
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LC_ALL = (unset)
LANG = "IT"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Can't execute /cygdrive/c/QTJambi/QT/qt-qt/bin//syncqt
syncqt failed, return code 2
有谁能帮忙吗?提前感谢任何人!