Building X10 from Source

Building X10 from Source

These instructions can be used either to build X10 from source code checked out of the repository or from an X10 source release obtained from the downloads page. To checkout the source code tree that matches a particular X10 release from svn (instead of from a source code release) one simply uses a URL such ashttps://svn.code.sourceforge.net/p/x10/code/tags/SF_RELEASE_2_4_2/ in place ofhttps://svn.code.sourceforge.net/p/x10/code/trunk in the instructions below, changing the tag to the release you want to use.

Assumptions and Prerequisites

This assumes that JAVA_HOME is set to a Java 6.0 compatible SDK.

You will also need ant 1.7 or better, as well as g++ 4.4 or better (optionally xlC 11.1 or better), binutils, wget, and GNUmake.

Note for Linux users: The X10 build uses the javah task, which is not included in the default ant package. You would need to install ant-nodeps (on RedHat/Gentoo-based systems) or ant-optional (on Debian/SuSE-based systems).

Note for MacOS users: The default Java installation on recent versions of MacOS is not a complete JDK even if it comes with the javac compiler. You must install a proper JDK to build X10 from sources, that is, either a Java Developer Package for Java 6 from Apple or a Java 7 JDK from Oracle. If JAVA_HOME is not set, the build will use the preferred Java installation as returned by /usr/libexec/java_home.

Note for Windows users: You must build X10 within the cygwin environment. The minimum Cygwin version required to build X10 is 1.7.1, as Cygwin releases prior to 1.7.1 broke the shared library behavior of g++ 4.3.2.  Make sure you have these packages:  gcc, g++, wget, make, binutils, diffutils, libtool, svn, patch.

Getting the source

If you are building from a source code release, simply untar or unzip it.  If not, checkout the code from SVN.

svn co https://svn.code.sourceforge.net/p/x10/code/trunk x10-trunk

Now that you have all the source; build it by doing:

cd x10-trunk/x10.dist
ant dist

See section below for arguments you may wish to pass to ant.

Updating and rebuilding

To refresh the code from svn, do

cd x10-trunk; svn update

Almost always after updating your code from svn, you will need to do a fairly complete rebuilt.

cd x10-trunk/x10.dist
ant squeakyclean dist

Optional arguments to ant

If you want to build a maximally optimized versions of the class libraries, supply the arguments -D NO_CHECKS=true -Doptimize=true  i.e. run

 ant -DNO_CHECKS=true -Doptimize=true squeakyclean dist

NO_CHECKS=true ensures that no constraint type-checks and array bounds checks are performed at run time.
You can also build fairly optimized, but still safe, class libraries by just using -Doptimize=true.

To disable GC, supply the argument -DDISABLE_GC=true. Note that on all platfroms except AIX, GC is enabled by default. GC is not currently supported on AIX.

To build faster, supply -Davailable.procs=n, where n is the number of cores you want to use for the build (default=2).

If you want to use the MPI runtime, supply -DX10RT_MPI=true. For PAMI support, set -DX10RT_PAMI=true. See X10RTImplementations for more details on these.

Example of how to checkout and compile the entire source code on windows

  • Install cygwin to directory c:\cygwin,
    with the packages: gcc (all of them), wget, make, binutils, libtool, svn, patch.
  • Download apache ant to C:\cygwin\home\USERNAME\apache-ant-1.8.0 (version 1.8.0 is current as of this writing, but be sure to use a path that corresponds to the version you downloaded).
  • checkout the source code:
    svn co https://svn.code.sourceforge.net/p/x10/code/trunk C:/cygwin/home/USERNAME/x10-trunk
  • Edit the file C:\cygwin\home\USERNAME\.bash_profile
    And add:
    if [ -d "${HOME}/bin" ] ; then
          PATH=${HOME}/bin:${PATH}
    fi
    PATH=${HOME}/apache-ant-1.8.0/bin:${HOME}/x10-trunk/x10.dist/bin:${PATH}
    export CYGWIN="nodosfilewarning"
    LC_ALL=C
    LANG=C
       

    Create a bin directory: C:\cygwin\home\USERNAME\bin
    and add a file there called: x10make
    with the content:

       #!/bin/sh
       cd ~
       cd x10-trunk
       svn up
       cd x10.dist
       ant squeakyclean dist
       
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
毕业设计,基于SpringBoot+Vue+MySQL开发的兼职网,源码+论文答辩+毕业论文+视频演示 随着科学技术的飞速发展,社会的方方面面、各行各业都在努力与现代的先进技术接轨,通过科技手段来提高自身的优势,蜗牛兼职网当然也不能排除在外。蜗牛兼职网是以实际运用为开发背景,运用软件工程原理和开发方法,采用springboot框架构建的一个管理系统。整个开发过程首先对软件系统进行需求分析,得出系统的主要功能。接着对系统进行总体设计和详细设计。总体设计主要包括系统功能设计、系统总体结构设计、系统数据结构设计和系统安全设计等;详细设计主要包括系统数据库访问的实现,主要功能模块的具体实现,模块实现关键代码等。最后对系统进行功能测试,并对测试结果进行分析总结,得出系统中存在的不足及需要改进的地方,为以后的系统维护提供了方便,同时也为今后开发类似系统提供了借鉴和帮助。这种个性化的网上蜗牛兼职网特别注重交互协调与管理的相互配合,激发了管理人员的创造性与主动性,对蜗牛兼职网而言非常有利。 本蜗牛兼职网采用的数据库是MySQL,使用springboot框架开发。在设计过程中,充分保证了系统代码的良好可读性、实用性、易扩展性、通用性、便于后期维护、操作方便以及页面简洁等特点。 功能要求:可以管理首页、个人中心、用户管理、企业管理、兼职信息管理、职位申请管理、留言板管理、系统管理等功能模块。 关键词:蜗牛兼职网,springboot框架 MySQL数据库 Java技术
Leap Motion是一种领先的手势控制技术和硬件设备。在使用Leap Motion时,如果遇到了一些困难,例如安装和运行Leap Motion的插件时出现问题,可以尝试手动从源代码构建插件来解决这些问题。 手动从源代码构建插件意味着我们要下载Leap Motion插件的源代码,并通过一系列步骤来自己编译和构建它们。下面是一些步骤: 1. 首先,我们需要到Leap Motion的官方网站上下载插件的源代码。在下载完成后,解压缩源代码文件。 2. 接下来,我们需要确保在计算机上安装了所需的编译工具和依赖项。这可能包括C++编译器和开发环境等。请确保按照Leap Motion提供的文档或说明来正确安装这些工具。 3. 一旦准备就绪,我们需要打开命令行界面,并导航到源代码的目录。这可以通过使用命令"cd"(change directory)来实现。 4. 一旦我们位于源代码目录中,我们需要运行适当的命令来构建插件。这些命令可能会因不同的操作系统而有所不同。请查阅Leap Motion提供的文档或说明来了解正确的构建命令。 5. 等待一段时间,编译和构建过程将完成。如果一切顺利,我们将获得构建好的插件文件。 6. 最后,我们可以将构建好的插件文件复制到我们希望使用Leap Motion的应用程序中,并按照应用程序的要求进行配置和设置。 总之,手动从源代码构建Leap Motion插件是一个解决问题的方法。尽管这可能需要一些技术知识和操作步骤,但它可以帮助我们解决一些在插件安装和运行过程中遇到的问题。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值