About Monkey 2 › Forums › Monkey 2 Development › V009 now up!
This topic contains 33 replies, has 8 voices, and was last updated by
peterigz
2 years, 10 months ago.
-
AuthorPosts
-
June 3, 2016 at 3:04 am #854
Hi,
I just pushed a relatively beefy update to mx2 to github.
This cleans up the TextureFlags system a bit, in particular it adds a ‘Dynamic’ flag. If this flag is set, the texture is ‘unmanaged’ which means if the graphics gets reset due to a change in resolution or something, the texture contents will be lost.
This is intended for images/textures you intend to update frequently, eg: every frame. Making textures survive a graphics reset incurs a bit overhead, which is unnecessary if you’re just gonna overwrite the texture anyway.
There’s also new “letterbox-int” and “stretch-int” layout modes, and a big nasty new Canvas.TexdtureFilteringEnabled:Bool() sledgehammer for forcing filtering off for all rendering.
You may even be able to build with exmscripten now. Works here anyway, although you’ll need to have emscripten installed and emrebuildmods first (which only builds release modules).
Bye!
MarkJune 3, 2016 at 10:13 am #869So far so good on Linux. I do get a few ” Makedocs error: Can’t resolve link ‘Eachin’ ” when rebuilding all in terminal. But, My stuff and demo’s run fine using desktop.
I’ll have more on Emscripten soon.
June 3, 2016 at 10:25 am #870I tried Emscripten and it failed for me. Can you look at the guide I have posted on installing Emscripten for Monkey 2 and see if that method it still valid? If not I’ll need to redo things here.
June 3, 2016 at 10:56 am #871Please describe how it failed – error messages etc.
“it doesn’t work” isn’t much use…!
June 3, 2016 at 11:50 am #872“Please describe how it failed”
Sure. I wanted to make sure the compiled version of Emscripten I have was still valid. :/
Compiling the Monkeyroids demo gives the following errors.- Parsing…
- Semanting…
- Translating…
- Compiling….
- Build error: System command ’em++ -std=c++11 -I. -s USE_SDL=2 -s FULL_ES2=1 -s TOTAL_MEMORY=67108864 -s DISABLE_EXCEPTION_CATCHING=1 -Wno-warn-absolute-paths -O3 -I”/home/moonbasealpha/Programming/monkey2/modules/freetype/freetype-2.6.3/include/” -I”/home/moonbasealpha/Programming/monkey2/modules/sdl2-mixer/SDL_mixer/” -I”/home/moonbasealpha/Programming/monkey2/modules/sdl2/SDL/include/” -I”/home/moonbasealpha/Programming/monkey2/modules/monkey/native” -c -o “/home/moonbasealpha/Programming/monkey2/modules/mojo/bananas/monkeyroids/monkeyroids.buildv009/build_cache/emscripten_release_linux/monkeyroids_0monkeyroids.cpp.o” “/home/moonbasealpha/Programming/monkey2/modules/mojo/bananas/monkeyroids/monkeyroids.buildv009/build_cache/emscripten_release_linux/monkeyroids_monkeyroids.cpp”‘ failed.
- em++ -std=c++11 -I. -s USE_SDL=2 -s FULL_ES2=1 -s TOTAL_MEMORY=67108864 -s DISABLE_EXCEPTION_CATCHING=1 -Wno-warn-absolute-paths -O3 -I”/home/moonbasealpha/Programming/monkey2/modules/freetype/freetype-2.6.3/include/” -I”/home/moonbasealpha/Programming/monkey2/modules/sdl2-mixer/SDL_mixer/” -I”/home/moonbasealpha/Programming/monkey2/modules/sdl2/SDL/include/” -I”/home/moonbasealpha/Programming/monkey2/modules/monkey/native” -c -o “/home/moonbasealpha/Programming/monkey2/modules/mojo/bananas/monkeyroids/monkeyroids.buildv009/build_cache/emscripten_release_linux/monkeyroids_0monkeyroids.cpp.o” “/home/moonbasealpha/Programming/monkey2/modules/mojo/bananas/monkeyroids/monkeyroids.buildv009/build_cache/emscripten_release_linux/monkeyroids_monkeyroids.cpp”
- In file included from /home/moonbasealpha/Programming/monkey2/modules/mojo/bananas/monkeyroids/monkeyroids.buildv009/build_cache/emscripten_release_linux/monkeyroids_monkeyroids.cpp:2:
- /home/moonbasealpha/Programming/monkey2/modules/mojo/bananas/monkeyroids/monkeyroids.buildv009/build_cache/emscripten_release_linux/monkeyroids_monkeyroids.h:9:10: fatal error: ‘../../../../../mojo.buildv009/emscripten_release_linux/mojo_app_2window.h’ file not found
- #include “../../../../../mojo.buildv009/emscripten_release_linux/mojo_app_2window.h”
- ^
- 1 error generated.
- ERROR root: [31mcompiler frontend failed to generate LLVM bitcode, halting[0m
- ***** Fatal mx2cc error *****
June 3, 2016 at 3:20 pm #876When I rebuild this on Linux, I get this error message:
Parsing…
Semanting…***** Doccing module ‘std’ *****
Parsing…
Semanting…
Makedocs error: Can’t resolve link ‘Eachin’
Makedocs error: Can’t resolve link ‘Eachin’
Makedocs error: Can’t resolve link ‘Eachin’
Makedocs error: Can’t resolve link ‘Eachin’
Makedocs error: Can’t resolve link ‘Eachin’June 3, 2016 at 8:28 pm #882Sure. I wanted to make sure the compiled version of Emscripten I have was still valid.
Did you ‘./emrebuildmods.sh’ first?
When I rebuild this on Linux, I get this error message:
Ignore it. It’s there to remind me I have more docs to do…
June 4, 2016 at 3:53 am #888“Did you ‘./emrebuildmods.sh’ first?”
I could have swore I did. I guess I didn’t (I think I was thinking rebuildall would do it). I ran it and then compiled Monkeyroids and it compiled but I received an error about mserver (see below) which looks not to be there in the devtools folder (actually nothing is there). So I went to the monkeyroids build folder and launched the monkeyroids.html file and it ran in Firefox (whoo hoo!) but ‘not’ in Chrome on Linux Mint 17.2 . It also had some font display issues and eventually crashed in Firefox.
I just got home so let me try it again and make sure I have everything setup right and I might do a fresh install of Monkey 2 as well. I have not updated Emscripten since I installed it 6 or so months ago and I am not sure if I need to update it and recompile or what. I’ll also post an image of the display issues here in a bit. But at least it’s building something now.
- Parsing…
- Semanting…
- Translating…
- Compiling….
- Linking /home/moonbasealpha/Programming/monkey2/modules/mojo/bananas/monkeyroids/monkeyroids.buildv009/emscripten_release_linux/monkeyroids.html
- Running /home/moonbasealpha/Programming/monkey2/modules/mojo/bananas/monkeyroids/monkeyroids.buildv009/emscripten_release_linux/monkeyroids.html
- Build error: System command ‘”/home/moonbasealpha/Programming/monkey2//devtools/MonkeyXFree86c/bin/mserver_linux” “/home/moonbasealpha/Programming/monkey2/modules/mojo/bananas/monkeyroids/monkeyroids.buildv009/emscripten_release_linux/monkeyroids.html”‘ failed.
- “/home/moonbasealpha/Programming/monkey2//devtools/MonkeyXFree86c/bin/mserver_linux” “/home/moonbasealpha/Programming/monkey2/modules/mojo/bananas/monkeyroids/monkeyroids.buildv009/emscripten_release_linux/monkeyroids.html”
- sh: 1: /home/moonbasealpha/Programming/monkey2//devtools/MonkeyXFree86c/bin/mserver_linux: not found
- ***** Fatal mx2cc error *****
June 4, 2016 at 12:54 pm #898Hi,
I’ve been at it for a while here and after updating Emscripten I get the error listed below (I ran ./emrebuildmods.sh first to be clear) when building monkeyroids. Emscripten changed the ‘installed’ SDK to ‘master’ from ‘tag-1.34.6’ . I’m not sure what to make of it yet.
- ***** Building app ‘/home/moonbasealpha/Programming/monkey2/modules/mojo/bananas/monkeyroids/monkeyroids.monkey2’ *****
- Parsing…
- Semanting…
- Translating…
- Compiling….
- Linking /home/moonbasealpha/Programming/monkey2/modules/mojo/bananas/monkeyroids/monkeyroids.buildv009/emscripten_release_linux/monkeyroids.html
- Build error: System command ’em++ -s USE_SDL=2 -s FULL_ES2=1 -s TOTAL_MEMORY=67108864 -s DISABLE_EXCEPTION_CATCHING=1 -O3 –preload-file “/home/moonbasealpha/Programming/monkey2/modules/mojo/bananas/monkeyroids/monkeyroids.buildv009/assets/@/assets” -o “/home/moonbasealpha/Programming/monkey2/modules/mojo/bananas/monkeyroids/monkeyroids.buildv009/emscripten_release_linux/monkeyroids.html” “/home/moonbasealpha/Programming/monkey2/modules/mojo/bananas/monkeyroids/monkeyroids.buildv009/build_cache/emscripten_release_linux/monkeyroids_0monkeyroids.cpp.o” “/home/moonbasealpha/Programming/monkey2/modules/mojo/bananas/monkeyroids/monkeyroids.buildv009/build_cache/emscripten_release_linux/monkeyroids_0std_0collections_02container.cpp.o” “/home/moonbasealpha/Programming/monkey2/modules/mojo/bananas/monkeyroids/monkeyroids.buildv009/build_cache/emscripten_release_linux/monkeyroids_0std_0collections_02list.cpp.o” “/home/moonbasealpha/Programming/monkey2/modules/mojo/bananas/monkeyroids/monkeyroids.buildv009/build_cache/emscripten_release_linux/monkeyroids_0std_0collections_02stack.cpp.o” “/home/moonbasealpha/Programming/monkey2/modules/mojo/mojo.buildv009/emscripten_release_linux/mojo.a” “/home/moonbasealpha/Programming/monkey2/modules/std/std.buildv009/emscripten_release_linux/std.a” “/home/moonbasealpha/Programming/monkey2/modules/stb-image/stb-image.buildv009/emscripten_release_linux/stb-image.a” “/home/moonbasealpha/Programming/monkey2/modules/miniz/miniz.buildv009/emscripten_release_linux/miniz.a” “/home/moonbasealpha/Programming/monkey2/modules/sdl2-mixer/sdl2-mixer.buildv009/emscripten_release_linux/sdl2-mixer.a” “/home/moonbasealpha/Programming/monkey2/modules/sdl2/sdl2.buildv009/emscripten_release_linux/sdl2.a” “/home/moonbasealpha/Programming/monkey2/modules/gles20/gles20.buildv009/emscripten_release_linux/gles20.a” “/home/moonbasealpha/Programming/monkey2/modules/libc/libc.buildv009/emscripten_release_linux/libc.a” “/home/moonbasealpha/Programming/monkey2/modules/freetype/freetype.buildv009/emscripten_release_linux/freetype.a” “/home/moonbasealpha/Programming/monkey2/modules/emscripten/emscripten.buildv009/emscripten_release_linux/emscripten.a” “/home/moonbasealpha/Programming/monkey2/modules/monkey/monkey.buildv009/emscripten_release_linux/monkey.a” ‘ failed.
- em++ -s USE_SDL=2 -s FULL_ES2=1 -s TOTAL_MEMORY=67108864 -s DISABLE_EXCEPTION_CATCHING=1 -O3 –preload-file “/home/moonbasealpha/Programming/monkey2/modules/mojo/bananas/monkeyroids/monkeyroids.buildv009/assets/@/assets” -o “/home/moonbasealpha/Programming/monkey2/modules/mojo/bananas/monkeyroids/monkeyroids.buildv009/emscripten_release_linux/monkeyroids.html” “/home/moonbasealpha/Programming/monkey2/modules/mojo/bananas/monkeyroids/monkeyroids.buildv009/build_cache/emscripten_release_linux/monkeyroids_0monkeyroids.cpp.o” “/home/moonbasealpha/Programming/monkey2/modules/mojo/bananas/monkeyroids/monkeyroids.buildv009/build_cache/emscripten_release_linux/monkeyroids_0std_0collections_02container.cpp.o” “/home/moonbasealpha/Programming/monkey2/modules/mojo/bananas/monkeyroids/monkeyroids.buildv009/build_cache/emscripten_release_linux/monkeyroids_0std_0collections_02list.cpp.o” “/home/moonbasealpha/Programming/monkey2/modules/mojo/bananas/monkeyroids/monkeyroids.buildv009/build_cache/emscripten_release_linux/monkeyroids_0std_0collections_02stack.cpp.o” “/home/moonbasealpha/Programming/monkey2/modules/mojo/mojo.buildv009/emscripten_release_linux/mojo.a” “/home/moonbasealpha/Programming/monkey2/modules/std/std.buildv009/emscripten_release_linux/std.a” “/home/moonbasealpha/Programming/monkey2/modules/stb-image/stb-image.buildv009/emscripten_release_linux/stb-image.a” “/home/moonbasealpha/Programming/monkey2/modules/miniz/miniz.buildv009/emscripten_release_linux/miniz.a” “/home/moonbasealpha/Programming/monkey2/modules/sdl2-mixer/sdl2-mixer.buildv009/emscripten_release_linux/sdl2-mixer.a” “/home/moonbasealpha/Programming/monkey2/modules/sdl2/sdl2.buildv009/emscripten_release_linux/sdl2.a” “/home/moonbasealpha/Programming/monkey2/modules/gles20/gles20.buildv009/emscripten_release_linux/gles20.a” “/home/moonbasealpha/Programming/monkey2/modules/libc/libc.buildv009/emscripten_release_linux/libc.a” “/home/moonbasealpha/Programming/monkey2/modules/freetype/freetype.buildv009/emscripten_release_linux/freetype.a” “/home/moonbasealpha/Programming/monkey2/modules/emscripten/emscripten.buildv009/emscripten_release_linux/emscripten.a” “/home/moonbasealpha/Programming/monkey2/modules/monkey/monkey.buildv009/emscripten_release_linux/monkey.a”
- opt: Unknown command line argument ‘-pnacl-abi-simplify-preopt’. Try: ‘/home/moonbasealpha/Programming/emsdk_portable/clang/fastcomp/build_master_64/bin/opt -help’
- opt: Did you mean ‘-loop-simplify’?
- opt: Unknown command line argument ‘-pnacl-abi-simplify-postopt’. Try: ‘/home/moonbasealpha/Programming/emsdk_portable/clang/fastcomp/build_master_64/bin/opt -help’
- opt: Did you mean ‘-loop-simplify’?
- Traceback (most recent call last):
- File “/home/moonbasealpha/Programming/emsdk_portable/emscripten/tag-1.34.6/emcc”, line 1268, in <module>
- final = shared.Building.llvm_opt(final, link_opts, DEFAULT_FINAL)
- File “/home/moonbasealpha/Programming/emsdk_portable/emscripten/tag-1.34.6/tools/shared.py”, line 1412, in llvm_opt
- assert os.path.exists(target), ‘Failed to run llvm optimizations: ‘ + output
- AssertionError: Failed to run llvm optimizations:
- ***** Fatal mx2cc error *****
June 5, 2016 at 4:34 pm #909Does this release have the MX2 IDE or do you still need to install it in the MX1 folder?
June 5, 2016 at 7:46 pm #910There is no IDE in the github repository. You have to use the IDE from MX1 or provide your own editor.
June 5, 2016 at 10:38 pm #911Okay thanks. I think I’ll wait for version 1 then. Is anyone working on a MX2 IDE and is there an ETA when MX2 version 1 is getting a release?
June 6, 2016 at 12:47 am #914RetroRusty:
Mollusk works with MX2 already.
Debug mode doesn’t work currently, and MX2 debugger is still in development,
but otherwise Mollusk is good for editing and running MX2 codes.
AFAIK grudlux is already working on the next version.June 6, 2016 at 1:08 am #915I’ve been at it for a while here and after updating Emscripten I get the error listed below
I can only guess you’ve got it installed/setup wrong – it looks like it’s trying to build for ‘NACL’, the old google ‘native API’ plugin system.
I’ve just updated/activated to ‘latest’ and it’s tricky – you also need to ‘source emsdk_env.sh’ each time you use it which adds a bunch of paths. it didn’t work just adding this to ‘~/.profile’ so I ended up hard-copying the PATHs and other stuff that ‘source emsdk_env.sh’ adds directly to ‘~/.profile’.
Anyway, 1.36 is now going. When I go ’em++ -v’ from the shell I get:
emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 1.36.0
clang version 3.9.0 (https://github.com/kripken/emscripten-fastcomp-clang/ 271ce598c3d1fe74efadc254f5be1b57edea9f41) (https://github.com/kripken/emscripten-fastcomp/ 61acfb230665464544f2e8db292f8999fc3c628c) (emscripten 1.36.0 : 1.36.0)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/marksibly/emsdk/clang/fastcomp/build_master_64/bin
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.8
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.8.4
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.9
Found candidate GCC installation: /usr/lib/gcc/i686-linux-gnu/4.9.1
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9
Found candidate GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.9.1
Selected GCC installation: /usr/lib/gcc/x86_64-linux-gnu/4.8
Candidate multilib: .;@m64
Candidate multilib: 32;@m32
Candidate multilib: x32;@mx32
Selected multilib: .;@m64
INFO:root:(Emscripten: Running sanity checks)June 6, 2016 at 8:04 am #916RetroRusty: Mollusk is nice, but it is Windows only. I personally use Sublime Text for editing and language highlighting and Gradle to build… Works really well and across all common platforms.
-
AuthorPosts
You must be logged in to reply to this topic.