Skip to content
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

Exception thrown, see JavaScript console #30

Open
Semenred opened this issue Feb 17, 2016 · 0 comments
Open

Exception thrown, see JavaScript console #30

Semenred opened this issue Feb 17, 2016 · 0 comments

Comments

@Semenred
Copy link

Help please, compile em-dosbox for armv7 system.
Steps:

LLVM
sudo mkdir -p /usr/local; cd /usr/local
sudo wget http://llvm.org/releases/3.7.1/clang+llvm-3.7.1-armv7a-linux-gnueabihf.tar.xz
sudo tar xvf clang+llvm-3.7.1-armv7a-linux-gnueabihf.tar.xz
sudo mv clang+llvm-3.7.1-armv7a-linux-gnueabihf llvm-3.7.1
export PATH="$PATH:/usr/local/llvm-3.7.1/bin"

Node
wget http://nodejs.org/dist/v0.12.7/node-v0.12.7.tar.gz
tar xvf node-v0.12.7.tar.gz
cd node-v0.12.7
./configure
make -j4
sudo make install

git clone git://github.com/kripken/emscripten.git

Building Fastcomp
cd && mkdir myfastcomp && cd myfastcomp && git clone https://github.com/kripken/emscripten-fastcomp && cd emscripten-fastcomp && git clone https://github.com/kripken/emscripten-fastcomp-clang tools/clang
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DLLVM_TARGETS_TO_BUILD="ARM;JSBackend" -DLLVM_INCLUDE_EXAMPLES=OFF -DLLVM_INCLUDE_TESTS=OFF -DCLANG_INCLUDE_EXAMPLES=OFF -DCLANG_INCLUDE_TESTS=OFF
make -j4

SDL2
wget http://www.libsdl.org/release/SDL2-2.0.4.zip && unzip SDL2-2.0.4.zip && cd SDL2-2.0.4
./configure && make -j6 && make install && cd
Emscriptten works good

Em-dosbox
git clone https://github.com/dreamlayers/em-dosbox.git
cd em-dosbox
./autogen.sh
~/emscripten/emconfigure ./configure
make -j4

Packaging program
python src/packager.py dune2 ~/dune2 dune2.exe

On web-server 5 files
dosbox dosbox.conf dosbox.html dosbox.js dune2.data index.html

https://yadi.sk/d/tG1amH1Qp2fF5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant