I'm trying to figure out how to use the [gpio] external and I'm totally lost on how to install it and then how to use it inside PD on my raspberry pi. I did download the external from Miller Puckette's website but that is about as far as I have been able to get. I would like to be able to configure 4 GPIO pins as inputs and read their state within my PD patch.
Could anyone provide me with any help on how I would go about installing this patch and using it in PD on the pi? Also, I found a thread in the list serve archive where someone had attached a draft of instructions on how to install and use the GPIO external but unfortunately the attached file was not available. Could someone send me these instructions if you have them?
Thanks, Josh
Hi Josh,
The thread you're after is this one: gpio on the raspberry pi from within pd ?
(ooh - big font)
And Jaime's helpfile's attached.
That should do it.
Julian
On 13 June 2013 06:37, Josh Downing jndowning@gmail.com wrote:
I'm trying to figure out how to use the [gpio] external and I'm totally lost on how to install it and then how to use it inside PD on my raspberry pi. I did download the external from Miller Puckette's website but that is about as far as I have been able to get. I would like to be able to configure 4 GPIO pins as inputs and read their state within my PD patch.
Could anyone provide me with any help on how I would go about installing this patch and using it in PD on the pi? Also, I found a thread in the list serve archive where someone had attached a draft of instructions on how to install and use the GPIO external but unfortunately the attached file was not available. Could someone send me these instructions if you have them?
Thanks, Josh
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Meant to add:
Any other issues give us a shout and if I can help, I will.
On 13 June 2013 09:56, Julian Brooks jbeezez@gmail.com wrote:
Hi Josh,
The thread you're after is this one: gpio on the raspberry pi from within pd ?
(ooh - big font)
And Jaime's helpfile's attached.
That should do it.
Julian
On 13 June 2013 06:37, Josh Downing jndowning@gmail.com wrote:
I'm trying to figure out how to use the [gpio] external and I'm totally lost on how to install it and then how to use it inside PD on my raspberry pi. I did download the external from Miller Puckette's website but that is about as far as I have been able to get. I would like to be able to configure 4 GPIO pins as inputs and read their state within my PD patch.
Could anyone provide me with any help on how I would go about installing this patch and using it in PD on the pi? Also, I found a thread in the list serve archive where someone had attached a draft of instructions on how to install and use the GPIO external but unfortunately the attached file was not available. Could someone send me these instructions if you have them?
Thanks, Josh
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
How do I install this external? I can open the gpio-help.pd file in pure data but when I try to open it I get the attached error message (pd_error_message.png). I assume this is because I haven't installed the external. I copied the contents of the pi-externs.tgz file that I downloaded from Miller's site into the following path on my pi: "/home/pi/pd-externals/". Isn't there something else I need to do though to install this so that I can use it in PD?
Also, once I get this installed I want to setup GPIO 17 as an input and then read the state of it. I'm going to alternate between applying 3.3V and GND to the GPIO 17 pin and I would like to see the high/low status of the pin change in pure data. See attached screenshot (gpio_help_configuration.png) for how I configured Jaime's gpio-help.pd file to do this. All I did was change output 1 to output 0 so that GPIO 17 would be configured as an input. If I want to see the status of the pin what will I look at in this script to see the high/low status of the pin? Do I need to modify this script in any other way to be able to see this?
Really appreciate your help! Josh
On Fri, Jun 14, 2013 at 6:21 AM, Julian Brooks jbeezez@gmail.com wrote:
Meant to add:
Any other issues give us a shout and if I can help, I will.
On 13 June 2013 09:56, Julian Brooks jbeezez@gmail.com wrote:
Hi Josh,
The thread you're after is this one: gpio on the raspberry pi from within pd ?
(ooh - big font)
And Jaime's helpfile's attached.
That should do it.
Julian
On 13 June 2013 06:37, Josh Downing jndowning@gmail.com wrote:
I'm trying to figure out how to use the [gpio] external and I'm totally lost on how to install it and then how to use it inside PD on my raspberry pi. I did download the external from Miller Puckette's website but that is about as far as I have been able to get. I would like to be able to configure 4 GPIO pins as inputs and read their state within my PD patch.
Could anyone provide me with any help on how I would go about installing this patch and using it in PD on the pi? Also, I found a thread in the list serve archive where someone had attached a draft of instructions on how to install and use the GPIO external but unfortunately the attached file was not available. Could someone send me these instructions if you have them?
Thanks, Josh
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2013-06-17 22:03, Josh Downing wrote:
How do I install this external? I can open the gpio-help.pd file in pure data but when I try to open it I get the attached error message (pd_error_message.png).
<meta> for the future, would you mind posting the *text* of the error message into your mail, rather than creating a snapshot? it allows users who read their emails in text-based mail readers to understand your question and eventually answer it. also it does not waste bandwidth for no extra information... </meta>
what's the content of gpio.l_i386? what does "ls -l gpio.l_i386" show? what does "ldd gpio.l_i386" show?
(gpio_help_configuration.png) for how I configured Jaime's gpio-help.pd
the main problem you have, is that the object does not create (dashed border), so it doesn't do anything. apart from that, how does your screenshot differ from the original help-patch? i'm not very familiar with the specific help-patch, but i do know a bit of Pd, and might be able to help if i could understand the problem.
fgamsdr IOhannes
"i'm not very familiar with the specific help-patch, but i do know a bit of Pd"
The joy of understatement.
Josh,
sounds like you haven't compiled the external yet.
My memory (and I'm guessing here, don't have a Pi to confirm atm) is this: from the command line cd (change directory) to the gpio folder (wherever you've put it on the pI) and type 'make'. Check the command line doesn't spit any errors and in theory there should be a gpio external sat in the gpio folder at the end of it.
Maybe you've done this already and it's compiled happily?
In that case you need to tell Pd where the external is - a good place to put it would be in the 'externals' folder. puredata.info is your friend here.
Regards,
Julian
On 18 June 2013 08:18, IOhannes m zmoelnig zmoelnig@iem.at wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2013-06-17 22:03, Josh Downing wrote:
How do I install this external? I can open the gpio-help.pd file in pure data but when I try to open it I get the attached error message (pd_error_message.png).
<meta> for the future, would you mind posting the *text* of the error message into your mail, rather than creating a snapshot? it allows users who read their emails in text-based mail readers to understand your question and eventually answer it. also it does not waste bandwidth for no extra information... </meta>
what's the content of gpio.l_i386? what does "ls -l gpio.l_i386" show? what does "ldd gpio.l_i386" show?
(gpio_help_configuration.png) for how I configured Jaime's gpio-help.pd
the main problem you have, is that the object does not create (dashed border), so it doesn't do anything. apart from that, how does your screenshot differ from the original help-patch? i'm not very familiar with the specific help-patch, but i do know a bit of Pd, and might be able to help if i could understand the problem.
fgamsdr IOhannes
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Icedove - http://www.enigmail.net/
iEYEARECAAYFAlHACdQACgkQkX2Xpv6ydvRsAQCgilg7on3ckPDh0CuhnLZdtJtE cCEAoLm6bM3In2+anVbX2tgg6b6VSz8u =81Kk -----END PGP SIGNATURE-----
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Sorry for attaching the pics. Will avoid this in the future.
Julian, you are right, I have not compiled it. I did not know how to do this. When I navigate to the directory that I have unzipped the files ("home/pi/pd-externals/gpio") and then type "make" it prints the following:
cc -DPD -O2 -funroll-loops -fomit-frame-pointer -fno-strict-aliasing -Wall -W -Wshadow -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -I../pd/src -I../../pd/src -I../../../pd/src -I../../../../pd/src -I../../../../../pd/src -m32 -o gpio.o -c gpio.c cc1: error: unrecognized command line option ‘-m32’ make: *** [gpio.l_i386] Error 1
Do you know what this error message could mean? What should I expect as the output from compiling like this? Not sure what I should be looking for. I did notice that this output looks like what is listed in the "makefile.include" that is in the root directory of the zipped archive ("pi-externs.tgz").
Josh
On Tue, Jun 18, 2013 at 5:48 AM, Julian Brooks jbeezez@gmail.com wrote:
"i'm not very familiar with the specific help-patch, but i do know a bit of Pd"
The joy of understatement.
Josh,
sounds like you haven't compiled the external yet.
My memory (and I'm guessing here, don't have a Pi to confirm atm) is this: from the command line cd (change directory) to the gpio folder (wherever you've put it on the pI) and type 'make'. Check the command line doesn't spit any errors and in theory there should be a gpio external sat in the gpio folder at the end of it.
Maybe you've done this already and it's compiled happily?
In that case you need to tell Pd where the external is - a good place to put it would be in the 'externals' folder. puredata.info is your friend here.
Regards,
Julian
On 18 June 2013 08:18, IOhannes m zmoelnig zmoelnig@iem.at wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2013-06-17 22:03, Josh Downing wrote:
How do I install this external? I can open the gpio-help.pd file in pure data but when I try to open it I get the attached error message (pd_error_message.png).
<meta> for the future, would you mind posting the *text* of the error message into your mail, rather than creating a snapshot? it allows users who read their emails in text-based mail readers to understand your question and eventually answer it. also it does not waste bandwidth for no extra information... </meta>
what's the content of gpio.l_i386? what does "ls -l gpio.l_i386" show? what does "ldd gpio.l_i386" show?
(gpio_help_configuration.png) for how I configured Jaime's gpio-help.pd
the main problem you have, is that the object does not create (dashed border), so it doesn't do anything. apart from that, how does your screenshot differ from the original help-patch? i'm not very familiar with the specific help-patch, but i do know a bit of Pd, and might be able to help if i could understand the problem.
fgamsdr IOhannes
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Icedove - http://www.enigmail.net/
iEYEARECAAYFAlHACdQACgkQkX2Xpv6ydvRsAQCgilg7on3ckPDh0CuhnLZdtJtE cCEAoLm6bM3In2+anVbX2tgg6b6VSz8u =81Kk -----END PGP SIGNATURE-----
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Hey Josh,
In the gpio folder, do you have 'gpio.l_arm' ? i386 is for a different processor type and the rpi is arm.
Keep going, you're nearly there:)
Julian
On 18 June 2013 22:37, Josh Downing jndowning@gmail.com wrote:
Sorry for attaching the pics. Will avoid this in the future.
Julian, you are right, I have not compiled it. I did not know how to do this. When I navigate to the directory that I have unzipped the files ("home/pi/pd-externals/gpio") and then type "make" it prints the following:
cc -DPD -O2 -funroll-loops -fomit-frame-pointer -fno-strict-aliasing -Wall -W -Wshadow -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -I../pd/src -I../../pd/src -I../../../pd/src -I../../../../pd/src -I../../../../../pd/src -m32 -o gpio.o -c gpio.c cc1: error: unrecognized command line option ‘-m32’ make: *** [gpio.l_i386] Error 1
Do you know what this error message could mean? What should I expect as the output from compiling like this? Not sure what I should be looking for. I did notice that this output looks like what is listed in the "makefile.include" that is in the root directory of the zipped archive ("pi-externs.tgz").
Josh
On Tue, Jun 18, 2013 at 5:48 AM, Julian Brooks jbeezez@gmail.com wrote:
"i'm not very familiar with the specific help-patch, but i do know a bit of Pd"
The joy of understatement.
Josh,
sounds like you haven't compiled the external yet.
My memory (and I'm guessing here, don't have a Pi to confirm atm) is this: from the command line cd (change directory) to the gpio folder (wherever you've put it on the pI) and type 'make'. Check the command line doesn't spit any errors and in theory there should be a gpio external sat in the gpio folder at the end of it.
Maybe you've done this already and it's compiled happily?
In that case you need to tell Pd where the external is - a good place to put it would be in the 'externals' folder. puredata.info is your friend here.
Regards,
Julian
On 18 June 2013 08:18, IOhannes m zmoelnig zmoelnig@iem.at wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2013-06-17 22:03, Josh Downing wrote:
How do I install this external? I can open the gpio-help.pd file in pure data but when I try to open it I get the attached error message (pd_error_message.png).
<meta> for the future, would you mind posting the *text* of the error message into your mail, rather than creating a snapshot? it allows users who read their emails in text-based mail readers to understand your question and eventually answer it. also it does not waste bandwidth for no extra information... </meta>
what's the content of gpio.l_i386? what does "ls -l gpio.l_i386" show? what does "ldd gpio.l_i386" show?
(gpio_help_configuration.png) for how I configured Jaime's gpio-help.pd
the main problem you have, is that the object does not create (dashed border), so it doesn't do anything. apart from that, how does your screenshot differ from the original help-patch? i'm not very familiar with the specific help-patch, but i do know a bit of Pd, and might be able to help if i could understand the problem.
fgamsdr IOhannes
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Icedove - http://www.enigmail.net/
iEYEARECAAYFAlHACdQACgkQkX2Xpv6ydvRsAQCgilg7on3ckPDh0CuhnLZdtJtE cCEAoLm6bM3In2+anVbX2tgg6b6VSz8u =81Kk -----END PGP SIGNATURE-----
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2013-06-18 23:37, Josh Downing wrote:
cc -DPD -O2 -funroll-loops -fomit-frame-pointer -fno-strict-aliasing -Wall -W -Wshadow -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -I../pd/src -I../../pd/src -I../../../pd/src -I../../../../pd/src -I../../../../../pd/src -m32 -o gpio.o -c gpio.c cc1: error: unrecognized command line option ?-m32? make: *** [gpio.l_i386] Error 1
Do you know what this error message could mean?
it means that the makefile has a compiler flag "-m32" which is not known to the compiler.
What should I expect as the output from compiling like this?
nothing. the build failed.
you could try editing your makefile and removing the "-m32" occurences, and see what you get then.
make a backup of the makefile, before you go ahead.
fgamsrd IOhannes
Thanks for the help guys! So I deleted the "-m32" from the makefile and then everything seemed to build okay. I then added the correct path for the extension in pure data and loaded the "gpio-help.pd" patch without getting an error message. In the gpio-help.pd patch I would click "enable 1" and then click "open 1" and after clicking "open 1" I would get an error message: "/sys/class/gpio/gpio17/value: No such file or directory".
I then realized that I probably needed to install wiringPi. I downloaded this and installed it. However I would still get the previous error message within PD. I then decided to manually try to create the file using commands in LXTerminal. I did this using this command, "echo "17" |sudo tee /sys/class/gpio/export". I then noticed that the gpio17 folder and accompanying files were created. I was also able to correctly read the state of the pin using "gpio readall" command from LXTerminal.
I then loaded the "gpio-help.pd" file again in PD. Now once I click "open 1" instead of the no such file or directory error I get "/sys/class/gpio/gpio17/value: Permision denied" error. Is there someway I can use this GPIO library within the PD visual interface without getting permission denied errors? Also, shouldn't clicking "enable 1" within the gpio-help.pd patch create the "/sys/class/gpio/gpio17" folder and accompanying files? How can I get this to work within PD without having to run the commands from LXTerminal to create the folder/files? Do I need to somehow indicate to pure data the path of wirngPi?
Almost there! Really appreciate your guys patience with me and help on this!
Josh
On Wed, Jun 19, 2013 at 6:31 AM, IOhannes m zmoelnig zmoelnig@iem.atwrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2013-06-18 23:37, Josh Downing wrote:
cc -DPD -O2 -funroll-loops -fomit-frame-pointer -fno-strict-aliasing -Wall -W -Wshadow -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -I../pd/src -I../../pd/src -I../../../pd/src -I../../../../pd/src -I../../../../../pd/src -m32 -o gpio.o -c gpio.c cc1: error: unrecognized command line option ?-m32? make: *** [gpio.l_i386] Error 1
Do you know what this error message could mean?
it means that the makefile has a compiler flag "-m32" which is not known to the compiler.
What should I expect as the output from compiling like this?
nothing. the build failed.
you could try editing your makefile and removing the "-m32" occurences, and see what you get then.
make a backup of the makefile, before you go ahead.
fgamsrd IOhannes -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Icedove - http://www.enigmail.net/
iEYEARECAAYFAlHBlqMACgkQkX2Xpv6ydvSjtACg7y5vI4qGYDwjphUooM/Yt+RZ /KcAoKpb6waukrnp35DZQGFYmP88XAVD =0t/E -----END PGP SIGNATURE-----
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
you need to be root.
start pd with sudo. unless there is a more permanent solution by now?
best,
J
On Wed, Jun 19, 2013 at 6:02 PM, Josh Downing jndowning@gmail.com wrote:
Thanks for the help guys! So I deleted the "-m32" from the makefile and then everything seemed to build okay. I then added the correct path for the extension in pure data and loaded the "gpio-help.pd" patch without getting an error message. In the gpio-help.pd patch I would click "enable 1" and then click "open 1" and after clicking "open 1" I would get an error message: "/sys/class/gpio/gpio17/value: No such file or directory".
I then realized that I probably needed to install wiringPi. I downloaded this and installed it. However I would still get the previous error message within PD. I then decided to manually try to create the file using commands in LXTerminal. I did this using this command, "echo "17" |sudo tee /sys/class/gpio/export". I then noticed that the gpio17 folder and accompanying files were created. I was also able to correctly read the state of the pin using "gpio readall" command from LXTerminal.
I then loaded the "gpio-help.pd" file again in PD. Now once I click "open 1" instead of the no such file or directory error I get "/sys/class/gpio/gpio17/value: Permision denied" error. Is there someway I can use this GPIO library within the PD visual interface without getting permission denied errors? Also, shouldn't clicking "enable 1" within the gpio-help.pd patch create the "/sys/class/gpio/gpio17" folder and accompanying files? How can I get this to work within PD without having to run the commands from LXTerminal to create the folder/files? Do I need to somehow indicate to pure data the path of wirngPi?
Almost there! Really appreciate your guys patience with me and help on this!
Josh
On Wed, Jun 19, 2013 at 6:31 AM, IOhannes m zmoelnig zmoelnig@iem.atwrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2013-06-18 23:37, Josh Downing wrote:
cc -DPD -O2 -funroll-loops -fomit-frame-pointer -fno-strict-aliasing -Wall -W -Wshadow -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -I../pd/src -I../../pd/src -I../../../pd/src -I../../../../pd/src -I../../../../../pd/src -m32 -o gpio.o -c gpio.c cc1: error: unrecognized command line option ?-m32? make: *** [gpio.l_i386] Error 1
Do you know what this error message could mean?
it means that the makefile has a compiler flag "-m32" which is not known to the compiler.
What should I expect as the output from compiling like this?
nothing. the build failed.
you could try editing your makefile and removing the "-m32" occurences, and see what you get then.
make a backup of the makefile, before you go ahead.
fgamsrd IOhannes -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Icedove - http://www.enigmail.net/
iEYEARECAAYFAlHBlqMACgkQkX2Xpv6ydvSjtACg7y5vI4qGYDwjphUooM/Yt+RZ /KcAoKpb6waukrnp35DZQGFYmP88XAVD =0t/E -----END PGP SIGNATURE-----
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Thanks Jaime, that fixed my error problems. No errors now but I can't seem to figure out how to set the patch up to configure GPIO 17 as an input and then to read the state. I modified gpio-help.pd to do this by changing "output 1" to "output 0" (according to the patch output 0 should configure the pin as an input). I then click "enable 1", "open 1", and then "output 0". No error messages but where should I expect to see the high/low state of GPIO 17? Should this be reflected in the bang object in the script (white for low and black for high)? I have the poll input check box checked. When I toggle the voltage on GPIO 17 from 3.3V to GND I do not see anything change in the script. I am able to see the high/low state of the pin 17 change by using the "readall" command from LXTerminal so I know that I'm switching the voltage correctly on the right pin, just not seeing how I get this status in pure data using the gpio-help.pd script. Any thought on how I do this?
Sorry I have very little experience with pure data and am just learning.
Thanks, Josh
On Wed, Jun 19, 2013 at 11:17 AM, Jaime Oliver jaime.oliver2@gmail.comwrote:
you need to be root.
start pd with sudo. unless there is a more permanent solution by now?
best,
J
On Wed, Jun 19, 2013 at 6:02 PM, Josh Downing jndowning@gmail.com wrote:
Thanks for the help guys! So I deleted the "-m32" from the makefile and then everything seemed to build okay. I then added the correct path for the extension in pure data and loaded the "gpio-help.pd" patch without getting an error message. In the gpio-help.pd patch I would click "enable 1" and then click "open 1" and after clicking "open 1" I would get an error message: "/sys/class/gpio/gpio17/value: No such file or directory".
I then realized that I probably needed to install wiringPi. I downloaded this and installed it. However I would still get the previous error message within PD. I then decided to manually try to create the file using commands in LXTerminal. I did this using this command, "echo "17" |sudo tee /sys/class/gpio/export". I then noticed that the gpio17 folder and accompanying files were created. I was also able to correctly read the state of the pin using "gpio readall" command from LXTerminal.
I then loaded the "gpio-help.pd" file again in PD. Now once I click "open 1" instead of the no such file or directory error I get "/sys/class/gpio/gpio17/value: Permision denied" error. Is there someway I can use this GPIO library within the PD visual interface without getting permission denied errors? Also, shouldn't clicking "enable 1" within the gpio-help.pd patch create the "/sys/class/gpio/gpio17" folder and accompanying files? How can I get this to work within PD without having to run the commands from LXTerminal to create the folder/files? Do I need to somehow indicate to pure data the path of wirngPi?
Almost there! Really appreciate your guys patience with me and help on this!
Josh
On Wed, Jun 19, 2013 at 6:31 AM, IOhannes m zmoelnig zmoelnig@iem.atwrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2013-06-18 23:37, Josh Downing wrote:
cc -DPD -O2 -funroll-loops -fomit-frame-pointer -fno-strict-aliasing -Wall -W -Wshadow -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -I../pd/src -I../../pd/src -I../../../pd/src -I../../../../pd/src -I../../../../../pd/src -m32 -o gpio.o -c gpio.c cc1: error: unrecognized command line option ?-m32? make: *** [gpio.l_i386] Error 1
Do you know what this error message could mean?
it means that the makefile has a compiler flag "-m32" which is not known to the compiler.
What should I expect as the output from compiling like this?
nothing. the build failed.
you could try editing your makefile and removing the "-m32" occurences, and see what you get then.
make a backup of the makefile, before you go ahead.
fgamsrd IOhannes -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Icedove - http://www.enigmail.net/
iEYEARECAAYFAlHBlqMACgkQkX2Xpv6ydvSjtACg7y5vI4qGYDwjphUooM/Yt+RZ /KcAoKpb6waukrnp35DZQGFYmP88XAVD =0t/E -----END PGP SIGNATURE-----
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
--
Jaime E Oliver LR www.jaimeoliver.pe
On Jun 19, 2013, at 7:07 PM, Josh Downing wrote:
click "enable 1", "open 1", and then "output 0".
ok.
No error messages but where should I expect to see the high/low state of GPIO 17?
it should come out of the object into a number box or toggle as far as I can remember... put a number box in the outlet of the gpio object.
J
Should this be reflected in the bang object in the script (white for low and black for high)?
I have the poll input check box checked. When I toggle the voltage on GPIO 17 from 3.3V to GND I do not see anything change in the script. I am able to see the high/low state of the pin 17 change by using the "readall" command from LXTerminal so I know that I'm switching the voltage correctly on the right pin, just not seeing how I get this status in pure data using the gpio-help.pd script. Any thought on how I do this?
Sorry I have very little experience with pure data and am just learning.
Thanks, Josh
On Wed, Jun 19, 2013 at 11:17 AM, Jaime Oliver jaime.oliver2@gmail.com wrote: you need to be root.
start pd with sudo. unless there is a more permanent solution by now?
best,
J
On Wed, Jun 19, 2013 at 6:02 PM, Josh Downing jndowning@gmail.com wrote: Thanks for the help guys! So I deleted the "-m32" from the makefile and then everything seemed to build okay. I then added the correct path for the extension in pure data and loaded the "gpio-help.pd" patch without getting an error message. In the gpio-help.pd patch I would click "enable 1" and then click "open 1" and after clicking "open 1" I would get an error message: "/sys/class/gpio/gpio17/value: No such file or directory".
I then realized that I probably needed to install wiringPi. I downloaded this and installed it. However I would still get the previous error message within PD. I then decided to manually try to create the file using commands in LXTerminal. I did this using this command, "echo "17" |sudo tee /sys/class/gpio/export". I then noticed that the gpio17 folder and accompanying files were created. I was also able to correctly read the state of the pin using "gpio readall" command from LXTerminal.
I then loaded the "gpio-help.pd" file again in PD. Now once I click "open 1" instead of the no such file or directory error I get "/sys/class/gpio/gpio17/value: Permision denied" error. Is there someway I can use this GPIO library within the PD visual interface without getting permission denied errors? Also, shouldn't clicking "enable 1" within the gpio-help.pd patch create the "/sys/class/gpio/gpio17" folder and accompanying files? How can I get this to work within PD without having to run the commands from LXTerminal to create the folder/files? Do I need to somehow indicate to pure data the path of wirngPi?
Almost there! Really appreciate your guys patience with me and help on this!
Josh
On Wed, Jun 19, 2013 at 6:31 AM, IOhannes m zmoelnig zmoelnig@iem.at wrote: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2013-06-18 23:37, Josh Downing wrote:
cc -DPD -O2 -funroll-loops -fomit-frame-pointer -fno-strict-aliasing -Wall -W -Wshadow -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -I../pd/src -I../../pd/src -I../../../pd/src -I../../../../pd/src -I../../../../../pd/src -m32 -o gpio.o -c gpio.c cc1: error: unrecognized command line option ?-m32? make: *** [gpio.l_i386] Error 1
Do you know what this error message could mean?
it means that the makefile has a compiler flag "-m32" which is not known to the compiler.
What should I expect as the output from compiling like this?
nothing. the build failed.
you could try editing your makefile and removing the "-m32" occurences, and see what you get then.
make a backup of the makefile, before you go ahead.
fgamsrd IOhannes -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Icedove - http://www.enigmail.net/
iEYEARECAAYFAlHBlqMACgkQkX2Xpv6ydvSjtACg7y5vI4qGYDwjphUooM/Yt+RZ /KcAoKpb6waukrnp35DZQGFYmP88XAVD =0t/E -----END PGP SIGNATURE-----
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
--
Jaime E Oliver LR www.jaimeoliver.pe
Awesome! I got it working! Thanks for all the help!
One more question, does anyone know if you can set the internal pullup/pulldown for the GPIO pins from within PD and if so how you can set this?
Thanks, Josh
On Wed, Jun 19, 2013 at 5:52 PM, J Oliver jaime.oliver2@gmail.com wrote:
On Jun 19, 2013, at 7:07 PM, Josh Downing wrote:
click "enable 1", "open 1", and then "output 0".
ok.
No error messages but where should I expect to see the high/low state of GPIO 17?
it should come out of the object into a number box or toggle as far as I can remember... put a number box in the outlet of the gpio object.
J
Should this be reflected in the bang object in the script (white for low and black for high)?
I have the poll input check box checked. When I toggle the voltage on GPIO 17 from 3.3V to GND I do not see anything change in the script. I am able to see the high/low state of the pin 17 change by using the "readall" command from LXTerminal so I know that I'm switching the voltage correctly on the right pin, just not seeing how I get this status in pure data using the gpio-help.pd script. Any thought on how I do this?
Sorry I have very little experience with pure data and am just learning.
Thanks, Josh
On Wed, Jun 19, 2013 at 11:17 AM, Jaime Oliver jaime.oliver2@gmail.comwrote:
you need to be root.
start pd with sudo. unless there is a more permanent solution by now?
best,
J
On Wed, Jun 19, 2013 at 6:02 PM, Josh Downing jndowning@gmail.comwrote:
Thanks for the help guys! So I deleted the "-m32" from the makefile and then everything seemed to build okay. I then added the correct path for the extension in pure data and loaded the "gpio-help.pd" patch without getting an error message. In the gpio-help.pd patch I would click "enable 1" and then click "open 1" and after clicking "open 1" I would get an error message: "/sys/class/gpio/gpio17/value: No such file or directory".
I then realized that I probably needed to install wiringPi. I downloaded this and installed it. However I would still get the previous error message within PD. I then decided to manually try to create the file using commands in LXTerminal. I did this using this command, "echo "17" |sudo tee /sys/class/gpio/export". I then noticed that the gpio17 folder and accompanying files were created. I was also able to correctly read the state of the pin using "gpio readall" command from LXTerminal.
I then loaded the "gpio-help.pd" file again in PD. Now once I click "open 1" instead of the no such file or directory error I get "/sys/class/gpio/gpio17/value: Permision denied" error. Is there someway I can use this GPIO library within the PD visual interface without getting permission denied errors? Also, shouldn't clicking "enable 1" within the gpio-help.pd patch create the "/sys/class/gpio/gpio17" folder and accompanying files? How can I get this to work within PD without having to run the commands from LXTerminal to create the folder/files? Do I need to somehow indicate to pure data the path of wirngPi?
Almost there! Really appreciate your guys patience with me and help on this!
Josh
On Wed, Jun 19, 2013 at 6:31 AM, IOhannes m zmoelnig zmoelnig@iem.atwrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 2013-06-18 23:37, Josh Downing wrote:
cc -DPD -O2 -funroll-loops -fomit-frame-pointer -fno-strict-aliasing -Wall -W -Wshadow -Wstrict-prototypes -Wno-unused -Wno-parentheses -Wno-switch -I../pd/src -I../../pd/src -I../../../pd/src -I../../../../pd/src -I../../../../../pd/src -m32 -o gpio.o -c gpio.c cc1: error: unrecognized command line option ?-m32? make: *** [gpio.l_i386] Error 1
Do you know what this error message could mean?
it means that the makefile has a compiler flag "-m32" which is not known to the compiler.
What should I expect as the output from compiling like this?
nothing. the build failed.
you could try editing your makefile and removing the "-m32" occurences, and see what you get then.
make a backup of the makefile, before you go ahead.
fgamsrd IOhannes -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Icedove - http://www.enigmail.net/
iEYEARECAAYFAlHBlqMACgkQkX2Xpv6ydvSjtACg7y5vI4qGYDwjphUooM/Yt+RZ /KcAoKpb6waukrnp35DZQGFYmP88XAVD =0t/E -----END PGP SIGNATURE-----
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
--
Jaime E Oliver LR www.jaimeoliver.pe
Hello. I found this thread and I am trying to compile the on the raspberry pi. I think I managed to but I was wondering where the gpio-help.pd files mentioned exist .
Best
Ingirafn
Hi Ingirafn,
This is the one that Jaime put together.
Best of luck with it all,
Julian
On 12 November 2013 11:20, Ingirafn Steinarsson ingirafn@this.is wrote:
Hello. I found this thread and I am trying to compile the on the raspberry pi. I think I managed to but I was wondering where the gpio-help.pd files mentioned exist .
Best
Ingirafn
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/ listinfo/pd-list
Hi, I would like to ask about the compiling. I belived I compiled the code. No warning came up while doing it. I took out the -m32 with the # symbol, like here.
# ----------------------- LINUX i386 and ia64 -----------------------
l_i386: $(NAME).l_i386 l_ia64: $(NAME).l_ia64
.SUFFIXES: .l_i386 .l_ia64 .l_arm
LINUXCFLAGS = -DPD -O2 -funroll-loops -fomit-frame-pointer
-fno-strict-aliasing -Wall -W -Wshadow -Wstrict-prototypes
-Wno-unused -Wno-parentheses -Wno-switch $(CFLAGS)
UNIXINCLUDE = -I../pd/src -I../../pd/src -I../../../pd/src
-I../../../../pd/src -I../../../../../pd/src
LINUXINCLUDE = $(UNIXINCLUDE)
#tek ut allan i386
#.c.l_i386: # $(CC) $(LINUXCFLAGS) $(LINUXINCLUDE) -m32 -o $*.o -c $*.c # $(CC) -m32 -shared -o $*.l_i386 $*.o -lc -lm # strip --strip-unneeded $*.l_i386 # rm -f $*.o
Then when I run the help file I get this error code.
/home/pi/pure/pi-externs/gpio/gpio.l_i386: /home/pi/pure/pi-externs/gpio/gpio.l_i386: cannot open shared object file: No such file or directory gpio 17 ... couldn't create
Where is the fault?
Best
Ingirafn
On 11/12/2013 12:31 PM, Julian Brooks wrote:
Hi Ingirafn,
This is the one that Jaime put together.
Best of luck with it all,
Julian
On 12 November 2013 11:20, Ingirafn Steinarsson <ingirafn@this.is mailto:ingirafn@this.is> wrote:
Hello. I found this thread and I am trying to compile the on the raspberry pi. I think I managed to but I was wondering where the gpio-help.pd files mentioned exist . Best Ingirafn _______________________________________________ Pd-list@iem.at <mailto:Pd-list@iem.at> mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
The rpi uses arm architecture so you should be building for .l_arm
Martin
On 2013-11-12 15:00, Ingirafn Steinarsson wrote:
Hi, I would like to ask about the compiling. I belived I compiled the code. No warning came up while doing it. I took out the -m32 with the # symbol, like here.
# ----------------------- LINUX i386 and ia64 -----------------------
l_i386: $(NAME).l_i386 l_ia64: $(NAME).l_ia64
.SUFFIXES: .l_i386 .l_ia64 .l_arm
LINUXCFLAGS = -DPD -O2 -funroll-loops -fomit-frame-pointer
-fno-strict-aliasing -Wall -W -Wshadow -Wstrict-prototypes
-Wno-unused -Wno-parentheses -Wno-switch $(CFLAGS)UNIXINCLUDE = -I../pd/src -I../../pd/src -I../../../pd/src
-I../../../../pd/src -I../../../../../pd/src LINUXINCLUDE = $(UNIXINCLUDE)#tek ut allan i386
#.c.l_i386: # $(CC) $(LINUXCFLAGS) $(LINUXINCLUDE) -m32 -o $*.o -c $*.c # $(CC) -m32 -shared -o $*.l_i386 $*.o -lc -lm # strip --strip-unneeded $*.l_i386 # rm -f $*.o
Then when I run the help file I get this error code.
/home/pi/pure/pi-externs/gpio/gpio.l_i386: /home/pi/pure/pi-externs/gpio/gpio.l_i386: cannot open shared object file: No such file or directory gpio 17 ... couldn't create
Where is the fault?
Best
Ingirafn
On 11/12/2013 12:31 PM, Julian Brooks wrote:
Hi Ingirafn,
This is the one that Jaime put together.
Best of luck with it all,
Julian
On 12 November 2013 11:20, Ingirafn Steinarsson <ingirafn@this.is mailto:ingirafn@this.is> wrote:
Hello. I found this thread and I am trying to compile the on the raspberry pi. I think I managed to but I was wondering where the gpio-help.pd files mentioned exist . Best Ingirafn _______________________________________________ Pd-list@iem.at <mailto:Pd-list@iem.at> mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list