# Cmake Error on Ubuntu

**URL:** https://community.easyrpg.org/t/cmake-error-on-ubuntu/1279
**Category:** Editor
**Created:** [June 27, 2023, 10:10am UTC](https://community.easyrpg.org/t/cmake-error-on-ubuntu/1279 "2023-06-27T10:10:22Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Melonpan37](https://community.easyrpg.org/user_avatar/community.easyrpg.org/melonpan37/32/746_2.png) [@Melonpan37](https://community.easyrpg.org/u/Melonpan37)
#### Post date: [June 27, 2023, 10:10am UTC](https://community.easyrpg.org/t/cmake-error-on-ubuntu/1279/1 "2023-06-27T10:10:22Z")

</div>

Hello everyone!  
I’ve been following this project for a while now. I like the idea of an open source alternative to rm2k and rm2k3 editors, and the player is awesome of course. So i thought I could take a look at the code for the editor, and maybe contribute if possible (I’m an almost-graduated CS student, so I know c/c++). The problem is that I can’t get cmake to work for the editor.  
I successfully managed to compile and execute the player, but that’s not the case with the editor.  
I’m running Ubuntu 20.04, and I should have all the needed dependencies, but when I try to use `cmake .` to create the makefile from bash I get this error :

```auto
CMake Error at CMakeLists.txt:337 (add_executable):
Target "EasyRPG_Editor" links to target "EXPAT::EXPAT" but the target was
not found. Perhaps a find_package() call is missing for an IMPORTED
target, or an ALIAS target is missing?

```

I’ve tried to fix this on my own, but I’m not very familiar with cmake.  
Can someone help me?

---

<div class="post-metadata">

### Author: ![carstene1ns](https://community.easyrpg.org/user_avatar/community.easyrpg.org/carstene1ns/32/117_2.png) [@carstene1ns](https://community.easyrpg.org/u/carstene1ns)
#### Post date: [July 1, 2023, 10:08pm UTC](https://community.easyrpg.org/t/cmake-error-on-ubuntu/1279/2 "2023-07-01T22:08:11Z")

</div>

Are you building internal liblcf?  
You need to install `libexpat1-dev`, however, if Player builds fine, this should not be an issue.
