Target

Monkey Forums/Monkey Beginners/Target

yiotoo(Posted 2014) [#1]
I just bought monkey pro :).
but there is only those targets: Desktop, html5, Windows8,Windows Phone 8 and Xna game.

How can I use the android , flash, ios and others targets?

ty


MikeHart(Posted 2014) [#2]
IOS is only available on OSX and you need to install XCode.
For Flash you need to install FLEX. And for other missing targets, please read the documentation that ships with Monkey. After you have installed everything, you might need to modify the config file in Monkeys bin folder.


yiotoo(Posted 2014) [#3]
ty


yiotoo(Posted 2014) [#4]
I am real lost.

The only feacture working in monkey pro is html5. Desktop game and others inst working anymore.

I went here(http://www.monkey-x.com/docs/html/Target%20SDKs_The%20Desktop%20target.html) and installed the MingGW 4.8.1, but OpenAl Windows Drivers's link is not working. i found this (http://www.monkeycoder.co.nz/Community/posts.php?topic=7787) but has a license LGPL. I need a license to build a game to sell.

to Android I went here:(http://www.monkey-x.com/docs/html/Target%20SDKs_The%20Android%20target.html), and installed Android SDK plus Java SE JDK(i installed 64bit, there is no 32bit on site. I think it could lead to a problem later ) plus Ant.
I tried to use: (http://www.monkey-x.com/docs/html/Tools_Trans.html) editing the config.winnt.txt in bin file, putting this:
ANT_PATH="C:\apache-ant-1.9.3". And tried execute the Ted.exe.

Nothing help. Could someone give me a light plz?


dawlane(Posted 2014) [#5]
I have edited this to include new information. Remember some links will break in the future so you will have to goolge at a later date.
This is Windows Vista/7/8 related for Linux installation there is information here here.

MinGW http://sourceforge.net/projects/mingw/files/ If you are a masochist then you could try and install each individual part of the GCC and extracting it to a directory. But if you want to do it quickly and keep your sanity then use the MinGW installer and install C, C++ and as it comes in handy, MSYS.
For simplicity leave it at it's default install location. If you must relocate it then the path must have no spaces.

Visual Studio Express http://www.visualstudio.com/downloads/download-visual-studio-vsVisual Studio has been know to be a bit tetchy if you have multiple versions installed. By multiple versions I mean installing VS 2010 tools a long with VS 2013 tools. As far as I know the Visual Studio Solution template that comes with monkey is still VS 2010 and I have come across an issue where this file doesn't get converted correctly if you have VS 2010 and VS 2012 installed. The solution here for me was just to create a empty 2012 solution and manually copy over the settings.
I recommend using the iso downloads and burning them off to disk for two reasons; saves time if you have to reinstall and if the download is no longer available you still have a copy.

If you are on Windows Vista then download Visual Studio 2010
If you are on Windows 7 then download either Visual Studio 2013 Desktop or Visual Studio 2010 All in one.
If you are on Windows 8 then download Visual Studio 2013 for Windows and/or Visual Studio 2013 Desktop.

Note:
To build desktop applications you need a C/C++ compiler (Visual C++ Express or Visual Studio 2013 Desktop)
To build XNA (Windows Phone 7/XBox360) you need Windows Vista/7, a C# compiler (Visual Studio 2010 C# Express) and the XNA Studio tools. XNA isn't officially supported on Windows 8 and there maybe issues with using any new version of Visual Studio, but there is a work around to get it to install on Windows 8.
To build applications for Window App store you need Windows 8 and Visual Studio 2013 for Windows.

XNA Studio from http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=27599 and http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=27598 for the runtime.
Note: From what information that is available it sounds like that Microsoft will retire XNA around April 2014.
To build XNA (Windows Phone 7/XBox360/Windows XP/Vista/7) you need Windows Vista/7, a C# compiler (Visual Studio 2010 C# Express) and the XNA Studio tools. XNA isn't officially supported on Windows 8 and there maybe issues with using any new version of Visual Studio, but there is a work around to get it to install on Windows 8.

To keep it simple; make a directory called sdk in drive C:
Java JDK http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html the latest is jdk-7u51-windows-i586.exe
Install the JDK there in a sub-directory names JDK (C:\sdk\jdk)

Flex SDK http://www.adobe.com/devnet/flex/flex-sdk-download.html this is an old version and from what information I can gather Adobe have given it to the Apache Foundation and can be found here http://flex.apache.org
Make a directory called flex_sdk_4.6 (or whatever the new version is) and extract the flex sdk archive there. (C:\sdk\flex_sdk_4.6)

Apache Ant http://ant.apache.org/bindownload.cgi the latest is apache-ant-1.9.3-bin.zip
Extract the archive to the C:\sdk directory (C:\sdk\apache-ant-1.9.3)

Android SDK http://developer.android.com/sdk/index.html the latest is android-sdk_r22.3-windows.zip
Extract the archive to the C:\sdk directory (C:\sdk\android-sdk-windows)
Run the SDK manager and click the install button install and accept the licenses. After installation you may need to re-run the SDK Manager again and select Android 3.2 (API13) and again click install and accept the licenses.

OpenAL is in the Monkey Pro archive that you downloaded. You will find the file oalinst.exe it in targets\glfw\.
Run the installer to install OpenAL.dll to your system. I'm not sure if there is a problem with this version of OpenAl on Windows 8 as when I tried this out on the preview release of windows it didn't work.

Now open the file named config.winnt.txt in MonkeyPro(whatever-version)\bin and edit the paths to reflect what you just installed.
Example
MINGW_PATH="C:\MinGW"
JDK_PATH="C:\sdk\jdk\jdk1.7.0_51"
ANT_PATH="C:\sdk\apache-ant-1.9.3"
ANDROID_PATH="C:\sdk\android-sdk-windows"
FLEX_PATH="C:\sdk\flex_sdk_4.6"

Note: Monkey environment variables
${SYSTEMDRIVE} this is where the operating system is installed normally designated as drive C:
${MONKEYDIR} this is where Monkey it's self is installed.
${PROGRAMFILES} this is where all the system programs are usually installed C:\Program Files\
${WINDIR} this is where the operating system files are stored C\Windows

i found this (http://www.monkeycoder.co.nz/Community/posts.php?topic=7787) but has a license LGPL. I need a license to build a game to sell.
If I remember the OpenAL installer that comes with Monkey can be redistributed; but you cannot just redistribute the dll file on it's own.
OpenAL-Soft which has to be built as dynamic linked library (dll) can be packaged as a separate installation and used in commercial programs as long as you distribute the license text and can guarantee that there is access to the original version of the source code used to build that version OpenAL-Soft. You can add this as an option during the OpenAL-Soft installation process in install the source code.


yiotoo(Posted 2014) [#6]
I will try, ty very much.

In Java SE Development Kit 7u51. License apper:
A. COMMERCIAL FEATURES. You may not use the Commercial Features for running Programs, Java applets or applications in your internal business operations or for any commercial or production purpose, or for any purpose other than as set forth in Sections B, C, D and E of these Supplemental Terms.

The Flex SDK seems to be non commercial too:
AVC Codec Use. THIS PRODUCT IS LICENSED UNDER THE AVC PATENT PORTFOLIO LICENSE FOR THE PERSONAL NON-COMMERCIAL USE OF A CONSUMER

So i can't make a game to sell right?


dawlane(Posted 2014) [#7]
In Java SE Development Kit 7u51. License apper:
A. COMMERCIAL FEATURES. You may not use the Commercial Features for running Programs, Java applets or applications in your internal business operations or for any commercial or production purpose, or for any purpose other than as set forth in Sections B, C, D and E of these Supplemental Terms.
I think that this relates to the use of Java Mission Control and related tools which are part of Oracle Java SE Advanced and Oracle Java SE Suite. These are included in the JDK download for evaluation purposes only. See Java SE Products

The Flex SDK seems to be non commercial too:
AVC Codec Use. THIS PRODUCT IS LICENSED UNDER THE AVC PATENT PORTFOLIO LICENSE FOR THE PERSONAL NON-COMMERCIAL USE OF A CONSUMER


This question was asked on the flashdevelop forum.

If in doubt you should get clarification from the sdk distributors and always seek legal advice.


Nobuyuki(Posted 2014) [#8]
Specifically I believe the JDK license clause applies to their enterprise API's and not the kit generally speaking.
http://www.spyfoos.com/blog/2011/07/28/oracle-java-7-and-commercial-features/


yiotoo(Posted 2014) [#9]
I've done everthing that u said dawlane.
Now there is a target "android" to choice in monkey. Thanks!

But the Desktop and android still not working.

error in android:
TRANS monkey compiler V1.64
Parsing...
Semanting...
Translating...
Building...
'ant' n�o � reconhecido como um comando interno(translate:'ant' is not recognized as an internal command )
ou externo, um programa oper�vel ou um arquivo em lotes.(translate:or external, operable program or batch file.)
TRANS FAILED: Android build failed.


Error in Desktop
TRANS monkey compiler V1.64
Parsing...
Semanting...
Translating...
Building...
Microsoft (R) Vers�o do Mecanismo de Compila��o 4.0.30319.1
[Microsoft .NET Framework, Vers�o 4.0.30319.1]
Copyright (C) Microsoft Corporation 2007. Todos os direitos reservados.
(many things that i thing don't matter)
fail in compilation
(more many things that i thing don't matter)
TRANS FAILED: Error executing 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /p:Configuration=Debug /p:Platform=Win32 MonkeyGame.sln', return code=1




yiotoo(Posted 2014) [#10]
getting other error in android

TRANS monkey compiler V1.64
Parsing...
Semanting...
Translating...
Building...
Error: could not open `D:\SDK\jdk\lib\i386\jvm.cfg'
TRANS FAILED: Android build failed.


I will google


yiotoo(Posted 2014) [#11]
for error in desktop solved, i reinstalled MinGW 4.8.1. dont know why, but works

trying now android


yiotoo(Posted 2014) [#12]
FINALLY ALL WORKING!!! ty guys.

i changed the path to Java not the jdk.
after that got more 2 odd errors but all solved now. ty very much


nikoniko(Posted 2014) [#13]
yiotoo wrote:
TRANS FAILED: Error executing 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /p:Configuration=Debug /p:Platform=Win32 MonkeyGame.sln', return code=1


You should setup correct path to MSBuild in enviroment vars (PATH)


dawlane(Posted 2014) [#14]
TRANS FAILED: Error executing 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /p:Configuration=Debug /p:Platform=Win32 MonkeyGame.sln'
.
If I remember you get that error if you don't have the Visual Studio 2010 service pack one and have Microsoft.NET 4.x installed. Normally you don't need to edit the path.
It should be note that if you have both MinGW and Visual Studio installed and set up in the monkey configuration file. The default compiler that gets used now is MinGW for Desktop applications. If you wish to use Visual Studio you have to add #GLFW_USE_MINGW=False to your source code.


Danilo(Posted 2014) [#15]
dawlane wrote:
Flex SDK http://www.adobe.com/devnet/flex/flex-sdk-download.html
Make a directory called flex_sdk_4.6 (or whatever the new version is) and extract the flex sdk archive there. (C:\sdk\flex_sdk_4.6)

Please note that Adobe provides only an old version of the Flex SDK: Version 4.6

The Flex SDK is now continued by Apache Software Foundation (ASF): http://flex.apache.org
and latest version as of today is version 4.11.0.

http://flex.apache.org/about-history.html
2011: Adobe decides to contribute Flex to the ASF


The Monkey X documentation for Flash target should probably get
updated to include this information and link to the latest Apache Flex SDK.