$ pd -d 5
set pd_whichmidiapi 0
pdtk_watchdog
set ::tmp_path {}
lappend ::tmp_path {/home/ubuntu/pdlua}
set ::sys_searchpath $::tmp_path
set ::tmp_path {}
lappend ::tmp_path {/home/ubuntu/pd-externals}
lappend ::tmp_path {/usr/local/lib/pd-externals}
lappend ::tmp_path {/usr/local/lib/pd/extra}
set ::sys_staticpath $::tmp_path
set ::startup_flags {}
set ::startup_libraries {}
lappend ::startup_libraries {pdlua}
pdtk_pd_startup 0 45 0 {} { {OSS 2} {ALSA 1} {portaudio 4} } { {OSS-MIDI
0} {ALSA-MIDI 1} } {DejaVu Sans Mono} bold
set pd_whichapi 1
set pd_whichmidiapi 0
::pdwindow::logpost {} 3 {pdlua 0.7.2 (GPL) 2014 Martin Peach, based on
}
::pdwindow::logpost {} 3 {lua 0.6~svn (GPL) 2008 Claude Heiland-Allen
<[email protected]>
}
::pdwindow::logpost {} 3 {pdlua: compiled for pd-0.45 on Jul 7 2014
11:16:47
}
::pdwindow::logpost {} 3 {Using lua version 5.2
}
When I open hello-help.pd this is printed hundreds of times:
::pdwindow::logpost {} 1 {lua: internal error in `pd._setrequirepath':
attempt to call a nil value
}
::pdwindow::logpost {} 1 {lua: internal error in `pd._clearrequirepath':
attempt to call a nil value
}
and then:
::pdwindow::logpost {} 1 {maximum object loading depth 1000 reached
}
::pdwindow::post {}
::pdwindow::post { }
::pdwindow::post {hello}
::pdwindow::post {
}
::pdwindow::logpost {} 1 {... couldn't create
}
::pdwindow::post {pdlua: already loaded
}
Le 07/07/2014 15:52, Martin Peach a écrit :
On 2014-07-07 07:45, patrice colet wrote:
Le 06/07/2014 16:09, Martin Peach a écrit :
it compiles only if put -llua5.2 and -I/usr/include/lua5.2
-I/usr/local/inlude/pd in lua flags from linux section,
here is the compiling process:
/pdlua/src$ make
compiling pdlua version 0.6
cflags are -fPIC -threepic
optcflags are -O6 -funroll-loops -fomit-frame-pointer
luacflags are -DVERSION='0.6' -I/usr/include/lua5.2
-I/usr/local/include/pd
ldflags are -Wl,--export-dynamic -shared -fPIC
libs are -llua5.2 -lc
cc -fPIC -threepic -O6 -funroll-loops -fomit-frame-pointer
-DVERSION='"0.6"' -I/usr/include/lua5.2 -I/usr/local/include/pd -o
"pdlua.o" -c "pdlua.c"
pdlua.c: In function ‘pdlua_setup’:
pdlua.c:1773:5: warning: format not a string literal and no format
arguments [-Wformat-security]
pdlua.c:1774:5: warning: format not a string literal and no format
arguments [-Wformat-security]
pdlua.c:1775:5: warning: format not a string literal and no format
arguments [-Wformat-security]
pdlua.c:1776:5: warning: format not a string literal and no format
arguments [-Wformat-security]
linking pdlua with -llua5.2 -lc
cc -Wl,--export-dynamic -shared -fPIC -o "pdlua.pd_linux" "pdlua.o"
-llua5.2 -lc
chmod a-x "pdlua.pd_linux"
So it compiled. What do you get when it loads? It should print the
version, but you may need to set the debug level in the console.
Martin
_______________________________________________
[email protected] mailing list
UNSUBSCRIBE and account-management ->
http://lists.puredata.info/listinfo/pd-list