# No way to export to any format: empty combobox, no "export handler" from comand line

**URL:** <https://discourse.mapeditor.org/t/no-way-to-export-to-any-format-empty-combobox-no-export-handler-from-comand-line/3940>\
**Category:** Questions\
**Created:** [June 2, 2019, 3:36pm UTC](https://discourse.mapeditor.org/t/no-way-to-export-to-any-format-empty-combobox-no-export-handler-from-comand-line/3940 "2019-06-02T15:36:35Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![akwabon](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/akwabon/32/2329_2.png) [@akwabon](https://discourse.mapeditor.org/u/akwabon)\
**Post date:** [June 2, 2019, 3:36pm UTC](https://discourse.mapeditor.org/t/no-way-to-export-to-any-format-empty-combobox-no-export-handler-from-comand-line/3940/1 "2019-06-02T15:36:35Z")

</div>

Hi all,

A bit of context first: Tiled version 1.2.1 under Ubuntu 19.04

My issue: it’s the first time I’m using Tiled, and I want to export my map in json format. But I can’t. If I want to do it from the interface, I have no choice in the format selection combobox but “tiled format”, nothing more. If I try from the command line with

`tiled --export-map test.tmx test.json`

I got an error message (I translate it from french) : “no export handler found for the target”  
If I try :

> tiled --export-map json test.tmx test.json

I got : “unrecognized format”

And :  
`tiled --export-formats`

gives :  
`format for map export: tmx`  
`format for tileset export : tsx`

that’s all. So I wonder if I’m doing something in the wrong way, if I need some kind of plugin (in that case, how and where to got it) or is something to report as a bug ?

Thanks a lot  
Patrice

---

<div class="post-metadata">

**Author:** ![bjorn](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/bjorn/32/1599_2.png) [@bjorn](https://discourse.mapeditor.org/u/bjorn)\
**Post date:** [June 2, 2019, 8:38pm UTC](https://discourse.mapeditor.org/t/no-way-to-export-to-any-format-empty-combobox-no-export-handler-from-comand-line/3940/2 "2019-06-02T20:38:54Z")

</div>

Hmm, how did you install Tiled?

Can you go into _Edit \> Preferences… \> Plugins_ and see if any plugins are listed there? The JSON format would be provided by a `libjson.so`.

---

<div class="post-metadata">

**Author:** ![akwabon](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/akwabon/32/2329_2.png) [@akwabon](https://discourse.mapeditor.org/u/akwabon)\
**Post date:** [June 2, 2019, 9:07pm UTC](https://discourse.mapeditor.org/t/no-way-to-export-to-any-format-empty-combobox-no-export-handler-from-comand-line/3940/3 "2019-06-02T21:07:06Z")

</div>

Hi

Here the answers you need :

- I installed tiled through an ‘apt install tiled’ command
- the plugin list is all empty. I’m not in front of my pc right now (time to sleep here in France :)) so I will confirm it tomorrow.

I can provide a list of what has been installed by the packet manager if you need : do libjson a third party lib that tiled depends on ? Or should it be part of tiled and therefore should be installed with it ?

---

<div class="post-metadata">

**Author:** ![akwabon](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/akwabon/32/2329_2.png) [@akwabon](https://discourse.mapeditor.org/u/akwabon)\
**Post date:** [June 3, 2019, 10:50am UTC](https://discourse.mapeditor.org/t/no-way-to-export-to-any-format-empty-combobox-no-export-handler-from-comand-line/3940/4 "2019-06-03T10:50:00Z")

</div>

Hi,

Today at the office I made a test under Ubuntu 16.04, and instaled tiled : `apt install tiled`  
It instal Tiled version 0.14.2 (?). I can export to many format, as expected, but there is no `plugin` sub menu in `edit -> preference`… strange

Also, the `--export-formats` command list many format.

So, I hope it helps, maybe the it’s an issue in the deb package in Ubuntu 19 ? Or, since I made some test with various json solutions few weeks ago there is a conflict …

---

<div class="post-metadata">

**Author:** ![bjorn](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/bjorn/32/1599_2.png) [@bjorn](https://discourse.mapeditor.org/u/bjorn)\
**Post date:** [June 3, 2019, 11:14am UTC](https://discourse.mapeditor.org/t/no-way-to-export-to-any-format-empty-combobox-no-export-handler-from-comand-line/3940/5 "2019-06-03T11:14:50Z")

</div>

> [@akwabon](#):
>
> I can export to many format, as expected, but there is no `plugin` sub menu in `edit -> preference` … strange

It’s not a sub-menu, but one of the tabs in the Preferences dialog.

> [@akwabon](#):
>
> So, I hope it helps, maybe the it’s an issue in the deb package in Ubuntu 19 ?

The [Tiled package](https://packages.ubuntu.com/disco/tiled) depends on the [libtiled package](https://packages.ubuntu.com/disco/libtiled1), which does include the [plugin files](https://packages.ubuntu.com/disco/amd64/libtiled1/filelist). But these plugin files are not in a directory that is searched for plugins, so indeed the packaging is broken.

The last Ubuntu Tiled package where plugins worked seems to be [Tiled 1.0.3 in Bionic](https://packages.ubuntu.com/bionic/tiled), where the plugins were still in `/usr/lib/tiled/plugins`, which is where Tiled installs them by default. I’m not sure when the additional `x86_64-linux-gnu` directory is introduced, or whether this is something I should fix or the packager should fix. But the problem should be reported to the package maintainer, who can contact me if something needs to change about Tiled to make the setup work.

---

<div class="post-metadata">

**Author:** ![akwabon](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/akwabon/32/2329_2.png) [@akwabon](https://discourse.mapeditor.org/u/akwabon)\
**Post date:** [June 3, 2019, 12:11pm UTC](https://discourse.mapeditor.org/t/no-way-to-export-to-any-format-empty-combobox-no-export-handler-from-comand-line/3940/6 "2019-06-03T12:11:50Z")

</div>

Do you want me to report this to [Ubuntu/bugs](https://bugs.launchpad.net/ubuntu) or do you take care of this ?

About sub menu, you’re right, I was thinking of tab : and there is no “plugin” tab with Tiled in my ubuntu 16.04. At home, with Ubuntu 19, tab exists but is empty (this is consistent with plugins in directory `x86_64....` and Tiled that do not look inside them)

---

<div class="post-metadata">

**Author:** ![bjorn](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/bjorn/32/1599_2.png) [@bjorn](https://discourse.mapeditor.org/u/bjorn)\
**Post date:** [June 4, 2019, 6:54am UTC](https://discourse.mapeditor.org/t/no-way-to-export-to-any-format-empty-combobox-no-export-handler-from-comand-line/3940/7 "2019-06-04T06:54:23Z")

</div>

> [@akwabon](#):
>
> Do you want me to report this to [Ubuntu/bugs](https://bugs.launchpad.net/ubuntu) or do you take care of this ?

I’ve reported the bug now, see [Bug #1831557 “Tiled plugins are not being loaded” : Bugs : tiled-qt package : Ubuntu](https://bugs.launchpad.net/ubuntu/+source/tiled-qt/+bug/1831557).

> [@akwabon](#):
>
> About sub menu, you’re right, I was thinking of tab : and there is no “plugin” tab with Tiled in my ubuntu 16.04. At home, with Ubuntu 19, tab exists but is empty (this is consistent with plugins in directory `x86_64....` and Tiled that do not look inside them)

Ah, that’s because Ubuntu 16.04 ships with Tiled 0.14.2, whereas the support for choosing which plugins are enabled was introduced in Tiled 0.15.

Btw, you should be able to create a symlink to the plugins directory to make Tiled find them:

```sh
sudo mkdir /usr/lib/tiled
sudo ln -s /usr/lib/x86_64-linux-gnu/tiled/plugins /usr/lib/tiled

```

But of course, such a link may cause problems when the package is fixed.

---

<div class="post-metadata">

**Author:** ![akwabon](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.mapeditor.org/akwabon/32/2329_2.png) [@akwabon](https://discourse.mapeditor.org/u/akwabon)\
**Post date:** [June 4, 2019, 7:08am UTC](https://discourse.mapeditor.org/t/no-way-to-export-to-any-format-empty-combobox-no-export-handler-from-comand-line/3940/8 "2019-06-04T07:08:47Z")

</div>

Good.

I created the symlink yesterday, and it works fine, plugins are found and I got json.

Thank you for the help, we just have now to wait for the fix.

Patrice
