All, I’ve searched around for this topic, but I haven’t run into anything that quite fits my situation.
I have a haxeflixel project, using FlashDevelop as my IDE along with lime 2.9.1 and Openfl 3.6.1-LQBZc4.
I’m on Win10. I’m able to compile my project to Windows and to HTML5, but not to the android target.
lime and OpenFL versions:
C:\HaxeToolkit\android>lime --help
/_ \ __
//\ \ /_\ ___ ___ __
\ \ \ /\ \ /’__
\ /’`
_\ _\ \ /\ /\ /\ /\ /
/_\ _\ _\ _\ _\ _
// /////////____/Lime Command-Line Tools (2.9.1)
Use lime setup to configure platforms or lime help for more commandsC:\HaxeToolkit\android>openfl --help
.d88 88b. 888888b 888
d88P" "Y88b 888 888
888 888 888 888
888 888 88888b. .d88b. 88888b. 8888888 888
888 888 888 “88b d8P Y8b 888 “88b 888 888
888 888 888 888 88888888 888 888 888 888
Y88b. .d88P 888 d88P Y8b. 888 888 888 888
"Y88 88P” 88888P” "Y8888 888 888 888 "Y888P
888
888OpenFL Command-Line Tools (3.6.1-LQBZc4)
Use openfl setup to configure platforms or openfl help for more commands
Use -Dv2 or -Dlegacy with your commands to use OpenFL 2.x legacy mode
When I attempt to build using FlashDevelop:
Running process: C:\Program Files (x86)\FlashDevelop\Tools\fdbuild\fdbuild.exe “C:\Users\greed\Content\Personal\game\lst\haxe\lst\lst.hxproj” -ipc 2205808e-00ed-455e-8fd3-6ea8aa60e9d9 -version “3.4.4” -compiler “C:\HaxeToolkit\haxe” -notrace -library “C:\Program Files (x86)\FlashDevelop\Library” -target "android"
Building lst
Running Pre-Build Command Line…
cmd: “C:\HaxeToolkit\haxe/haxelib” run lime build “Project.xml” android -release -Dfdb
Error: You need to run “lime setup android” before you can use the Android target
Build halted with errors.
Done(1)
And when I run lime setup:
C:\HaxeToolkit\android>lime setup android
Download and install the Android SDK? [y/n/a] ? n
Download and install the Android NDK? [y/n/a] ? n
Download and install Apache Ant? [y/n/a] ? n
Download and install the Java JDK? [y/n/a] ? nPath to Android SDK [c:\SDKs/android-sdk]:
Path to Android NDK [c:\SDKs/android-ndk]:
Path to Apache Ant [c:\SDKs/ant]:
Path to Java JDK [C:\Program Files (x86)\Java\jdk1.8.0_171]:
Called from ? line 1
Called from CommandLineTools.hx line 1400
Called from CommandLineTools.hx line 25
Called from CommandLineTools.hx line 94
Called from CommandLineTools.hx line 1415
Called from utils/PlatformSetup.hx line 406
Called from utils/PlatformSetup.hx line 416
Called from utils/PlatformSetup.hx line 992
Called from utils/PlatformSetup.hx line 2218
Called from /usr/lib/haxe/std/neko/_std/sys/io/File.hx line 54
Uncaught exception - [file_open,C:\Users\greed/.hxcpp_config.xml]
Strange error there.
And my entire .hxcpp_config.xml:
<!-- Use this to control the SDK used when compiling for iphone/iphonesim, and the default is not found, or you wish to use a specific version --> <!-- <set name="IPHONE_VER" value="4.2" /> --> <!-- If you put all your SDKs in one directory, then you can just set this single variable. If you put them in exactly this place, then you should not need to setup anything ! --> <set name="SDK_ROOT" value="c:\SDKs\" unless="SDK_ROOT" if="windows" /> <set name="SDK_ROOT" value="${HOME}/SDKs/" unless="SDK_ROOT" />
<!-- If you want to control how many compilers get spawned . The default will use the number of processors. Reducing this to 1 can help deciphering error messages. --> <!-- <set name="HXCPP_COMPILE_THREADS" value="1" /> --> <!-- Add this if your compiler does not support precompiled headers --> <!-- <set name="NO_PRECOMPILED_HEADERS" value="1"/> --> <!-- Older versions of gcc do not suport the @file syntax for an obj file list and precompiled headers. Set this if you have these issues --> <!-- <set name="GCC_OLD" value="1" /> --> <!-- Skip the "stripping" phase. This will leave extra symbols in you exe, which may allow reverse engineering and larger file sizes. You might want to do this to debug some problems though. --> <!-- <set name="nostrip" value="1" /> --> <!-- Let the system detect the latest version of MSVC on windows (otherwise must setup the environment yourself) --> <!-- Disable with <set name="NO_AUTO_MSVC" value="1" /> --> <!-- To disable specific versions: <setenv name="VS110COMNTOOLS" value="disable" /> -->
Any advice? Much appreciated, folks.