使用 Eclipse 和远程系统资源管理器进行构建
首先介绍一下背景...
- 我们有一个支持多个项目的Linux 服务器。
- Clearcase 服务器和存储库安装在此 Linux 服务器上。
- 不同的项目需要不同的交叉编译器和库,并且所有这些都安装在服务器上。
- 用户可以通过运行不同的脚本来选择不同的工具集,这些脚本导出不同的环境变量值,例如包含路径和编译器。
用户需要运行cleartool来挂载存储库。
开发人员在 Eclipse 中进行开发,有两种选择:
- 通过 SSH 连接到服务器并通过 X11 隧道运行 Eclipse。
- 在 Windows 计算机上本地安装 Eclipse 并从 SSH 终端调用构建。
现在:
- #1 的问题是 Eclipse 操作(键入、内容辅助等)极其缓慢。
- #2 的问题是开发人员需要经历额外的困难来构建他们的代码。
这是我尝试过的:
- 设置远程系统资源管理器,它允许远程编辑文件和远程运行编译器: 如何在远程计算机上构建 C++ 项目 。
这种方法非常适合不需要特殊环境变量值和安装 Clearcase 存储库的文件,但我不知道如何集成所有这些东西
如果有人能让我知道如何指示 RSE 运行脚本(每个项目可能不同)来设置环境变量并运行cleartool 命令来挂载存储库以便它可以找到文件,那就太好了。< br> 对于设置特定视图,每个用户的cleartool 命令参数都不同。
一些可能有帮助的额外信息:
- 我对开发服务器有 root 访问权限
- Clearcase 文件系统被映射到 Windows 机器上的驱动器
预先感谢您为我节省了处理慢速网络的时间!
==================
每个评论的其他详细信息: - VOB 存储位于 Linux 服务器本地。我们将通过 SSH 连接到服务器并在那里启动 Eclipse,因此延迟不应该是由于动态视图与快照视图而导致的,GUI 性能似乎是真正的问题。 - 我们还使用 Region Synchronizer 在 Windows 上安装相同的视图。运行 Windows 上安装的 Eclipse 本地副本时,不存在性能问题。
因此,这个问题可能可以通过回答以下任一问题来解决: 1. 如何提高X11性能,使得Linux上的开发足够了? 2. 如何设置 Windows Eclipse 在构建项目时执行上述所有步骤?
First with the background...
- We have a Linux server that supports multiple projects.
- The Clearcase server and repository are installed on this Linux server.
- Different projects require different cross-compilers and libraries, and all of them are installed on the server.
- User can choose different tool sets by running different scripts, which exports different environment variable values such as include paths and compilers.
User needs to run cleartool to mount the repository.
Developers develop in Eclipse and have two options:
- SSH into the server and run Eclipse through with X11 tunneling.
- Install Eclipse locally on their Windows machine and invoke builds from the SSH terminal.
Now:
- Problem with #1 is that Eclipse operations (typing, content assist, etc) are extremely laggy.
- Problem with #2 is that the developers need to go through extra hoops to build their code.
This is what I have tried:
- Set up Remote System Explorer, which allows remote editing of files and remote running of the compiler:
How to build a c++ project on a remote computer in Eclipse?
This approach works perfectly for files that do not need special environment variable values and mounting of Clearcase repository, but I could not figure out how to get all of these things to integrate.
It would be great if someone can let me know how I can direct RSE to run a script (may be different per project) to set the environment variables and to run the cleartool commands to mount the repository so that it can locate the files.
The cleartool command arguments would be different per user for setting up a particular view.
Some extra info that may help:
- I have root access to the development server
- The Clearcase filesystem is mapped to a drive on the Windows machine
Thanks in advance for saving me hours of frustration dealing with a slow network!
==================
Additional detail per comments:
- The VOB storage is located locally on the Linux server. We would SSH to the server and start Eclipse there, therefore the delay should not be due to dynamic vs snapshot view and GUI performance seems to be the real problem.
- We also mount the same view on Windows by using Region Synchronizer. When running the local copy of Eclipse installed on Windows, there is no performance problems.
So this question can probably be solved by answering either question:
1. How to improve X11 performance such that development on Linux will suffice?
2. How to set up Windows Eclipse to perform all the steps mentioned above when building projects?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我来到这里提出了与你的第二部分类似的问题,但可惜的是,没有人回答它。不过,我对你的第一部分有一个答案:https://www.nomachine.com/。它大大加快了 X11 转发速度。
I came here a similar question to your part two, but alas, no one has answered it. However, I have an answer to your part one: https://www.nomachine.com/. It speeds up X11 forwarding considerably.