defold / editor2-issues

DEPRECATED
44 stars 4 forks source link

Building with a headless appmanifest on Windows doesn't work, bundling does #2129

Open subsoap opened 6 years ago

subsoap commented 6 years ago

The editor hides the console window even with a headless build

This also makes it so if you attempt to build a headless build bundling after will not work and you must restart Defold editor to make bundling work

Sample headless.appmanifest tested with a blank project on Windows 10

# App manifest generated Fri Aug 17 2018 00:53:01 GMT-0700 (Pacific Daylight Time)
# Settings: Physics,Record,Profiler,Facebook,Sound,Graphics,Input,Debug
platforms:
    x86_64-osx:
        context:
            excludeLibs: ["BulletDynamics","BulletCollision","LinearMath","Box2D","physics","record","vpx","profilerext","sound","tremolo","graphics","hid","engine"]
            excludeSymbols: ["ProfilerExt","FacebookExt","DefaultSoundDevice","AudioDecoderWav","AudioDecoderStbVorbis","AudioDecoderTremolo"]
            libs: ["engine","physics_null","record_null","sound_null","graphics_null","hid_null"]

    x86_64-linux:
        context:
            excludeLibs: ["BulletDynamics","BulletCollision","LinearMath","Box2D","physics","record","vpx","profilerext","sound","tremolo","graphics","hid","engine"]
            excludeSymbols: ["ProfilerExt","FacebookExt","DefaultSoundDevice","AudioDecoderWav","AudioDecoderStbVorbis","AudioDecoderTremolo"]
            libs: ["engine","physics_null","record_null","sound_null","graphics_null","hid_null"]

    js-web:
        context:
            excludeLibs: ["BulletDynamics","BulletCollision","LinearMath","Box2D","physics","record","vpx","profilerext","sound","tremolo","graphics","hid","engine"]
            excludeSymbols: ["ProfilerExt","FacebookExt","DefaultSoundDevice","AudioDecoderWav","AudioDecoderStbVorbis","AudioDecoderTremolo"]
            libs: ["engine","physics_null","record_null","sound_null","graphics_null","hid_null"]

    x86-win32:
        context:
            excludeLibs: ["libBulletDynamics","libBulletCollision","libLinearMath","libBox2D","libphysics","librecord","libvpx","libprofilerext","libsound","libtremolo","libgraphics","libhid","libengine"]
            excludeSymbols: ["ProfilerExt","FacebookExt","DefaultSoundDevice","AudioDecoderWav","AudioDecoderStbVorbis","AudioDecoderTremolo"]
            libs: ["libengine.lib","libphysics_null.lib","librecord_null.lib","libsound_null.lib","libgraphics_null.lib","libhid_null.lib"]

    x86_64-win32:
        context:
            excludeLibs: ["libBulletDynamics","libBulletCollision","libLinearMath","libBox2D","libphysics","librecord","libvpx","libprofilerext","libsound","libtremolo","libgraphics","libhid","libengine"]
            excludeSymbols: ["ProfilerExt","FacebookExt","DefaultSoundDevice","AudioDecoderWav","AudioDecoderStbVorbis","AudioDecoderTremolo"]
            libs: ["libengine.lib","libphysics_null.lib","librecord_null.lib","libsound_null.lib","libgraphics_null.lib","libhid_null.lib"]

    armv7-android:
        context:
            excludeLibs: ["BulletDynamics","BulletCollision","LinearMath","Box2D","physics","record","vpx","profilerext","sound","tremolo","graphics","hid","engine"]
            excludeSymbols: ["ProfilerExt","FacebookExt","DefaultSoundDevice","AudioDecoderWav","AudioDecoderStbVorbis","AudioDecoderTremolo"]
            libs: ["engine","physics_null","record_null","sound_null","graphics_null","hid_null"]

    armv7-ios:
        context:
            excludeLibs: ["BulletDynamics","BulletCollision","LinearMath","Box2D","physics","record","vpx","profilerext","sound","tremolo","graphics","hid","engine"]
            excludeSymbols: ["ProfilerExt","FacebookExt","DefaultSoundDevice","AudioDecoderWav","AudioDecoderStbVorbis","AudioDecoderTremolo"]
            libs: ["engine","physics_null","record_null","sound_null","graphics_null","hid_null"]

    arm64-ios:
        context:
            excludeLibs: ["BulletDynamics","BulletCollision","LinearMath","Box2D","physics","record","vpx","profilerext","sound","tremolo","graphics","hid","engine"]
            excludeSymbols: ["ProfilerExt","FacebookExt","DefaultSoundDevice","AudioDecoderWav","AudioDecoderStbVorbis","AudioDecoderTremolo"]
            libs: ["engine","physics_null","record_null","sound_null","graphics_null","hid_null"]
mathiaswking commented 6 years ago

Hi @subsoap ! Hmm, I'm not sure I understand. This sounds like two issues?

1) The console window isn't shown when you "Build and run"? Is the problem that you don't see the output in the Editor's output window?

2) You cannot bundle the app for windows? I'm a bit unclear as to why this failed for you? What happened? Did it fail with an error?

subsoap commented 6 years ago
  1. Right, the console window doesn't show when doing "Project -> Build". Editor console output still shows, but I have no ability to directly close the running engine. The console window should show itself when running a headless build from the editor.

  2. There is no problem with bundling as long as I do not build first. If I bundle and then run the exe the console window shows fine. The error I get when bundling after building is

2018-08-20 09_42_29-window

It would be nice to be able to kill the running engine copy from the editor. Such as a button next to the clear console output in the editor.

mathiaswking commented 6 years ago

@erikangelin-king I will move this from engine to editor, since this feels more like a UI thing. E.g. a headless build on OSX won't even show a terminal window, and should only output log to the editor. So in order to stop such a build, we need a UI element to do this.

re 2) This feels like an error due to #1, right? (and also win32 behavior, not being able to overwrite an executable while it's running)