logsol / Pd-Pulp

Run pure-data inside VST host applications
http://pd-pulp.net
154 stars 12 forks source link

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

Open mavavilj opened 8 years ago

mavavilj commented 8 years ago

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.

logsol commented 8 years ago

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

mavavilj commented 8 years ago

master

mavavilj commented 8 years ago

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

logsol commented 8 years ago

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.

mavavilj commented 8 years ago

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 commented 8 years ago

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

logsol commented 8 years ago

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

mavavilj commented 8 years ago

I've tried changing the paths.

It simply doesn't find it. Odd.

mavavilj commented 8 years ago

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 commented 8 years ago

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

logsol commented 8 years ago

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

mavavilj commented 8 years ago

Wait, how?

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

logsol commented 8 years ago

Follow these steps:

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.

mavavilj commented 8 years ago

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 commented 8 years ago

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.

logsol commented 8 years ago

Does this work now?

mavavilj commented 8 years ago

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 commented 8 years ago

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.

o-g-sus commented 8 years ago

cheers for sharing that information

mavavilj commented 8 years ago

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