Qt Jambi eclipse在Windows 64位上的集成错误 [英] Qt Jambi eclipse integration error on Windows 64 bits

查看:211
本文介绍了Qt Jambi eclipse在Windows 64位上的集成错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我似乎无法弄清楚如何正确地将Qt Jambi整合到日食中。这是我做的:


  1. 我安装了Windows 64位工具包的版本;

  2. 我将所需的集成插件复制到 {ECLIPSE_PATH} \plugins ;

  3. 我启动了eclipse并将Qt Jambi的安装目录设置在首选项;

  4. 然后,当我尝试应用新的首选项时,我收到一个错误,表示有关无法启动的模块( {QT_JAMBI_PATH} \bin\qtdesigner.dll );

  5. 重新启动eclipse后,我找不到任何Qt Jambi的集成视图。我可以切换到 Qt Designer UI 透视图,但是没有新面板出现。最后, .jui 文件不被识别,并显示为简单的文本文件。

bin文件夹中不存在DLL文件 qtdesigner.dll 。我尝试使用eclipse 32位和Qt Jambi 32位相同的过程,但它也不起作用。



您认为问题来自哪里?

解决方案

目前还没有与Windows 64位JVM兼容的QtJambi Eclipse集成插件的已知版本,因此也提供为64位DLL这些部分是本地代码组件)。



这是要备份该声明的官方页面: http://qt.nokia.com/products/eclipse-integration/



另外QtJambi Eclipse集成源代码从未发布到社区,以便允许他们维护它或为其他操作系统和ABI(如64位Windows)构建娴熟程序。此外,页面中的版本可能与Eclipse的旧版本Eclipse 3.4和3.5最相似。



然而,一切都不会丢失,这是我的意图(作为一个的QtJambi维护者)在未来6个月内再次恢复工作。但是,根据我们的错误报告系统,我目前关注的是更紧急的项目。



...



在64位进程地址空间中混合32位DLL是不可能的简单/幼稚的方式。所以通常所有的EXE和DLL都必须是一样的。由于我们知道QtJambi Eclipse集成是从Windows 32位工作的,以下是一些信息,以帮助您。



...



Windows 64位系统能够运行32位应用程序,并且还可以分别安装64位和32位JVM(只需下载适用于每种32位和64位的适用JVM安装EXE,并单独安装)。 p>

然后您当然需要获取Win32版本的Eclipse并解压缩/安装。



为了获得一个32位版本的Eclipse在64位系统上运行,需要手动编辑eclipse.ini文件,这里是一个工作的eclipse.ini的例子,其中加上的重要部分被突出显示(取自eclipse-jee-indigo-win32这是Eclipse 3.7 Indigo从
http://www.eclipse。 org / downloads / download.php?file = / technology / epp / downloads / release / indigo / R / eclipse-jee-indigo-win32.zip ):



eclipse.ini

  -startup 
plugins / org $。$ c $ $
org.eclipse.epp.package.jee.product
-showsplash
org.eclipse.platform
-vm
C:/ Program Files(x86)/ Java $ / $ / $ /
-Dosgi.requiredJavaVersion = 1.5
-Xms64m
-Xmx1280m

我确保我对默认eclipse.exe进行的重要更改是:



-vm $ $ $ $ $ $ $ $ $% )/Java/jdk1.6.0_26/jre/bin/client/jvm.dll



请注意,您需要将其修改为文件的路径,存在于您的JDK已安装,在我的示例中,我使用的是Sun / Oracle JDK。因此,检查文件实际上存在于您的系统中,这迫使32位JVM与32位版本的Eclipse一起使用。我不知道为什么他们的容器exe(eclipse.exe)在运行时还没有这样做,但仍然。





- launcher.XXMaxPermSize

256M



总是一个好主意,因为eclipse需要一个比普通PermGen堆更大的一个。但是所有版本的eclipse都可能需要这个配置,这并不影响你的问题,只是在这里提供一些建议。


I can't seem to figure out how to properly integrate Qt Jambi to eclipse. Here is what I did:

  1. I installed the version of the toolkit for Windows 64 bits;
  2. I copied the required integration plugins in {ECLIPSE_PATH}\plugins;
  3. I launched eclipse and set Qt Jambi's installation directory in the preferences;
  4. Then, when I tried to apply the new preferences, I got an error that said something about a module that couldn't be launched ({QT_JAMBI_PATH}\bin\qtdesigner.dll);
  5. After restarting eclipse, I can't find any of Qt Jambi's integration views. I can switch to Qt Designer UI perspective, but then, no new panel is appearing. Finally, .jui files are not recognized and appear as simple text files.

The DLL file qtdesigner.dll does not exist in the bin folder. I tried the same procedure using eclipse 32 bits, and Qt Jambi 32 bits, but it's not working either.

Where do you think the problem comes from?

解决方案

There is currently no known release of QtJambi Eclipse integration plugins that are compatible with a Windows 64bit JVM and therefore also provided as 64bit DLLs (as many parts of it are native code components).

Here is the official page to back up that claim: http://qt.nokia.com/products/eclipse-integration/

Also the QtJambi Eclipse integration source code was never released to the community in order to allow them to either maintain it or build versons for other OS and ABI (like 64bit Windows). Also the version in the page is probably most compatible with older versions of Eclipse such a Eclipse 3.4 and 3.5.

However all is not lost, it is my intention (as one of the QtJambi maintainers) to get something back working again within the next 6 months. But my current attention is on more urgent matters within the project as per our bug reporting system indicates.

...

It is not possible to mix 32bit DLLs in 64bit process address space a simple/naive way. So as a rule all EXE and DLLs have to be the same kind. Since we know that QtJambi Eclipse integration works from windows 32bit here is some information below to help you with that.

...

A Windows 64bit system is capable of running 32bit applications and also capable of having both the 64bit and 32bit JVMs installed separately (just download the appropiate JVM install EXE for each kind 32bit and 64bit and install both individually).

You then of course need to obtain the Win32 version of Eclipse and unzip/install it.

In order to get a 32bit version of Eclipse to run on a 64bit system it is necessary to manually edit the eclipse.ini file here is my example of a working eclipse.ini with the important parts of the additions highlighted (taken from eclipse-jee-indigo-win32 which is Eclipse 3.7 Indigo from http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/indigo/R/eclipse-jee-indigo-win32.zip ) :

eclipse.ini

-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.100.v20110502
-product
org.eclipse.epp.package.jee.product
-showsplash
org.eclipse.platform
-vm
C:/Program Files (x86)/Java/jdk1.6.0_26/jre/bin/client/jvm.dll
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms64m
-Xmx1280m

The important changes I ensure I make to the default eclipse.exe are:

-vm
C:/Program Files (x86)/Java/jdk1.6.0_26/jre/bin/client/jvm.dll

Note you need to modify this to the path of the file that exists for your JDK that is installed, in my example I am using the Sun/Oracle JDK. So check the file actually exists in your system, this forces the 32bit JVM to be used with the 32bit version of Eclipse. I don't know why their container exe (eclipse.exe) doesn't already do this at runtime, but still.


--launcher.XXMaxPermSize
256M

Always a good idea as eclipse needs a larger than usual PermGen heap. But all versions of eclipse probably want this configuration and this doesn't affect your problem just some advise here.

这篇关于Qt Jambi eclipse在Windows 64位上的集成错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆