Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

linux codeblocks build instructions error #32

Closed
billystiltner opened this issue Nov 15, 2013 · 11 comments
Closed

linux codeblocks build instructions error #32

billystiltner opened this issue Nov 15, 2013 · 11 comments

Comments

@billystiltner
Copy link

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
Copy link
Owner

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
Copy link
Owner

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
Copy link
Author

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

@billystiltner
Copy link
Author

screenshot - 11172013 - 02 40 27 pm

@danomatika
Copy link
Owner

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
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

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
Copy link
Author

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//issues/32#issuecomment-28662309
.

@danomatika
Copy link
Owner

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants