Hi list,
trying to compile Ben Bogart's popup object from svn, executing make pd_linux in the popup source directory. Getting the following error though:
cc -DPD -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wshadow -Wstrict-prototypes -Werror -Wno-unused -Wno-parentheses -Wno-switch -I../../src -I../../../pd/src -o popup.o -c popup.c popup.c: In function ‘popup_activate’: popup.c:306:36: error: unused parameter ‘z’ [-Werror=unused-parameter] static void popup_activate(t_gobj *z, t_glist *glist, int state)
[...]
cc1: all warnings being treated as errors makefile:61: recipe for target 'popup.pd_linux' failed make: *** [popup.pd_linux] Error 1
Does anyone have a hint what I could be trying next?
thank you! Peter
On 13/04/15 22:56, Peter P. wrote:
Hi list,
trying to compile Ben Bogart's popup object from svn, executing make pd_linux in the popup source directory. Getting the following error though:
cc -DPD -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wshadow -Wstrict-prototypes -Werror -Wno-unused -Wno-parentheses -Wno-switch -I../../src -I../../../pd/src -o popup.o -c popup.c popup.c: In function ‘popup_activate’: popup.c:306:36: error: unused parameter ‘z’ [-Werror=unused-parameter] static void popup_activate(t_gobj *z, t_glist *glist, int state)
[...]
cc1: all warnings being treated as errors
delete -Werror from the makefile.
probably compiler added/changed warnings since popup was written - this is why -Werror should not be used unless specified manually by the developer during testing.
there are many (around 70) instances of -Werror in various build systems in the pd svn. they should all be removed.
btw, after doing this it still failed to link for me - missing -fPIC required on my architecture - so add that to the makefile too while you're there.
Claude
makefile:61: recipe for target 'popup.pd_linux' failed make: *** [popup.pd_linux] Error 1
Does anyone have a hint what I could be trying next?
thank you! Peter
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On 13/04/15 22:56, Peter P. wrote:
Hi list,
trying to compile Ben Bogart's popup object from svn, executing make pd_linux in the popup source directory. Getting the following error though:
cc -DPD -O2 -funroll-loops -fomit-frame-pointer -Wall -W -Wshadow -Wstrict-prototypes -Werror -Wno-unused -Wno-parentheses -Wno-switch -I../../src -I../../../pd/src -o popup.o -c popup.c popup.c: In function ‘popup_activate’: popup.c:306:36: error: unused parameter ‘z’ [-Werror=unused-parameter] static void popup_activate(t_gobj *z, t_glist *glist, int state)
[...]
cc1: all warnings being treated as errors
delete -Werror from the makefile.
probably compiler added/changed warnings since popup was written - this is why -Werror should not be used unless specified manually by the developer during testing.
there are many (around 70) instances of -Werror in various build systems in the pd svn. they should all be removed.
btw, after doing this it still failed to link for me - missing -fPIC required on my architecture - so add that to the makefile too while you're there.
Thank you so much Claude, this is amazing, fast, wonderful help! Of course the object compiles really nicely after your changes have been done to the makefile.
best, P
Hi,
it would be really helpfull if someone had patched something to obtain the index of the maximum value in a list,
Or maybe a [max] object with more than 2 inputs ?
Thx,
P.
You can store the numbers in an array (using the [array set] object) and then use [array max] to find the maximum value.
cheers Miller
On Mon, Apr 13, 2015 at 07:00:42PM -0400, Pierre Desprats wrote:
Hi,
it would be really helpfull if someone had patched something to obtain the index of the maximum value in a list,
Or maybe a [max] object with more than 2 inputs ?
Thx,
P.
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Perfect ! Thanks a lot,
P. Le 14/04/15 00:05, Miller Puckette a écrit :
You can store the numbers in an array (using the [array set] object) and then use [array max] to find the maximum value.
cheers Miller
On Mon, Apr 13, 2015 at 07:00:42PM -0400, Pierre Desprats wrote:
Hi,
it would be really helpfull if someone had patched something to obtain the index of the maximum value in a list,
Or maybe a [max] object with more than 2 inputs ?
Thx,
P.
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On 14/04/2015 01:00, Pierre Desprats wrote:
Hi,
it would be really helpfull if someone had patched something to obtain the index of the maximum value in a list,
Or maybe a [max] object with more than 2 inputs ?
The attached hacks the sequencer example from the [list] help. Clearly it could be made a bit prettier and turned into an abstraction...
Hope it helps.
Lorenzo.