roboscala / sbt-robovm

An sbt plugin for iOS development in Scala
BSD 2-Clause "Simplified" License
108 stars 16 forks source link

sbt-robovm does not work on Windows, even if not used in multi-project settings #10

Closed aginiewicz closed 8 years ago

aginiewicz commented 10 years ago

Adding sbt-robovm plugin causes SBT to fail with information "Unsupported Operating System: Windows ***" even in multi-project setups (like libgdx-sbt-project.g8), when someone compiles only Windows or Android versions.

aginiewicz commented 10 years ago

(we talked about it by e-mail, but I needed something to link to for users of specgine, that build on top of libgdx-sbt-project.g8 template, so they know when if it is fixed)

ajhager commented 10 years ago

I am actively working on this. Latest version of bootcamp wifi drivers are buggy, making it difficult for me to test. Thanks for posting!

jaxrtech commented 10 years ago

Was this issue resolved? Running sbt after using ajhager/libgdx-sbt-project.g8 with giter8 will still bark at you with Unsupported Operating System: Windows ....

jaxrtech commented 10 years ago

Thanks for the update! It's great now being able to use Scala with libGDX. Setting up IntelliJ to work with it was a bit of hassle, but up and running, it works great. I'm not an expert in Scala and SBT, but I would of though there could of been some way to conditionally compile the RoboVM iOS project. I know you can get if the computer is running Windows with System.getProperty("os.name").contains("Windows"), and I figure you could suppress the exception or something but that sounds pretty hackish.

ajhager commented 10 years ago

I am trying to get sbt-robovm updated, it is just a bit of context switch for me at the moment. I will definitely make sure this doesn't mess up a project on windows.

jaxrtech commented 10 years ago

I understand. At least for me, not having iOS build support at the moment is not the end of the world. RoboVM is still there. Anyhow, thanks for the update. It's great knowing a project has people backing it.

ajhager commented 10 years ago

Testing for this in master.

Darkyenus commented 9 years ago

Is this still an issue?

ajhager commented 9 years ago

I have not done anything in particular to fix it, so it needs testing. I have a windows dev machine again so I can try it.

Darkyenus commented 9 years ago

If I understand this correctly, just including sbt-robovm in build will produce errors on sbt run in windows, is that correct?

ajhager commented 9 years ago

Yeah, for example in the sbt libgdx template. We will want it to detect if it is being run on an unsupported platform and make sure to not doing anything.

aginiewicz commented 9 years ago

A fellow windows user tried libgdx sbt template, the message change since last time. It is now

java.lang.UnsatisfiedLinkError: Native library for windows-x86_64 not found

(full stack trace: http://pastebin.com/t4WbFtw5) and earlier it was

Unsupported Operating System: Windows ***

but it does not seem to work

Darkyenus commented 9 years ago

Hmm, it seems that this line val config = launchTask(Arch.getDefaultArch, OS.getDefaultOS, TargetType.console, skipInstall = true).value has its parameters evaluated even without calling the task. That seems to be a property of .value macro. When I have a little time to setup test environment, I'll try fixing it by changing launchTask to pass parameters by name (arch: =>Arch, ...), that could hopefully fix it.

ajhager commented 9 years ago

I will test this when I update the libgdx g8 template.

ajhager commented 8 years ago

This should be fixed.