# Unable to build with native extension (DEF-2797)(SOLVED)

**URL:** <https://forum.defold.com/t/unable-to-build-with-native-extension-def-2797-solved/9538>\
**Category:** Bugs\
**Created:** [June 30, 2017, 9:23am UTC](https://forum.defold.com/t/unable-to-build-with-native-extension-def-2797-solved/9538 "2017-06-30T09:23:23Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![florent.cure](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/florent.cure/32/4939_2.png) [@florent.cure](https://forum.defold.com/u/florent.cure)\
**Post date:** [June 30, 2017, 9:23am UTC](https://forum.defold.com/t/unable-to-build-with-native-extension-def-2797-solved/9538/1 "2017-06-30T09:23:23Z")

</div>

Hi,

I’m Defold (Editor 1, Version 1.2.107) on Linux, and building for Android.

Whenever I try to build with a native extension, I get this error message:  
`Build server output: Unsupported platform x86_64-linux ext.manifest /myproject/content/extension_dir Unknown Problem`

**[edit: more precisions]**  
I followed the tutorial [here](https://www.defold.com/manuals/extensions/) to make a simple extension. Then I run dmengine on my Android phone, and I use “Build and Launch” to run it directly on my phone. This gave me the above error.  
I also tried to make an Android bundle, but I got a long error message (that I can copy here) apparently involving the build server.  
This is exactly the same error that I have with any other native extension.

Is there a solution to that problem, or should I switch to using Defold on Windows ?

**[edit 2]**  
I tried it on Windows, and it gives the same error

**It looks like the project is not built for the target platform, but for the platform the editor is running on.**

Thanks in advance,  
Florent

---

<div class="post-metadata">

**Author:** ![AGulev](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/agulev/32/4541_2.png) [@AGulev](https://forum.defold.com/u/AGulev)\
**Post date:** [June 30, 2017, 10:33am UTC](https://forum.defold.com/t/unable-to-build-with-native-extension-def-2797-solved/9538/2 "2017-06-30T10:33:35Z")

</div>

For now Native Extensions for Windows and Linux does not supported.  
You can rename ext.manifest for build your game without Native Extensions.

---

<div class="post-metadata">

**Author:** ![florent.cure](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/florent.cure/32/4939_2.png) [@florent.cure](https://forum.defold.com/u/florent.cure)\
**Post date:** [June 30, 2017, 10:36am UTC](https://forum.defold.com/t/unable-to-build-with-native-extension-def-2797-solved/9538/3 "2017-06-30T10:36:12Z")

</div>

> [@AGulev](#):
>
> For now Native Extensions for Windows and Linux does not supported.  
> You can rename ext.manifest for build your game without Native Extensions.

I don’t understand. I don’t want to build for Linux or Windows, but for Android. I want to use this native extension on Android, so what should I do to build it ?

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [June 30, 2017, 11:06am UTC](https://forum.defold.com/t/unable-to-build-with-native-extension-def-2797-solved/9538/4 "2017-06-30T11:06:54Z")

</div>

> [@florent.cure](#):
>
> I don’t understand. I don’t want to build for Linux or Windows, but for Android. I want to use this native extension on Android, so what should I do to build it ?

Project-\>Build will build your game for the platform that the editor is running on.  
Project-\>Bundle-\>Platform will bundle an executable for the platform you selected.

If you have one or more native extensions added to your project and build (Project-\>Build) we will send the extensions to our build server and return a custom engine with the extensions included. This will happen even if it’s an extension specifically targeting iOS and Android (like AdMob). Until we have engine builders for all platforms on our build server this will be a problem for you since we do not yet have a builder for Linux. The only solution I can think of is to remove the mobile extensions from your project until you actually need to bundle.

---

<div class="post-metadata">

**Author:** ![Mathias\_Westerdahl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mathias_westerdahl/32/228_2.png) [@Mathias\_Westerdahl](https://forum.defold.com/u/Mathias_Westerdahl)\
**Post date:** [June 30, 2017, 11:21am UTC](https://forum.defold.com/t/unable-to-build-with-native-extension-def-2797-solved/9538/5 "2017-06-30T11:21:22Z")

</div>

I think the problem here (like @britzl says) is that “build and launch” is invoked, and (currently) it tries to build a Linux engine, even though all you needed was the content build (since you are attached to the Android device).  
I’ve added a ticket for this.

If you wish, you can download an alpha release of Editor 1, which does have Win32 support: [http://d.defold.com/alpha/](http://d.defold.com/alpha/)  
(The expected release of Win32 support is next week)

---

<div class="post-metadata">

**Author:** ![florent.cure](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/florent.cure/32/4939_2.png) [@florent.cure](https://forum.defold.com/u/florent.cure)\
**Post date:** [June 30, 2017, 1:05pm UTC](https://forum.defold.com/t/unable-to-build-with-native-extension-def-2797-solved/9538/6 "2017-06-30T13:05:12Z")

</div>

> [@Mathias\_Westerdahl](#):
>
> If you wish, you can download an alpha release of Editor 1, which does have Win32 support: [http://d.defold.com/alpha/](http://d.defold.com/alpha/)

Thank you, I will try that out.

> [@Mathias\_Westerdahl](#):
>
> (The expected release of Win32 support is next week)

Is anything planned for Linux support as well ?

---

<div class="post-metadata">

**Author:** ![Mathias\_Westerdahl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/mathias_westerdahl/32/228_2.png) [@Mathias\_Westerdahl](https://forum.defold.com/u/Mathias_Westerdahl)\
**Post date:** [June 30, 2017, 1:17pm UTC](https://forum.defold.com/t/unable-to-build-with-native-extension-def-2797-solved/9538/7 "2017-06-30T13:17:27Z")

</div>

Yes, my hope is that I will start working on Linux support for Native Extensions next week.

---

<div class="post-metadata">

**Author:** ![florent.cure](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/florent.cure/32/4939_2.png) [@florent.cure](https://forum.defold.com/u/florent.cure)\
**Post date:** [June 30, 2017, 1:21pm UTC](https://forum.defold.com/t/unable-to-build-with-native-extension-def-2797-solved/9538/8 "2017-06-30T13:21:17Z")

</div>

> [@Mathias\_Westerdahl](#):
>
> Yes, my hope is that I will start working on Linux support for Native Extensions next week.

Thank you, that’s very good news !!
