To build a standalone Eclipse OMR, run the following commands from the top of the source tree. The top of the Eclipe OMR source tree is the directory that contains run_configure.mk
. Note that on Windows systems, you must use a shell script interpreter such as bash to run the configure command.
To build standalone Eclipse OMR, run the following commands from the root of the +source tree.
-# Generate autotools makefiles with SPEC-specific presets
-make -f run_configure.mk SPEC=linux_x86-64 OMRGLUE=./example/glue
+# Create a build directory and cd into it
+mkdir build
+cd build
-# Build
+#generate the build system using cmake
+cmake ..
+
+# Build (you can optionally compile in parallel by adding -j<N> to the make command)
make
-# Run tests (note that no contribution should cause new test failures in "make test")
-make test
+# Run tests (note that no contribution should cause new test failures in testing).
+# Use the `-V` option to see verbose output from the tests.
+ctest [-V]
-Run the following command for a list of configure makefile targets:
+Building Eclipse OMR on Windows using Visual Studio
-make -f run_configure.mk help
-
-
+The following instructions below demonstrate the steps to build Eclipse OMR on Windows
+using Visual Studios. In the example Visual Studio 11 2012 Win64 is being used.
+You can easily switch this to the version of Visual Studio you would like to use.
-Run the following command for a list of build targets:
+# Create a build directory and cd into it
+mkdir build
+cd build
-make help
+#generate the build system using cmake
+cmake -G "Visual Studio 11 2012 Win64" ..
+
+# Build
+cmake --build .
+
+# Run tests (note that no contribution should cause new test failures in "make test")
+ctest
+
[master 9d8ab28] Generated from commit: https://github.com/eclipse/omr.website/commit/bef52e3e61140871e31cfaa3094009faf31e4744
2 files changed, 31 insertions(+), 15 deletions(-)
On branch master
Your branch is ahead of 'origin/master' by 1 commit.
(use "git push" to publish your local commits)
nothing to commit, working tree clean
error: unable to write sha1 filename ./objects/2a/97ec35edd5a72a95bab7cb3227a06c10f53730: Permission denied
error: unable to write sha1 filename ./objects/77/64e098833bbde7c88e1b328755b205c7e51344: Permission denied
To /gitroot/www.eclipse.org/omr.git/
! [remote rejected] master -> master (unable to migrate objects to permanent storage)
error: failed to push some refs to '/gitroot/www.eclipse.org/omr.git/'
Build step 'Execute shell' marked build as failure
Started calculate disk usage of build
Finished Calculation of disk usage of build in 0 seconds
Started calculate disk usage of workspace
Finished Calculation of disk usage of workspace in 0 seconds
Finished: FAILURE