-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configure 32-bit vs 64-bit builds #31
Comments
I think this error should have been fixed in 85ad75e, do you need to
Well, kind of. |
@Aurel300 Thanks for the info! Here are my findings:
When I was trying to build the sample project I was getting some odd errors specific to the sample code, after I deleted it all down to just the adder function though I built it and using msvc was able to actually get it all the way to the hl run and see the add work through Haxe. So that's pretty cool. When trying with gcc I'm getting some 'skipping incompatible' errors in regards to hashlink's library. From what I've read that typically means trying to link 32bit binary to 64bit target or vise versa. The gcc command has m64 so I'm gussing this means my hashlink library installed is 32 bit and my gcc is 64 and trying to build the adder library with 64 isn't working with 32 HL... but I guess this isn't technically an ammer issue, so I'll probably try to look into that later. Unless you have suggestions. Ammer is pretty cool, I hope to see it keep growing. Being able to easily add libraries to Haxe like this would be a huge benefit to the language as a whole I think. Keep up the good work! |
I have something like this in mind. There is a lot of code duplication between all the I am also thinking that maybe I welcome PRs in general, if I am happy with the implementation. @pewsplosions Hmm yes, 32-bit vs 64-bit might be a problem. Perhaps there should be a way to configure this. I'll change this issue to reflect that and leave it open. |
On Windows I typically use scoop to install all my tools. For C/C++ compiler I use gcc (it is mingw) usually, mostly because I don't want to install a bunch of Microsoft tools just to get a compiler and can just do a quick scoop install gcc and start coding.
I've been reading a lot about using native libraries with Haxe and ammer keeps popping up and seems great but I have yet to actually get it to work. When I tried the sample I can build the dll just fine. But when I try to run the build hxml I always just end up getting this error:
'U:\Projects\ammer\samples\poc\nmake' is not recognized as an internal or external command,
operable program or batch file.
Which, I thought, was because I did not have msvc installed. In Config.hx the useMSVC boolean is not actually determining if msvc is present but instead is just checking if it is on Windows. So obviously ammer is not accounting for other possible compilers on Windows.
However. I used scoop to install msvc after this (it is scoop install visualc if anyone is interested.)
Checked that nmake was on my path. Then tried to build the sample again and got the same nmake is not recognized error. Even though in the same terminal afterward I could type nmake and get nmake.
So, obviously my first request would just be to let ammer work with gcc on Windows. But I'm also curious if anyone else is getting this nmake problem on Windows with msvc/nmake installed and working otherwise or if it is just me (perhaps because scoop isn't installing something?)
I hope I've described my issue well enough. I wish I could just figure it out myself but for the life of me cannot wrap my head around using native libraries with haxe, with or without ammer... so any help either way would be awesome! Thanks!
The text was updated successfully, but these errors were encountered: