# First new project: fatal error: JuceHeader.h: No such file or directory 26 | #include \<JuceHeader.h\>

**URL:** <https://forum.juce.com/t/first-new-project-fatal-error-juceheader-h-no-such-file-or-directory-26-include-juceheader-h/49282>\
**Category:** Linux\
**Created:** [December 15, 2021, 10:42pm UTC](https://forum.juce.com/t/first-new-project-fatal-error-juceheader-h-no-such-file-or-directory-26-include-juceheader-h/49282 "2021-12-15T22:42:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rallan](https://avatars.discourse-cdn.com/v4/letter/r/54ee81/32.png) [@rallan](https://forum.juce.com/u/rallan)\
**Post date:** [December 15, 2021, 10:42pm UTC](https://forum.juce.com/t/first-new-project-fatal-error-juceheader-h-no-such-file-or-directory-26-include-juceheader-h/49282/1 "2021-12-15T22:42:22Z")

</div>

Problem is as described in the title:  
**fatal error: JuceHeader.h: No such file or directory 26 | #include \<JuceHeader.h\>**

Working with VS Code (not Visual Studio).

Created my first project (audio template). I did not tamper with any files, only changed the global path settings because JUCE did not accept the defaults (see image).

DemoRunner.exe works fine.

Entering g++ -std=c++17 \*.cpp at the terminal, with either Linux terminal or VS Code terminal, for either my new project or a demo example, I get the error

Tried moving JuceHeader.h into the same folder as main.cpp & maincomponent.cpp

More particulars:

- New installation of JUCE on Fedora 35 (35 is latest version)

- new project is called “OtoDecks”

- gcc (GCC) 11.2.1 20211203 (Red Hat 11.2.1-7)

- cmake version 3.22.0

- Use Global AppConfig Header: Disabled

- Include BinaryData in JuceHeader: Disabled

I am allowed one screenshot:

 ![globalPaths](https://us1.discourse-cdn.com/flex026/uploads/juce/original/2X/b/bd37a8ab372f312988559069a5296e09e61fbd78.png)

I would appreciate any guidance

Randy

---

<div class="post-metadata">

**Author:** ![rallan](https://avatars.discourse-cdn.com/v4/letter/r/54ee81/32.png) [@rallan](https://forum.juce.com/u/rallan)\
**Post date:** [December 16, 2021, 3:37am UTC](https://forum.juce.com/t/first-new-project-fatal-error-juceheader-h-no-such-file-or-directory-26-include-juceheader-h/49282/2 "2021-12-16T03:37:34Z")

</div>

More information:

In parallel with this issue I have been trying to correct a CMake problem:

\*it cannot find several packages (see attached image)

- it cannot build juceaide

As you know Fedora 35 (& 34) has pipewire instead of pulseaudio. I am unsure if this is a contributing matter but it seems peculiar it cannot find “alsa”.

My attempt to install two missing modules:

sudo dnf install webkit2gtk-4.0

sudo dnf install gtk±x11-3.0

resulted in “module not found”

 ![install_juceaide](https://us1.discourse-cdn.com/flex026/uploads/juce/original/2X/e/efd788f2181b5e6cb4aae27e2418f99d563e774a.png)

---

<div class="post-metadata">

**Author:** ![mcmartin](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/mcmartin/32/7432_2.png) [@mcmartin](https://forum.juce.com/u/mcmartin)\
**Post date:** [December 17, 2021, 7:16pm UTC](https://forum.juce.com/t/first-new-project-fatal-error-juceheader-h-no-such-file-or-directory-26-include-juceheader-h/49282/3 "2021-12-17T19:16:37Z")

</div>

Please refer to

> <https://github.com/juce-framework/JUCE/blob/master/docs/Linux%20Dependencies.md>

for which dependencies to install _before_ building a JUCE project.

---

<div class="post-metadata">

**Author:** ![rallan](https://avatars.discourse-cdn.com/v4/letter/r/54ee81/32.png) [@rallan](https://forum.juce.com/u/rallan)\
**Post date:** [December 18, 2021, 2:51pm UTC](https://forum.juce.com/t/first-new-project-fatal-error-juceheader-h-no-such-file-or-directory-26-include-juceheader-h/49282/4 "2021-12-18T14:51:36Z")

</div>

I am having trouble installing the dependencies on Fedora.

Your instructions work for MX Linux, a Debian-based distro, but not for Fedora 35.

As you know the commands have to be adjusted for Redhat distros: e.g; sudo **dnf** update for Fedora 35.

sudo dnf install libasound2-dev , as one example, returns “file not found”.

I find Fedora to be is a rigid distro compared to Debian distros I have worked with.The Fedora repository is limited, JUCE is not found there and - unlike the synaptic repository - the libraries and dependencies JUCE needs are not found there.

Any advice on how to handle this is appreciated.
