New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Developer Guide] How to compile this project #51
Comments
Same point:
and
My configuration is:
and
|
update: |
got it working on Linux!!!! You will need to update clang and llvm to 3.7 version. Going to try to write a usable guide. thanks also to @andreaferretti |
on OS X too:
|
Got it working on OS X after this |
Got it working on OS X after placing the file to pass additional options to clang on |
gc.h for Ubuntu is as easy as doing: |
These worked for me on OS X after installing the llvm/gc stuff via home-brew. Very nice. |
I mad a PR with a Docker configuration to run it: |
Anyone else getting errors encoding errors in javalib/doc? I tried setting utf8 flags for scalacOptions, javaOptions, etc, and running |
I don't get it to compile: #68 |
You need clang 3.7 at a minimum. See this Vagga file or this Dockerfile for complete instructions. |
Also got it working on OS-X Yosemite. Got this:
Which was solved by installed boehm gc, and also got this:
Which was solved by using brew to install llvm and clang++ 3.7 and adding those to the front of the path. |
Attempting on windows: C:\>java -version
java version "1.8.0_92"
Java(TM) SE Runtime Environment (build 1.8.0_92-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.92-b14, mixed mode)
C:\>sbt --version
sbt launcher version 0.13.8
C:\>clang++ --version
clang version 3.8.0 (branches/release_38)
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: c:\cygwin64\bin
C:\> sbt
project rtlib
publishLocal
project nscplugin
publishLocal
project demoNative
run Finally produces:
Once I get pass here, I'll deal with needing Boehm |
@josephwinston did you clone with |
@andreaTP I thought so. I'll try starting over from scratch to see if it is user error. |
@andreaTP No joy after a deleting what I had and then running |
@josephwinston sorry I haven't got access ti any windows machine I can test on... Could you give a try to my docker support? manage.sh will not work but the docker commands are trivial to reproduce.... |
I'll switch to one of the other platforms.
|
We've got initial build instructions and docker image merged recently. Feel free opening pull requests if you want to improve those. We're also working on making linux build easier in #102 . |
It should be tracked by #45, but in case you cannot compile this project, here is my try.
Prerequisite:
Make sure you have sbt, java and clang installed. My version:
$ java -version java version "1.8.0_05" Java(TM) SE Runtime Environment (build 1.8.0_05-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode) $ sbt -version sbt launcher version 0.13.8 $ clang++ -version Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn) Thread model: posix
And optionally, if you don't have
gc.h
in your lib path. Please refer to this to install it.clone this project
git clone https://github.com/scala-native/scala-native.git --recursive cd scala-native
Note the
recursive
option because scala-native requires scala as submodule.publish localDeps
run demoNative
still in the sbt session
And Finally I got an error from clang++, which reads
error: expected '{' in function body llvm
Hope this will help.
The text was updated successfully, but these errors were encountered: