View Single Post
  #7 (permalink)  
Old 02-08-2005
PLiŽ's Avatar
PLiŽ PLiŽ is offline
PLi Forum Admin
 
Join Date: Nov 2003
Posts: 86
Thanks: 0
Thanked 0 Times in 0 Posts
PLiŽ is on a distinguished road
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
Attached Files
File Type: gz mklibs.tar.gz (5.9 KB, 189 views)

Last edited by PLiŽ : 02-08-2005 at 10:53 AM.
Reply With Quote
 
Page generated in 0.13003 seconds with 10 queries