[Scilab-users] Xcos custom block - icon path problem
pf
Peter.Fabo at dynamag.com
Sat Oct 19 08:41:57 CEST 2013
Hello Clément,
> As a reference, please take a look at the xcos_toolbox_skeleton on the
> SCI/contrib directory.
sorry for spam, I tried used oridinal xcos_toolbox_skeleton template
(ver. 5.4.0-1-src, scilab 5.5.0, ubuntu 12.04), but I get some problems,
probably I made some mistakes:
1. building is without problems (see below)
2. loading (xcos_toolbox_skeleton.start executed from SciNotes - is this
correct ?) generate error message
==================================
Temporary problem solution
I have created simple (a.e. MyBlock.start) script (in */etc) like
LIB_HOME=get_absolute_file_path('MyBlocks.start');
exec(LIB_HOME+'../src/c/'+'loader.sce');
exec(LIB_HOME+'../macros/'+'TestBlock.sci');
pal = xcosPal("MyPalette");
pal = xcosPalAddBlock(pal,TestBlock("define"),[], LIB_HOME
+"../images/svg/TestBlock.svg");
xcosPalAdd(pal);
With regards
Peter
==============================================
building
==============================================
->exec('/home/pf/Work/xcos_toolbox_skeleton/builder.sce', -1)
Building macros...
-- Creation of [xcos_toolbox_skeletonlib] (Macros) --
genlib: Processing file: TBX_MUT_STYLE.sci
genlib: Processing file: TBX_SUM_c.sci
genlib: Regenerate names and lib
Building blocks...
Building sources...
Generate a loader file
Generate a Makefile
ilib_gen_Make: Copy compilation files (Makefile*, libtool...) to
TMPDIR
ilib_gen_Make: Copy block_sum.c to TMPDIR
ilib_gen_Make: Copy business_sum.c to TMPDIR
ilib_gen_Make: configure : Generate Makefile.
ilib_gen_Make: Modification of the Makefile in TMPDIR.
Running the Makefile
Generate a cleaner file
Building gateway...
Generate a gateway file
Generate a loader file
Generate a Makefile
ilib_gen_Make: Copy compilation files (Makefile*, libtool...) to
TMPDIR
ilib_gen_Make: Copy libxcos_toolbox_skeleton_c.c to TMPDIR
ilib_gen_Make: Copy sci_tbx_sum.c to TMPDIR
ilib_gen_Make: configure : Generate Makefile.
ilib_gen_Make: Modification of the Makefile in TMPDIR.
Running the makefile
Generate a cleaner file
Generating loader_gateway.sce...
Generating cleaner_gateway.sce...
Building help...
Building the master document:
/home/pf/Work/xcos_toolbox_skeleton/help/en_US
Building the manual file [javaHelp]
in /home/pf/Work/xcos_toolbox_skeleton/help/en_US.
Generating loader.sce...
Generating unloader.sce...
Generating cleaner.sce...
==============================================
starting & loading
==============================================
-->exec('/home/pf/Work/xcos_toolbox_skeleton/etc/xcos_toolbox_skeleton.start', -1)
Start Xcos toolbox skeleton
Load macros
Load palette
Load simulations functions
Load gateways
Load help
Load demos
xcos_skeletonlib = startModule();
!--error 13
Redefining permanent variable.
at line 89 of exec file called by :
exec('/home/pf/Work/xcos_toolbox_skeleton/etc/xcos_toolbox_skeleton.start', -1)
==============================================
using blocks
==============================================
Undefined variable: TBX_MUT_STYLE
Undefined variable: TBX_SUM_c
More information about the users
mailing list