开源3D打印软件ReplicatorG的源代码的获取与配置
来源:互联网 发布:sql赋值 编辑:程序博客网 时间:2024/05/17 22:55
由于ReplicatorG的开源项目好像没有人维护了,所以其源代码下载下来需要一些变化才能运行,我是用Eclipse运行的,系统是win7 64位。
1 源代码的获取
由于他们是在GitHub上维护的,所以他们给出的网址是:https://github.com/makerbot/ReplicatorG
如下图所示,他们最晚的维护的时间是2013年4月,所以代码有可能出问题。右下角是下载的连接,如果有git可以直接利用git克隆过来,如果没有直接下载ZIP文件也是可以的,当然他是国外的网站,所以我把我下载的ZIP文件分享出来:
源代码链接:http://pan.baidu.com/s/1pJ64niV
安装文件(我安装不成功)链接:http://pan.baidu.com/s/1c0i4gVY
2 源代码的构建
对于怎样构建这个程序其官网也有介绍,官网网址:http://replicat.org/building-from-source,其介绍是先下载--再装Git--再装JDK(这个是必须的)--在装Ant等等,但是如果我们使用Eclipse进行构建的话,这些就都省了,因为JDK当然我们已经装好了,其中Eclipse中就内置Ant,所以就不用装了。对于怎样在Eclipse中构建,官网上时这么介绍的。额,确实他都说出来了。翻译就……有时间的时候我再翻译吧。
Prerequisites
Make sure you've installed the sources and tools as described on our building from source page, and that you've correctly installed the Eclipse IDE.
Creating the project yourself
- Start Eclipse and select "File>New>Project…" from the menu. Select "Java Project from Ant Buildfile" from the wizard.
- Select the "build.xml" file from the ReplicatorG directory as the Ant buildfile. Click "finish" to create the project.
- All the additional libraries needed for build were automatically added by Ant but they should be manually re included from within "ReplicatorG/build" directory:
- Right click on the project name, and select "Properties".
- In the Properties dialog, select "Java Build Path".
- Select the Libraries tab.
- Press "Add External JARs…" (on the right side of the window).
- Add all the JARs from within "build/shared/lib" directory.
- Optional: Remove all the duplicated JARs.
If you intend to run ReplicatorG from Eclipse, you'll need to set up a launch configuration. When you do, be sure to add the native libraries for your platform to the VM arguments.
- Still in the properties dialog, select "Run/Debug Settings". Click "New", then "Java Application". This will bring up the edit configuration dialog.
- On the main tab, for a main class select "Base - replicatorg.app"
- On the Arguments tab, add the library paths to the VM arguments.
- For a Linux x86 build (tested on Linux Ubuntu 11.10), add: -ea -Djava.library.path=${workspace_loc:ReplicatorG}/build/linux/dist/lib-i686 -Dreplicatorg.app-resources=${workspace_loc:ReplicatorG}/build/shared/lib -Djava.library.path=/usr/lib/jni
- For a Linux x86-64 build (tested on Linux Ubuntu 11.10), add: -ea -Djava.library.path=${workspace_loc:ReplicatorG}/build/linux/dist/lib-x86_64 -Dreplicatorg.app-resources=${workspace_loc:ReplicatorG}/build/shared/lib -Djava.library.path=/usr/lib/jni
- For a Windows build, add: -ea -Djava.library.path=${workspace_loc:ReplicatorG}/build/windows/dist -Dreplicatorg.app-resources=${workspace_loc:ReplicatorG}/build/shared/lib
- For an OS X build, add: -d32 -ea -Xmx1G -Djava.library.path=${workspace_loc:ReplicatorG}/build/macosx/dist -Dreplicatorg.app-resources=${workspace_loc:ReplicatorG}/build/shared/lib
Windows 7 64-bit builds
Mark Klunder recommends the following to get Eclipse builds working properly on 64-bit Windows 7 platforms:
To get ReplicatorG to execute on my Windows7 64bit edition under jdk 1.6.0_26 i had to do the followingRemoved : JRE_Lib Added : JRE System Library [jdk1.6.0_26]Changed files to 64 bit versions -------------------------------------------------------------------------------------------j3dcore-ogl.dll : Sourced from http://java3d.java.net/binary-builds.htmlrxtxSerial.dll : Sourced from http://www.cloudhopper.com/opensource/rxtx/RXTXcomm.jar : Sourced from http://www.cloudhopper.com/opensource/rxtx/
We'll try to get these libraries into the source tree soon.
他虽然说会很快将这些库添加到资源里,但是,你懂得……,注意上面的连接都是不能用的,要下载,我给出我上传到CSDN上的链接:j3dcore-ogl.dll 链接为:http://download.csdn.net/detail/xuanyuanlei1020/8866767
rxtxSerial.dll和
RXTXcomm.jar 的链接为:http://download.csdn.net/detail/xuanyuanlei1020/8866785
上面tool的安装方法都是lib中的文件放到JDK-->JRE-->lib-->ex中,bin中的文件放到JDK-->JRE-->lbin中,当然我们可以通过文件自身含有的安装方法进行安装(一般都是readme)。
当然,他的上面的那一句话,还是要听的,就是,将JRE_Lib删掉,然后使用自己的JDK(不必是1.6,我使用就是1.8)。做了这么多够了吗,额不够还……,我们按照他的方法,导入Eclipse中发现代码中有错误,就是对于compare类的错误,这个时候我们需要这样做:
Windows-->preference-->java-->compiler中将他的1.5 改为1.7(我是用的JDK 1.8,所以……)。
3 对一些资源进行移动
因为使用Eclipse进行调试,有些资源需要进行移动(他们是利用Ant和xml文件直接将资源打包在Jar中,所以有些目录是不对的)。具体移动方式晚上再添加。
好了做了这么多应该就可调试出来,如果还有什么问题,可以给我留言。
0 0
- 开源3D打印软件ReplicatorG的源代码的获取与配置
- 自主开发的3D打印软件
- 3D打印切片软件--cura的二次开发
- 3D打印切片软件Cura的简单使用
- 3D打印切片软件--cura的二次开发(2)(界面分析与汉化)(修改版增加图片)
- 如何获取portage中软件的源代码
- 有趣的3D打印
- 3D 打印的模型 告别手动添加支撑的方式 — 使用 Meshmixer 软件
- Linux源代码软件的安装与卸载
- 3D打印与3D扫描的未来在哪里
- 3D打印软件Cura的二次开发(GUI)--环境搭建
- 一个简单的Java 3D源代码
- 3D打印培训的几个误区
- 3D打印耗材常见的几个问题
- 被“现实”打败的3D打印
- 3D打印----Cura软件二次开发
- 3D 打印开源软件 cura
- 3D 打印切片软件 CuraEngine 介绍
- Android-Eclipse汉化
- 判断文件是否存在的shell脚本代码
- 装完XAMPP之后如何进行php网站的建设
- 图解TCP-IP协议
- Android一键开启远程ADB调试
- 开源3D打印软件ReplicatorG的源代码的获取与配置
- tail
- 【Spring之配置propertie资源文件】Maven整合spring profiles功能配置propertie资源文件更灵活、简单
- 测试
- Xcode 中的小技巧
- 前进的路上,我们永不止步
- 我对 rest 以及 restful 的一些粗浅的理解
- 天猫11.11:多终端下的一致性体验
- Redis