I have found the solution.
The mklibs.py which you get when using the new Makefile is not correct. I found out that the version I had from my previous tree is working correctly.
Now you can edit Makefile.am (in cdk dir) so that plugins are copied before mklibs.py will run,
example,
this is how it is :
Code:
@$(PYTHON) $(flashprefix)/mklibs.py --target $(target) --ldlib ld.so.1 --libc-extras-dir $(targetprefix)/lib/libc_pic \
-d $(flashprefix)/root/lib \
-D -L $(targetprefix)/lib \
--root $(flashprefix)/root \
`find $(flashprefix)/root/bin/ -path "*bin/?*"` \
`find $(flashprefix)/root/lib/ -name "libnss_*"` \
`find $(flashprefix)/root/lib/tuxbox/ -name "*.so" -type f` \
`find $(flashprefix)/root/sbin/ -path "*sbin/?*"`
@if [ -f $(flashprefix)/.part_plugin_ngrabstartstop ] ; then \
cp $(targetprefix)/lib/tuxbox/plugins/ngrab*.so $(flashprefix)/root/lib/tuxbox/plugins/ ; \
cp $(targetprefix)/lib/tuxbox/plugins/ngrab*.cfg $(flashprefix)/root/lib/tuxbox/plugins/ ; \
fi
and this is how it now can be so you won't have unresolved externals in your plugin ;-)
Code:
@if [ -f $(flashprefix)/.part_plugin_ngrabstartstop ] ; then \
cp $(targetprefix)/lib/tuxbox/plugins/ngrab*.so $(flashprefix)/root/lib/tuxbox/plugins/ ; \
cp $(targetprefix)/lib/tuxbox/plugins/ngrab*.cfg $(flashprefix)/root/lib/tuxbox/plugins/ ; \
fi
@$(PYTHON) $(flashprefix)/mklibs.py --target $(target) --ldlib ld.so.1 --libc-extras-dir $(targetprefix)/lib/libc_pic \
-d $(flashprefix)/root/lib \
-D -L $(targetprefix)/lib \
--root $(flashprefix)/root \
`find $(flashprefix)/root/bin/ -path "*bin/?*"` \
`find $(flashprefix)/root/lib/ -name "libnss_*"` \
`find $(flashprefix)/root/lib/tuxbox/ -name "*.so" -type f` \
`find $(flashprefix)/root/sbin/ -path "*sbin/?*"`
I hope this is clear for anybody
I have attached it on this message for everybody ;-)
Peter