Can't build bundle with ne (SOLVED)

I am trying to build a game with bob. But i get a error. Building bundle in editor not worked too.
But building in editor work correct. :mage:

java -jar C:\Users\user\DefoldProjects\bob.jar -email foo@bar.com --auth 1 --archive --platform x86-win32 resolve build bundle

C:\Users\user\DefoldProjects\Trip to ElPaco Side Scroller>java -jar C:\Users\us
r\DefoldProjects\bob.jar -email foo@bar.com --auth 1 --archive --platform x86-w
n32 resolve build bundle
99%Exception in thread "main" com.dynamo.bob.MultipleCompileException: Build er
or
        at com.dynamo.bob.bundle.BundleHelper.buildEngineRemote(BundleHelper.ja
a:407)
        at com.dynamo.bob.Project.buildEngine(Project.java:659)
        at com.dynamo.bob.Project.doBuild(Project.java:762)
        at com.dynamo.bob.Project.build(Project.java:339)
        at com.dynamo.bob.Bob.main(Bob.java:339)
Caused by: com.defold.extender.client.ExtenderClientException: Failed to build
ource.
        at com.defold.extender.client.ExtenderClient.build(ExtenderClient.java:
8)
        at com.dynamo.bob.bundle.BundleHelper.buildEngineRemote(BundleHelper.ja
a:399)
        ... 4 more
Exception in thread "Thread-1" java.lang.RuntimeException: Failed to delete tem
 directory: C:\Users\user\AppData\Local\Temp\6230635050928529940
        at com.dynamo.bob.Bob$1.run(Bob.java:57)
        at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: Unable to delete file: C:\Users\user\AppData\Lo
al\Temp\6230635050928529940\x86_64-win32\texc_shared.dll
        at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:2279)
        at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1653)
        at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1535)
        at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:2270)
        at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1653)
        at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1535)
        at com.dynamo.bob.Bob$1.run(Bob.java:55)
        ... 1 more

C:\Users\user\DefoldProjects\Trip to ElPaco Side Scroller>pause

Are you using the latest version of bob? What if you try the beta (http://d.defold.com/beta/info.json)? Which extensions are you using? Are you using an app manifest?

1 Like

Thanks. Mistake was very simple. I have add defos two time in dependencies=) :grinning:

No. It fix only window.

Using beta not help.
My extensions
1)https://github.com/AGulev/drawpixels/archive/master.zip
2)https://github.com/subsoap/def-diags/archive/master.zip
3)https://github.com/subsoap/defos/archive/master.zip
4)https://github.com/andsve/def-mnu/archive/master.zip
5)local ne for collisions
app manifest:

# App manifest generated Fri Jun 22 2018 09:50:23 GMT+0300
# Settings: Debug
platforms:
    x86_64-osx:
        context:
            excludeLibs: ["engine"]
            excludeSymbols: []
            libs: ["engine"]

    x86_64-linux:
        context:
            excludeLibs: ["engine"]
            excludeSymbols: []
            libs: ["engine"]

    js-web:
        context:
            excludeLibs: ["engine"]
            excludeSymbols: []
            libs: ["engine"]

    x86-win32:
        context:
            excludeLibs: ["libengine"]
            excludeSymbols: []
            libs: ["libengine.lib"]

    x86_64-win32:
        context:
            excludeLibs: ["libengine"]
            excludeSymbols: []
            libs: ["libengine.lib"]

    armv7-android:
        context:
            excludeLibs: ["engine"]
            excludeSymbols: []
            libs: ["engine"]

    armv7-ios:
        context:
            excludeLibs: ["engine"]
            excludeSymbols: []
            libs: ["engine"]

    arm64-ios:
        context:
            excludeLibs: ["engine"]
            excludeSymbols: []
            libs: ["engine"]


There are problems in ne. I fix them. But now i get internal server error for defos and def-diags, when try to build android

Does DefOS and Def-diags support Android or have a null implementation?

1 Like

They should both have null implemented.

1 Like

Hmm, ok, are you still getting the same error @d954mas? Can you share the project?

1 Like

Add you to project.(Trip to elpaco sidescroller) Now I don’t get internal server error. Now i get strange error.

Ok, so I made two changes and got it working:

1 - Added to ext.manifest (I’m on OSX, something similar likely required on other platforms):

x86-osx:
    context:
        flags:      ["-std=c++11", "-stdlib=libc++"]
        libs:       ["c++"]
x86_64-osx:
    context:
        flags:      ["-std=c++11", "-stdlib=libc++"]
        libs:       ["c++"]

2 - Added missing include to spatial.hpp:

#include <vector>
2 Likes

Thanks. But Window build worked without it. I have problems with android build. Also build without defos worked.
error:

javac -source 1.6 -target 1.6 ... java/sources.txt

Ah, ok, so it’s Android.

I noticed another error when I bundled for Android. In the mnu extension you have:

DM_DECLARE_EXTENSION(mnu, LIB_NAME, 0, 0, InitializeDefos, 0, 0, FinalizeDefos)

InitializeDefos and FinalizeDefos are used in the DefOS extension. You need to rename the ones you have in mnu.

1 Like

Fixed, but not helped

Works for me. I successfully bundled. Hooking up with you on Slack.

2 Likes

Do you, or any NE, have “-stdlib=libc++” for the Android context? If so, could you try removing it?

2 Likes

Big thanks for helping. It is solved.

4 Likes

Just FYI, this app manifest doesn’t do anything. It removes the engine lib, then readds it. this ending up with the usual engine libraries. You can either skip this app manifest entirely, or clear it, to avoid future confusion.

2 Likes

You talk about axtension manifest or about app manifest. I use extension manifest to add c++11 for android.