我已经下载该IKVM源(http://www.ikvm.net/)从 http://sourceforge.net/cvs/?group_id=69637

现在我想把它建立在Visual Studio2008年,我卡住了。没有人知道文件是如何建造的东西,或甚至可以给我指点?

我已经试图打开ikvm8.sln,这将打开所有项目,但是试图建立的方案导致了一堆"类型或名称空间不可能发现的"错误。

正如你可能会猜我没有Visual Studio专家,而是我用来工作与Java在蚀。

所以,我要找的是:一步一步的指示或链接到文件如何建立IKVM在Visual Studio.

让我知道如果你需要任何更多信息。感谢任何的帮助!

编辑: 我也尝试了一个手册"MsBuild.exe IKVM8.sln",但是还得到一束:

JniInterface.cs(30,12): error CS0234: The type or namespace name 'Internal' does not exist in the namespace 'IKVM' (a
re you missing an assembly reference?)
JniInterface.cs(175,38): error CS0246: The type or namespace name 'ClassLoaderWrapper' could not be found (are you mi
ssing a using directive or an assembly reference?)
JniInterface.cs(175,13): error CS0246: The type or namespace name 'ClassLoaderWrapper' could not be found (are you mi
ssing a using directive or an assembly reference?)

编辑#2:我注意到一个"ikvm。建立"的文件,所以我跑了nant上的文件夹,这让我更进了一步。一些东西开始建立成功,不幸的是我现在得到的以下错误:

ikvm-native-win32:

            [mkdir] Creating directory 'C:\Documents and Settings\...\My Documents\ikvm\ikvm\native\Release'.
               [cl] Compiling 2 files to 'C:\Documents and Settings\...\My Documents\ikvm\ikvm\native\Release'.
        BUILD FAILED
        C:\Documents and Settings\...\My Documents\ikvm\ikvm\native\native.build(17,10):
        'cl' failed to start.
           The system cannot find the file specified
        Total time: 0.2 seconds.

编辑#3:确定解决,通过投入 cl.exe 在路径,仍然得到其他问题虽然。 注意,这是所有建设它在控制台例如与Nant.有没有办法得到它建立在Visual Studio?那会是悲伤...

编辑#4:下一个步骤是安装GNU类路径0.95,现在它看起来像我需要一个们可根据最新的技术提供一些特定安装...Linux AMD64?!

             [exec] javac: file not found: ..\..\openjdk6-b12\control\build\linux-amd64\gensrc\com\sun\accessibility\internal\resources\accessibility.java
             [exec] Usage: javac <options> <source files>
             [exec] use -help for a list of possible options

编辑#5:有一个答案的作者。见下文或在 http://weblog.ikvm.net/CommentView.aspx?guid=7e91b51d-6f84-4485-b61f-ea9e068a5fcf 让我们看看如果它的工作原理...

编辑#6 因为我担心,下一个问题:"不能打开窗户。h",看到单独的问题 在这里,.

最后编辑:找到解决办法! 之后得到平台SDK文件夹在Lib和道路环境变量,解决我描述下面为我工作。

有帮助吗?

解决方案 2

确定只有以下答复者: http://weblog.ikvm.net/CommentView.aspx?guid=7e91b51d-6f84-4485-b61f-ea9e068a5fcf

如果你想要建立从简历,你在你自己的。但是,你可以更容易地建立从来源,如果你使用一个正式的释放。

如果你下载ikvm-0.36.0.11.zip,classpath-0.95-stripped.zip 和openjdk-b13-stripped.zip 从SourceForge(最后两个在ikvm0.36.0.5释放)你有所有的来源,都是需要的。

现在你得打开一个Visual Studio2008年命令提示(即一个有cl.exe 和pe验证的路径)。

然后在ikvm根目录,做一个"nant干净"随后"nant".应该建立整个项目。之后你做了,你应该能够建立在Visual Studio(调试的目标只有),但是你可能需要修复大会参考的项目(除非你有ikvm安装在c:\ikvm).

问候, Jeroen

编辑:之后确保平台SDK文件夹中的路径和Lib环境的变量,这为我工作。谢谢,Jeroen!

其他提示

我不知道,这将为你做的但你可以尝试从命令行?

msbuild________

我认为这就是我建立的应用由于同样的问题。

这是我的建IKVM8.1.5717.0从源。Visual Studio不是必需的。

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top