Pd-Pulp icon indicating copy to clipboard operation
Pd-Pulp copied to clipboard

'z_libpd.h' file not found (OS X 10.10)

Open mavavilj opened this issue 9 years ago • 20 comments
trafficstars

Upon opening the supplied .jucer in the zip file in ProJucer, the Build panel gives the error:

'z_libpd.h' file not found

Wonder if this is because my OS is supposedly 64-bit and the supplied libpd is 32-bit?

The paths may be wrong as well.

mavavilj avatar Feb 09 '16 20:02 mavavilj

which branch are you on? I would recommend v0.2.0

logsol avatar Feb 09 '16 20:02 logsol

master

mavavilj avatar Feb 09 '16 20:02 mavavilj

v0.2.0 gives the exact same error, when opening the .jucer.

mavavilj avatar Feb 09 '16 20:02 mavavilj

if you open the introjucer, load the jucer file and navigate to config > Xcode > Debug you can see some paths under "Header search paths" the z_libpd.h file resides in the ../../../libpd/libpd_wrapper folder. Make sure that is the case and then click on save and open in IDE.

logsol avatar Feb 09 '16 20:02 logsol

Are you sure the paths are correct?

The paths are (checked in Finder):

Pd-Pulp-0.2.0/FX/PdPulpFX.jucer Pd-Pulp-0.2.0/libpd/z_libpd.h

mavavilj avatar Feb 09 '16 20:02 mavavilj

It seems that the Xcode project doesn't give the error. Only Projucer, when building the .jucer.

mavavilj avatar Feb 09 '16 20:02 mavavilj

hmm well I actually use the Introjucer... And I think the paths are relative from the xcode project

logsol avatar Feb 09 '16 20:02 logsol

I've tried changing the paths.

It simply doesn't find it. Odd.

mavavilj avatar Feb 09 '16 21:02 mavavilj

OK so I changed

#include "z_libpd.h" to #include "../../libpd/libpd_wrapper/z_libpd.h" in PdBase.hpp.

And now it finds it.

Wonder what's wrong with the paths then. Because what I added there is the same exact path as in the Config.

#include "../libpd/libpd_wrapper/z_libpd.h" also works. (???)

mavavilj avatar Feb 09 '16 21:02 mavavilj

http://www.juce.com/forum/topic/h-files-found-equivalent-xcode-project-not-projucer

mavavilj avatar Feb 10 '16 10:02 mavavilj

have you tried simply using the introjucer? you can find it under juce/extras/Introjucer and you just need to open in your IDE and build it

logsol avatar Feb 10 '16 10:02 logsol

Wait, how?

There's a Introjucer.jucer, which opens Introjucer in Projucer. What do you mean by opening it in IDE and building it?

mavavilj avatar Feb 10 '16 10:02 mavavilj

Follow these steps:

  • download or clone JUCE
  • move into the directory JUCE/extras/Introjucer/Builds/MacOSX and open the Xcode project there
  • if you are on Windows you should use VisualStudio respectively
  • In the IDE build the Introjucer
  • now you have an Introjucer.app with which you can manage the PdPulp .jucer files

Note: The Pd Pulp project is from a time before the Projucer has been released.. And as far as I know its full usage is restricted to commercial licences.

logsol avatar Feb 10 '16 11:02 logsol

Check out the answer by jules: http://www.juce.com/forum/topic/h-files-found-equivalent-xcode-project-not-projucer

That implies that the paths are set wrong.

mavavilj avatar Feb 10 '16 11:02 mavavilj

However, I've now built Introjucer. And since it doesn't have the "live building" feature, then this approach might work, because now Xcode will be resolving the paths, not JUCE.

mavavilj avatar Feb 10 '16 11:02 mavavilj

Does this work now?

logsol avatar Feb 17 '16 19:02 logsol

I think the problem is still existing.

I got around it by building libpd from scratch (as described here: https://github.com/libpd/libpd/wiki/Working-with-libpd-in-Xcode#details) in order to use in the WDL-OL port I'm doing.

mavavilj avatar Feb 17 '16 19:02 mavavilj

I think that (if you have time) if you built it for your project the same way, then it might be error-free. Since following the directions given in that page gives a pretty solid way to build libpd, one does not need to specify paths manually. It's all contained in the .xcodeproj.

mavavilj avatar Feb 17 '16 20:02 mavavilj

cheers for sharing that information

o-g-sus avatar Feb 17 '16 20:02 o-g-sus

I also added libpd as a git submodule (it was advised by the libpd developer). That way updating libpd is easier.

mavavilj avatar Feb 17 '16 20:02 mavavilj