About Monkey 2 › Forums › Monkey 2 Development › Ted2 Building
This topic contains 12 replies, has 3 voices, and was last updated by
Sledge 2 years, 6 months ago.
-
AuthorPosts
-
October 16, 2016 at 11:57 pm #4464
Hullo [waves!]
Is there a trick to getting your own stuff to auto-run upon building, like all the examples do? Because at the moment new .monkey2 files don’t for me and I’m not quite sure if it’s a bug or if there’s a ticky-box somewhere that needs a tickle.
October 17, 2016 at 12:14 am #4465Shouldn’t need to do any fancy – just ‘build and run’ from the build menu.
Can you post the output from the ‘build’ console at the bottom?
October 17, 2016 at 12:31 am #4466This is on OSX so, to be fair to it, the menus don’t mention running anything
But the output is the same as for the examples that do run…
[/crayon]Monkey12[crayon-5cba84ef8f7bf151105269 inline="true" ]Running app:/Users/Sledge/Dropbox/Actual/Active Projects/MX2_BPlate/BPlate.buildv1.0.0/desktop_release_macos/BPlate.app/Contents/MacOS/BPlateDone.I’ve tried it with a new folder in Bananas too but, again, it’s only the source MX2 comes with that will run after building (EDIT: automatically I mean. I can go to the folder and launch the app so the actual build process is working fine).
October 17, 2016 at 12:36 am #4467Yikes, what version are you using?!?
October 17, 2016 at 12:50 am #4468OSX: 10.11.6
Xcode: 8.0
Ted: Build output reads…[/crayon]Monkey123456789[crayon-5cba84efa350f921972079 inline="true" ]***** Building app '/Users/Sledge/Downloads/monkey2-v1.0.0/src/ted2/ted2.monkey2' *****Parsing...Semanting...Translating...Compiling....Linking /Users/Sledge/Downloads/monkey2-v1.0.0/src/ted2/ted2.buildv1.0.0/desktop_release_macos/ted2.app/Contents/MacOS/ted2Application built:/Users/Sledge/Downloads/monkey2-v1.0.0/src/ted2/ted2.buildv1.0.0/desktop_release_macos/ted2.app/Contents/MacOS/ted2mx2cc version 1.0.0October 17, 2016 at 2:13 am #4470Ok, I’ve updated the version on the Files page to v1.0.5.
Not quite the latest and greatest (it’s easy to build from source though – give it a try!) but at least it has ‘Build and run’.
October 17, 2016 at 11:39 am #4472Cheers! Is that the Windows binary or the OSX source, though? The source is still marked as v1.0.0.
October 17, 2016 at 6:17 pm #4476Ignore the source on the download page – grab it from here:
https://github.com/blitz-research/monkey2
Select ‘tags->v1.0.5’ (or any version) from the ‘branch’ combobox, then ‘clone or download->download zip’.
October 17, 2016 at 6:55 pm #4480Ah, I tried a git pull yesterday and fell into all sorts of permissions hell trying to get it built and compiling — just taking a zip from that repo instead works perfectly. Thanks Marky.
October 18, 2016 at 12:12 am #4497I’m not quite getting something about the Github update process!
I use Github Desktop, dragging and dropping the link from https://github.com/blitz-research/monkey2/ (which I assume should get the latest master) but I end up with a version showing last updated 2 months ago in the History tab, and no hellochipmunk. (Tried deleting it from Github Desktop and starting over, but it does the same.)
Hitting the Download link gets the latest version, but I assume it’s possible to get the latest in Github Desktop… somehow? It doesn’t seem to pull down the master branch that the link above shows… what am I missing?!
October 18, 2016 at 1:01 am #4498Ah, I tried a git pull yesterday and fell into all sorts of permissions hell trying to get it built and compiling
Yeah, this is my fault really. I use TeamDrive to sync source code between 3 machines, but only ever push to github from the PC (tried to sync .git folders once, ended in tears). So when I modify an exe or .sh file on macos/linux, permissions are lost by the time it gets to the PC (at least, I assume that’s what’s happening).
I really, really don’t want to use github for ALL my syncing as auto-syncing is just so convenient, but I guess I could add chmod’s to rebuildall.sh so at least there’s only one file to chmod?
I assume it’s possible to get the latest in Github Desktop… somehow?
No idea what’s up there, sounds like a bug or it’s caching something. I use ‘sourcetree’ and have had pretty much no problems with it ever.
October 18, 2016 at 1:09 am #4499I’ll maybe give that one a go, then… don’t like Github Desktop’s GUI anyway…
Just realised I’m slightly OT, apologies. Liking new Ted2 a lot more, though, become quite nice to work in, huge achievement for a self-rolled GUI system!
October 19, 2016 at 5:35 pm #4539I really, really don’t want to use github for ALL my syncing as auto-syncing is just so convenient, but I guess I could add chmod’s to rebuildall.sh so at least there’s only one file to chmod?
I think that’d be generally handy, if only because as a user it’s difficult to attribute any subsequent compiler errors (for example) to actual bugs that need reporting if the building process had issues. I’m happy with the zips, mind
-
AuthorPosts
You must be logged in to reply to this topic.