Open pfoof opened 2 years ago
Best workaround for this is to reduce the directory structure to your app and sdk
i.e. place it in something like: C:\app
and C:\sdk
or similar.
The path seems to be reproduced a lot in the command and generally that has gotten us out of trouble.
Also make sure you are using the latest distriqt extensions. We did a round of minimising options passed in by the extensions earlier this year which should make a difference.
(or use macOS to compile your iOS app ;) )
Hi @marchbold ! I have the same problem. But re-organization of the path structure is no option for me. I have hundreds of mp3 files included. I can never reach < 8192 chars for my adt command. I tried to exclude the mp3 files with a second -extdir parameter but this one seems only to work for the libs folder. As far as I understand the problem is in the command shell (Windows 10 in my case). Can I use any other command shell tool? I tried it with Powershell but that one had absolutely no idea what I want from it.
Best regards Marc
@Marcophono2 As far as I'm aware it's a windows limitation, I'm not sure that changing the shell will change this. I believe your best option is to reconsider your application folder layout and how you include files.
Thanks, @marchbold ! If so, I can do it on my Mac. Problem solved! :-)
So what I suggest using ProcessBuilder
or some similar thing instead of getRuntime().exec
if that is the case
If you're meaning the Java ProcessBuilder
class then yes, that's what's used. But the command list starts with "cmd" and "/c" ...
Not entirely sure why that's the case, we can look to see why this mechanism was used rather than just running the linker directly...
we appreciate it.
This is actually a duplicate of #360.
Problem Description
We probably found the limit of how many frameworks and libraries can be included in AIR SDK.
We tried to compile an iOS project and we hit the limit of
The input line is too long
. This information comes fromcmd.exe
that is spawned by Java within AIR. Thiscmd.exe
should executeld64.exe
that has a long list of arguments (see attached screenshot).For reference: https://devblogs.microsoft.com/oldnewthing/?p=41553
Steps to Reproduce
Add a lot of frameworks/libraries/things to link and try to build the project.
Known Workarounds
Use less libraries until AIR patches this issue ;)