Code::Blocks module search path problem in Linux


#1

Hi,
I’m using Projucer on Linux and code::blocks as IDE.
When I save the project and open it with IDE, codeblocks does not compile. It reports error about modules not found.

I configured the Projucer project to save modules inside the project tree.
In generated cbp file I found a Search directory item containing …/…/JuceLibraryCode, but is not sufficient.

To compile, I have to add a new Search Directory Path pointing to …/…/JuceLibraryCode/modules

I can do it inside code::blocks with Project Build Options menu, and then it works fine.

The problem is when I save again the Projucer project: it overwrite search path.

Where can I fix projucer appending additional modules path?

Thanks!
Ivan

Host Linux Debian Stretch
CPU: 4344MHz Cores: 8 15719MB

Projucer 4.2.1 from github


#2

I got the same problem.

In the cbp file, I can see the following lines. The JUCE modules are not added to the search path.

     Add directory="."/
     Add directory="../../JuceLibraryCode"/
     Add directory="/usr/include/freetype2"/

However, it seems that the modules are included as Units explicitly in the cbp file.

Unit filename="../../../../../juce/modules/juce_audio_basics/juce_audio_basics.cpp" 
  Option compile="0"/
  Option link="0"/
/Unit