# Header outside "source" cannot be found Linux

**URL:** <https://forum.juce.com/t/header-outside-source-cannot-be-found-linux/25160>\
**Category:** The Projucer\
**Created:** [November 16, 2017, 8:40pm UTC](https://forum.juce.com/t/header-outside-source-cannot-be-found-linux/25160 "2017-11-16T20:40:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChimpanZzzee](https://avatars.discourse-cdn.com/v4/letter/c/ebca7d/32.png) [@ChimpanZzzee](https://forum.juce.com/u/ChimpanZzzee)\
**Post date:** [November 16, 2017, 8:40pm UTC](https://forum.juce.com/t/header-outside-source-cannot-be-found-linux/25160/1 "2017-11-16T20:40:11Z")

</div>

Hi there,

I’m trying to build a plugin i have coded under macOs first on Linux (ubuntu 16.04).

My issue is the following :  
I have a folder MyJuceProjects in which i have two folders, “Libraries” and a “PluginProjects” Folder.

In the “Libraries” Folder i have :  
“JUCE” (the submodule associated to the JUCE repo)  
“MyLib”(a folder with .h and .cpp generic code i reuse often)

In the “PluginProjects” Folder i have :  
“MyProject” a JUCE project. In the “source” folder i have different folder “Synthesiser” etc.

It seems that all the header located in the folders INSIDE the “source” folder and inside MyLib folder are not seen at compile time with LinuxMakeFile.

I cannot find any equivalent to USE\_HeaderMap for this exporter and when i try to add extra headerpath “…/…/Libraries/MyLib” to the LinuxMakeFile exporter nothing happens.

Do you have any information about setup with makefile i missed and that raises the “fatal error: mylibfile.h: No such file or directory  
#include “mylibfile.h””?

Thanks a lot.

---

<div class="post-metadata">

**Author:** ![t0m](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/t0m/32/16413_2.png) [@t0m](https://forum.juce.com/u/t0m)\
**Post date:** [November 17, 2017, 11:19am UTC](https://forum.juce.com/t/header-outside-source-cannot-be-found-linux/25160/2 "2017-11-17T11:19:23Z")

</div>

Is the relative include path you’re using correct? Try using an absolute path instead.

You can get verbose output from the Makefile by doing `V=1 make` where you can see all the flags getting passed to the compiler.

---

<div class="post-metadata">

**Author:** ![ChimpanZzzee](https://avatars.discourse-cdn.com/v4/letter/c/ebca7d/32.png) [@ChimpanZzzee](https://forum.juce.com/u/ChimpanZzzee)\
**Post date:** [November 20, 2017, 10:51am UTC](https://forum.juce.com/t/header-outside-source-cannot-be-found-linux/25160/3 "2017-11-20T10:51:30Z")

</div>

It’s working now thanks, i needed to add all the paths (they were numerous) and the paths were not correct as you pointed it.

A path needs to be relative to the makefile and not the .jucer

But why there is no equivalent of Use-HeaderMap for Linux CodeBlocks and LinuxMakeFile projects ? (Just Curious)

Thanks again!

---

<div class="post-metadata">

**Author:** ![t0m](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/t0m/32/16413_2.png) [@t0m](https://forum.juce.com/u/t0m)\
**Post date:** [November 20, 2017, 11:50am UTC](https://forum.juce.com/t/header-outside-source-cannot-be-found-linux/25160/4 "2017-11-20T11:50:39Z")

</div>

Use Header Map is a feature of Xcode and there’s nothing similar that’s supported by either Make or Code::Blocks.

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [November 20, 2017, 12:01pm UTC](https://forum.juce.com/t/header-outside-source-cannot-be-found-linux/25160/5 "2017-11-20T12:01:26Z")

</div>

Also see various other threads, e.g.

> [@VisualStudio cannot find include files](https://forum.juce.com/t/visualstudio-cannot-find-include-files/7153):
>
> It is obvious that I am missing something, but VisualStudio 2005 can’t seem to find my project’s include files, even though I have generated the project with the Introjucer (JuceLibraryCode.cpp compile fine). The projects work fine on the Mac. My source files each include the JuceHeader.h and/or other headers that belong to the project: #include "JuceHeader.h" #include "OtherHeader.h" VisualStudio 2005 does not find any of them. What’s that I am missing? Does it matter that the project is loca…

---

<div class="post-metadata">

**Author:** ![rremer](https://avatars.discourse-cdn.com/v4/letter/r/3ab097/32.png) [@rremer](https://forum.juce.com/u/rremer)\
**Post date:** [April 30, 2025, 1:37am UTC](https://forum.juce.com/t/header-outside-source-cannot-be-found-linux/25160/6 "2025-04-30T01:37:27Z")

</div>

What worked well for me (Linux Makefile target) was to ensure all modules are set to “Make Local Copy” (from Projucer → Modules → Settings [Gear Icon]). After I did that, and cleaned up all intermediate build files (make clean), the generated project built fine.
