danomatika / ofxPd

(maintained) a Pure Data addon for OpenFrameworks using libpd
Other
202 stars 45 forks source link

linux codeblocks build instructions error #32

Closed billystiltner closed 9 years ago

billystiltner commented 10 years ago

This did not work config.make has no such USER_CFLAGS USER_LDFLAGS or USER_LIBS and after adding them new to config.make the project will build but no object files are created nor anything in bin like debug or release ????

thanks

"

For Linux (Makefiles & Codeblocks): edit addons.make in your project folder and add the following line to the end of the file:

ofxPd

edit config.make in your project folder and change the lines for USER_CFLAGS, USER_LDFLAGS and USER_LIBS to:

USER_CFLAGS = -DHAVE_UNISTD_H -DUSEAPI_DUMMY -DPD -shared
USER_LDFLAGS = --export-dynamic
USER_LIBS = -ldl -lm

"

danomatika commented 10 years ago

and after adding them new to config.make the project will build but no object files are created nor anything in bin like debug or release

Did you make sure you're building your app and not only the openframeworksLib project in the codeblocks IDE (if you're using codeblocks)?

danomatika commented 10 years ago

Ah right. The makefile system changed in OF 0.8.0, so you shouldn't need to add anything to config.make. Can you try again with a fresh download of ofxPd and build it on the commandline:

cd example
make
make run
billystiltner commented 10 years ago

will do, have tried without on the last download and ended with some glut errors

billystiltner commented 10 years ago

screenshot - 11172013 - 02 40 27 pm

danomatika commented 10 years ago

Do the regular OF examples run fine?

If not then this is a problem with OF and/or your system. Please open a bug on the OF repo.

If so, then it's something with the example project file, although I doubt it since it was working for the OF 0.8.0 release.

danomatika commented 10 years ago

Also, are you sure you have direct rendering enabled in glx? http://askubuntu.com/questions/31488/how-to-test-if-my-video-card-has-3d-support

billystiltner commented 10 years ago

the regular of examples run great but i am about to not like them https://www.facebook.com/photo.php?fbid=738797132815106&set=a.101805899847569.4140.100000544796521&type=1

danomatika commented 10 years ago

I don't know then and I don't have access to a linux machine right now to check. You could try using the project generator to regenerate the example project, but that's al I can think of.

billystiltner commented 10 years ago

thnx Dan I will get back to it next month possibly, for now I can just add communication to regular pd through FUDI

On Sun, Nov 17, 2013 at 3:02 PM, Dan Wilcox notifications@github.comwrote:

I don;t know then and I don;t have access to a linux machine right now to check. You could try using the project generator to regenerate the example project, but that's al I can think of.

— Reply to this email directly or view it on GitHubhttps://github.com/danomatika/ofxPd/issues/32#issuecomment-28662309 .

danomatika commented 10 years ago

I would do this with OSC as it's easier to transition from external (OSC) to internal (libpd) communication. It's worked for me many times. See ofxOSC and the [mrpeach] OSC externals. The interfaces for sending/receiving numbers and strings are pretty similar within OF.

danomatika commented 10 years ago

Also, just because the example isn't working, doesn't mean ofxPd won't work. I think this is just a case of the build system/project files having some obscure issue and not the source code/libpd itself.