是否有我可以在 Windows 上安装的 kdevelop 版本?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7101595/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Is there a kdevelop version that i can install on windows?
提问by craftace
is there any other than using Cygwin? thanks!
除了使用 Cygwin 之外还有其他方法吗?谢谢!
采纳答案by zw324
回答by Mischa Vreeburg
I've installed kdevelop on win7, using emerge: http://techbase.kde.org/Getting_Started/Build/Windows/emerge.
我已经在 win7 上安装了 kdevelop,使用emerge:http: //techbase.kde.org/Getting_Started/Build/Windows/emerge。
To get it all working is a pain in the ass, mostly because there is no guide.
让它全部工作是一件很痛苦的事情,主要是因为没有指南。
Here is how I did it:
这是我如何做到的:
Install python and git.
Create a directory where you want to install kde. Name it kde4, i.e.
C:\kde4
. This is futher called%KDEROOT%
.Go to
%KDEROOT%
, usingcd %KDEROOT%
.Run
git clone git://anongit.kde.org/emerge.git
in this directory.
Make directory
%KDEROOT%\etc
.Copy from
%KDEROOT%\emerge\kdesettings-example.bat
to%KDEROOT%\etc\kdesettings.bat
, and change settings as preferred.Run:
cd emerge && git checkout kde-4.7
then go to
%KDEROOT%\emerge
and runkdeenv.bat
.This will open a new window. Here you can start the building of kde.
Run
emerge qt
,emerge kdelibs
,emerge kde-baseapps
,emerge kdevelop
andemerge kdevelop-pg-qt
.This will take a while.
Now you need to make two bat files in the
%KDEROOT%\bin
directory.The first should be called
kbuildsycoca4.bat
and contain:@ECHO OFF ECHO Initialize KDE environment SET KDEROOT=%~dsp0\.. SET KDEBIN=%KDEROOT%\bin SET KDELIB=%KDEROOT%\lib SET KDELIB_KDE4=%KDELIB%\kde4 SET KDESHARE=%KDEROOT%\share SET KDESHARE_KDE4=%KDESHARE%\kde4 SET KDEDEV_UTILS=%KDEROOT%\dev-utils SET GIT_LOC=%KDEDEV_UTILS%\git\bin SET SVN_LOC=%KDEDEV_UTILS%\svn\bin SET PYTHONPATH=C:\Users\Public\Programs\Python27\App <-- This is only nessecary if it is not in your environment SET PATH=%PATH%;%GIT_LOC%;%SVN_LOC% SET KDEDIRS=%KDEROOT%;%KDEBIN%;%KDELIB%;%KDESHARE%;%KDEDEV_UTILS%;%KDELIB_KDE4%;%KDESHARE_KDE4% SET kbuildsycoca4_binary=%KDEBIN%\kbuildsycoca4.exe ECHO Running kbuildsycoca4 :run CALL "%kbuildsycoca4_binary%" CALL "%kbuildsycoca4_binary%" --noincremental CALL "%kbuildsycoca4_binary%" --checkstamps pause
and the second one should be called
kdevelop.bat
and contain:@ECHO OFF ECHO Initialize KDE environment SET KDEROOT=%~dsp0\.. SET KDEBIN=%KDEROOT%\bin SET KDELIB=%KDEROOT%\lib SET KDELIB_KDE4=%KDELIB%\kde4 SET KDESHARE=%KDEROOT%\share SET KDESHARE_KDE4=%KDESHARE%\kde4 SET KDEDEV_UTILS=%KDEROOT%\dev-utils SET GIT_LOC=%KDEDEV_UTILS%\git\bin SET SVN_LOC=%KDEDEV_UTILS%\svn\bin SET PYTHONPATH=C:\Users\Public\Programs\Python27\App <-- This is only nessecary if it is not in your environment SET PATH=%PATH%;%GIT_LOC%;%SVN_LOC% SET KDEDIRS=%KDEROOT%;%KDEBIN%;%KDELIB%;%KDESHARE%;%KDEDEV_UTILS%;%KDELIB_KDE4%;% KDESHARE_KDE4% SET kdev_binary=%KDEBIN%\kdevelop.exe ECHO Starting kdevelop :run CALL "%kdev_binary%"
安装python和git。
创建一个要安装 kde 的目录。将其命名为 kde4,即
C:\kde4
。这进一步称为%KDEROOT%
.转到
%KDEROOT%
,使用cd %KDEROOT%
。跑
git clone git://anongit.kde.org/emerge.git
在这个目录中。
制作目录
%KDEROOT%\etc
。从 复制
%KDEROOT%\emerge\kdesettings-example.bat
到%KDEROOT%\etc\kdesettings.bat
,并根据需要更改设置。跑:
cd emerge && git checkout kde-4.7
然后去
%KDEROOT%\emerge
运行kdeenv.bat
。这将打开一个新窗口。到这里就可以开始kde的搭建了。
运行
emerge qt
,emerge kdelibs
,emerge kde-baseapps
,emerge kdevelop
和emerge kdevelop-pg-qt
。这将需要一段时间。
现在需要在
%KDEROOT%\bin
目录下制作两个bat文件。第一个应该被调用
kbuildsycoca4.bat
并包含:@ECHO OFF ECHO Initialize KDE environment SET KDEROOT=%~dsp0\.. SET KDEBIN=%KDEROOT%\bin SET KDELIB=%KDEROOT%\lib SET KDELIB_KDE4=%KDELIB%\kde4 SET KDESHARE=%KDEROOT%\share SET KDESHARE_KDE4=%KDESHARE%\kde4 SET KDEDEV_UTILS=%KDEROOT%\dev-utils SET GIT_LOC=%KDEDEV_UTILS%\git\bin SET SVN_LOC=%KDEDEV_UTILS%\svn\bin SET PYTHONPATH=C:\Users\Public\Programs\Python27\App <-- This is only nessecary if it is not in your environment SET PATH=%PATH%;%GIT_LOC%;%SVN_LOC% SET KDEDIRS=%KDEROOT%;%KDEBIN%;%KDELIB%;%KDESHARE%;%KDEDEV_UTILS%;%KDELIB_KDE4%;%KDESHARE_KDE4% SET kbuildsycoca4_binary=%KDEBIN%\kbuildsycoca4.exe ECHO Running kbuildsycoca4 :run CALL "%kbuildsycoca4_binary%" CALL "%kbuildsycoca4_binary%" --noincremental CALL "%kbuildsycoca4_binary%" --checkstamps pause
第二个应该被调用
kdevelop.bat
并包含:@ECHO OFF ECHO Initialize KDE environment SET KDEROOT=%~dsp0\.. SET KDEBIN=%KDEROOT%\bin SET KDELIB=%KDEROOT%\lib SET KDELIB_KDE4=%KDELIB%\kde4 SET KDESHARE=%KDEROOT%\share SET KDESHARE_KDE4=%KDESHARE%\kde4 SET KDEDEV_UTILS=%KDEROOT%\dev-utils SET GIT_LOC=%KDEDEV_UTILS%\git\bin SET SVN_LOC=%KDEDEV_UTILS%\svn\bin SET PYTHONPATH=C:\Users\Public\Programs\Python27\App <-- This is only nessecary if it is not in your environment SET PATH=%PATH%;%GIT_LOC%;%SVN_LOC% SET KDEDIRS=%KDEROOT%;%KDEBIN%;%KDELIB%;%KDESHARE%;%KDEDEV_UTILS%;%KDELIB_KDE4%;% KDESHARE_KDE4% SET kdev_binary=%KDEBIN%\kdevelop.exe ECHO Starting kdevelop :run CALL "%kdev_binary%"
Now it should run.
现在它应该运行了。
I still have trouble with the kDevCmakeManager plugin and the source formatter settings under settings->kdevelop settings->source formatter. It crashes then.
我的kDevCmakeManager插件和settings->kdevelop settings->source formatter下的source formatter设置还是有问题。然后它崩溃了。
回答by kfunk
KDevelop core developer here.
KDevelop核心开发人员在这里。
KDevelop 5 is now available for Windows, head over to: https://www.kdevelop.org/download
KDevelop 5 现在可用于 Windows,请访问:https: //www.kdevelop.org/download