As the title indicates:I get the error below. I have double checked that my target was windows but still see some android points in the filepath here.
I tried lime rebuild hxcpp android but get the same error. I guess I need a windows equivalent?
In file included from C:/HaxeToolkit/haxe/cpp/hxcpp/3,4,188/include/hxcpp.h:20:0:
c:\development\android ndk\toolchains\arm-linux-androideabi-4.9\prebuilt\windows-x86_64\lib\gcc\arm-linux-androideabi\4.9.x\include\stdint.h:9:26: fatal error: stdint.h: No such file or directory
include_next <stdint.h>
^
compilation terminated.
Error: Could not create PCH
Build halted with errors.
Let’s focus on Windows, what version of Visual Studio Express or Community do you have installed? Does it have support for Windows C++ (Win32) installed?
I should clarify that this is all in relation to trying to build to windows (so I am not sure why it is asking for files relating to android?)
I had visual studio 15 installed, but have removed it and am now updating to 17. Will let you know how this progresses. Thanks again for your help here!
I installed visual studio community 17 and selected Windows C++ as a download option.
I still get the same error when attempting to compile.
Not sure if there are any steps I need to take to rebuid things after the visual studio download. I tried:
lime rebuild windows
lime rebuild android
lime rebuild hxcpp windows
lime rebuild hxcpp android
Seems that this doesn’t have any effect on the error message I receive (I.e. the original top one above - no such file as stdint.h).
Okay, so using a Haxelib version of Lime 6.3, lime rebuild windows should do nothing, because we do not have the “project” directory or the “Build.xml” file.
However, using Lime from source, lime rebuild windows should only run Windows build commands, and disregard Android. You might also try lime rebuild tools, first, if you have not already. You can try lime rebuild windows -verbose to see what it says
Thanks - afraid I need a little more handholding here. I’m not sure what is meant by ‘run lime from source’. I am only familiar with accessing it through haxelib. How would I do what you suggest?
If you are using Lime from haxelib, you should not need to rebuild anything. You should be able to run lime from the command prompt, and should be able to build a simple project for Windows C++, assuming your Visual Studio is setup:
openfl create DisplayingABitmap
cd DisplayingABitmap
openfl test windows
(Note that if I try to run these commands without prefixing them with haxelib run I get an error along the lines of " ‘openfl’ is not recognized as an internal or external command, operable program or batch file."
Hmm, this looks super-weird. You can see that OpenFL says, “WINDOWS” and then we ask HXCPP to build it for us, then it decides to go with Android? I wonder if -Dandroid is defined somehow. What does your Lime config look like? Try running lime config and it should print it all out.
Does it do the same if you try openfl test flash or openfl test html5?
This has fixed my ability to build to windows. Thanks!
My ability to build to android, however, seems largely unaffected (that is, before I ran this command building to android crashed at a certain point, and now it crashes at the same point)…
Here’s the message I get when trying to build a toy openfl project (happy to start a new thread if that’s more appropriate)…
You’re quite right and this was an easy fix - installing version 8 of the java sdk seems to have fixed this issue too. Thanks again so much for all your persistence with helping here!
We noticed a minor discrepancy in how Lime was handling <define /> instead of <set />
In the next Lime release, <define /> should work as expected, but in the meantime, if you have trouble with the Lime tools saying that “You must run ‘lime setup android’” then edit “~/.lime/config.xml” to use <set /> instead of <define />, no need to put it inside of a named <section /> or <section /> at all