[Scilab-users] Fwd: Error installing HART toolbox in ubuntu14.04 LTS
Jegan Amirthalingam
ecejegan at gmail.com
Fri Sep 19 06:00:51 CEST 2014
Hi Pablo,
Thanks for helping me out... i installed the libportaudio-dev
package,facing a new error again....
root at SCADTPC:/usr/lib/hart/hart_0.4.6#* dpkg -L libportaudio-dev*
/.
/usr
/usr/lib
/usr/lib/libportaudio.a
/usr/lib/libportaudio.la
/usr/include
/usr/include/portaudio.h
/usr/share
/usr/share/doc
/usr/share/doc/libportaudio-dev
/usr/share/doc/libportaudio-dev/copyright
/usr/share/doc/libportaudio-dev/changelog.Debian.gz
/usr/lib/libportaudio.so
root at SCADTPC:/usr/lib/hart/hart_0.4.6# *dpkg -l libportaudio-dev*
Desired=Unknown/Install/Remove/Purge/Hold
|
Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version
Architecture Description
+++-==============================-====================-====================-=================================================================
ii libportaudio-dev 18.1-7.1
i386 Portable audio I/O - development files
root at SCADTPC:/usr/lib/hart/hart_0.4.6#
root at SCADTPC:/usr/lib/hart/hart_0.4.6# *make*
echo "execute builder.sce in scilab"
execute builder.sce in scilab
/usr/bin/scilab -nw -nb -f prepare_toolbox.sce;
libEGL warning: failed to create a pipe screen for i965
-- Creation of [baselib] (Macros) --
genlib: Processing file: copynewerfile.sci
genlib: Processing file: guimaker.sci
genlib: Processing file: hart_edit_scicosblock.sci
genlib: Processing file: hart_module_creator.sci
genlib: Processing file: help_from_scicosblock.sci
genlib: Processing file: inputui.sci
genlib: Regenerate names and lib
Build modules
Preparing module: RTAI
Error in comedi module! Could not found libcomedi.so!
Not able to build module: comedi
Not able to build module: daqmx
Preparing module: hart_base
Preparing module: portaudio
rtpreempt-module will not build, as RTAI is installed! But it is possible
to use rtpreempt codegeneration besides RTAI!
Not able to build module: rtpreempt
/usr/bin/scilab -nw -nb -f builder.sce;
libEGL warning: failed to create a pipe screen for i965
Building macros...
-- Creation of [baselib] (Macros) --
genlib: Processing file: copynewerfile.sci
genlib: Processing file: guimaker.sci
genlib: Processing file: hart_edit_scicosblock.sci
genlib: Processing file: hart_module_creator.sci
genlib: Processing file: help_from_scicosblock.sci
genlib: Processing file: inputui.sci
genlib: Regenerate names and lib
-- Creation of [RtaiCodeGenlib] (Macros) --
-- Creation of [RTAIlib] (Macros) --
Building blocks...
-- Creation of [hart_baselib] (Macros) --
Building blocks...
-- Creation of [portaudiolib] (Macros) --
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 getstr.c to TMPDIR
ilib_gen_Make: Copy serial_linux.cpp to TMPDIR
ilib_gen_Make: Copy rtai_sinus.c to TMPDIR
ilib_gen_Make: Copy rtai_square.c to TMPDIR
ilib_gen_Make: Copy rtai_step.c to TMPDIR
ilib_gen_Make: Copy hart_soft_realtime.c to TMPDIR
ilib_gen_Make: Copy hart_par2ser.c to TMPDIR
ilib_gen_Make: Copy hart_ser2par.c to TMPDIR
ilib_gen_Make: Copy iir_filter.c to TMPDIR
ilib_gen_Make: Copy hart_filtfilt.c to TMPDIR
ilib_gen_Make: Copy hart_socket.c to TMPDIR
ilib_gen_Make: Copy hart_socketin.c to TMPDIR
ilib_gen_Make: Copy hart_flagtest.c to TMPDIR
ilib_gen_Make: Copy hart_portaudio_in.c to TMPDIR
ilib_gen_Make: Copy hart_portaudio_out.c to TMPDIR
ilib_gen_Make: configure : Generate Makefile.
ilib_gen_Make: Modification of the Makefile in TMPDIR.
Running the Makefile
* !--error 10000 ilib_compile: An error occurred during the compilation:*
hart_par2ser.c: In function 'init':
hart_par2ser.c:43:17: warning: incompatible implicit declaration of
built-in function 'printf' [enabled by default]
printf("par2ser: ipar error\n");
^
hart_ser2par.c: In function 'init':
hart_ser2par.c:43:3: warning: incompatible implicit declaration of built-in
function 'printf' [enabled by default]
printf("ser2par: ipar error\n");
^
iir_filter.c: In function 'dumpIIRfiltToFile':
iir_filter.c:628:3: warning: format '%s' expects argument of type 'char *',
but argument 3 has type 'int' [-Wformat=]
fprintf(fid, "# %s", ctime(&now));
^
hart_flagtest.c: In function 'init':
hart_flagtest.c:35:3: warning: incompatible implicit declaration of
built-in function 'printf' [enabled by default]
printf("Flag 4: initalisation, t=%f\n",get_scicos_time());
^
hart_flagtest.c:35:3: warning: format '%f' expects argument of type
'double', but argument 2 has type 'int' [-Wformat=]
hart_flagtest.c: In function 'state':
hart_flagtest.c:62:6: warning: incompatible implicit declaration of
built-in function 'printf' [enabled by default]
printf("Flag 0: update state, step=%d,
t=%f\n",comdev->step,comdev->time);
^
hart_flagtest.c: In function 'in':
hart_flagtest.c:69:6: warning: incompatible implicit declaration of
built-in function 'printf' [enabled by default]
printf(" Flag 2 ");
^
hart_flagtest.c: In function 'inout':
hart_flagtest.c:83:6: warning: incompatible implicit declaration of
built-in function 'printf' [enabled by default]
printf("Flag 1: update output, step=%d,
t=%f\n",comdev->step,comdev->time);
^
hart_flagtest.c: In function 'eventout':
hart_flagtest.c:104:6: warning: incompatible implicit declaration of
built-in function 'printf' [enabled by default]
printf("Flag 3: update event output, step=%d,
t=%f\n",comdev->step,comdev->time);
^
hart_flagtest.c: In function 'end':
hart_flagtest.c:118:3: warning: incompatible implicit declaration of
built-in function 'printf' [enabled by default]
printf("Flag 4: ending, step=%d, t=%f\n",comdev->step,comdev->time);
^
hart_portaudio_in.c:45:5: error: unknown type name 'PaStreamParameters'
PaStreamParameters inputParameters;
^
hart_portaudio_in.c:46:5: error: unknown type name 'PaStreamParameters'
PaStreamParameters outputParameters;
^
hart_portaudio_in.c:60:28: error: unknown type name
'PaStreamCallbackTimeInfo'
const PaStreamCallbackTimeInfo* timeInfo,
^
hart_portaudio_in.c:61:28: error: unknown type name 'PaStreamCallbackFlags'
PaStreamCallbackFlags statusFlags,
^
hart_portaudio_in.c: In function 'init':
hart_portaudio_in.c:175:28: error: request for member 'device' in something
not a structure or union
comdev->inputParameters.device = Pa_GetDefaultInputDevice(); /*
default input device */
^
hart_portaudio_in.c:176:32: error: request for member 'device' in something
not a structure or union
if (comdev->inputParameters.device == paNoDevice) {
^
hart_portaudio_in.c:184:28: error: request for member 'channelCount' in
something not a structure or union
comdev->inputParameters.channelCount =
comdev->channels; /* stereo input */
^
hart_portaudio_in.c:185:28: error: request for member 'sampleFormat' in
something not a structure or union
comdev->inputParameters.sampleFormat = PA_SAMPLE_TYPE;
^
hart_portaudio_in.c:186:28: error: request for member 'suggestedLatency' in
something not a structure or union
comdev->inputParameters.suggestedLatency = Pa_GetDeviceInfo(
comdev->inputParameters.device )->defaultLowInputLatency;
^
hart_portaudio_in.c:186:89: error: request for member 'device' in something
not a structure or union
comdev->inputParameters.suggestedLatency = Pa_at line 129 of
function ilib_compile called by :
at line 94 of function ilib_for_link called by :
at line 28 of function tbx_build_src called by :
tbx_build_src(names, files, 'c', src_c_path
,libs,ldflags,cflags,fflags,cc,libname);
at line 24 of exec file called by :
at line 13 of function tbx_builder called by :
at line 49 of function tbx_builder_src_lang called by :
tbx_builder_src_lang('c', src_dir);
at line 3 of exec file called by : dpkg -l libportaudio-dev
at line 13 of function tbx_builder called by :
at line 32 of function tbx_builder_src called by :
tbx_builder_src(toolbox_dir);
at line 18 of exec file called by :
exec('SCI/etc/scilab.start',-1);;exec('builder.sce',-1)
-->
Thank you...waiting for u r reply...
regards | Jegan
On Fri, Sep 19, 2014 at 12:46 AM, Pablo Fonovich <pablo_f_7 at hotmail.com>
wrote:
> I think the exact command was:
> "apt-get install libportaudio-dev"
> Try it and tell me
>
> ------------------------------
> Date: Thu, 18 Sep 2014 20:59:30 +0530
> From: ecejegan at gmail.com
> To: users at lists.scilab.org
> Subject: [Scilab-users] Fwd: Error installing HART toolbox in ubuntu14.04
> LTS
>
>
> Hi,
>
> I am trying to install HART toolbox on ubuntu14.04LTS.
>
> I just followed the instalation procedure from
> http://hart.sourceforge.net/rtai/installation_14_04_64bit_woc.html
>
> when i am trying to apply 'make' for the HART tool box i am getting the
> following error...
>
> root at SCADTPC:/usr/lib/hart/hart_0.4.6# make
> echo "execute builder.sce in scilab"
> execute builder.sce in scilab
> /usr/bin/scilab -nw -nb -f prepare_toolbox.sce;
> libEGL warning: failed to create a pipe screen for i965
> -- Creation of [baselib] (Macros) --
> genlib: Processing file: copynewerfile.sci
> genlib: Processing file: guimaker.sci
> genlib: Processing file: hart_edit_scicosblock.sci
> genlib: Processing file: hart_module_creator.sci
> genlib: Processing file: help_from_scicosblock.sci
> genlib: Processing file: inputui.sci
> genlib: Regenerate names and lib
>
> Build modules
>
> Preparing module: RTAI
>
> Error in comedi module! Could not found libcomedi.so!
>
> Not able to build module: comedi
>
> Not able to build module: daqmx
>
> Preparing module: hart_base
>
> Preparing module: portaudio
>
> rtpreempt-module will not build, as RTAI is installed! But it is possible
> to use rtpreempt codegeneration besides RTAI!
>
> Not able to build module: rtpreempt
> /usr/bin/scilab -nw -nb -f builder.sce;
> libEGL warning: failed to create a pipe screen for i965
> Building macros...
> -- Creation of [baselib] (Macros) --
> genlib: Processing file: copynewerfile.sci
> genlib: Processing file: guimaker.sci
> genlib: Processing file: hart_edit_scicosblock.sci
> genlib: Processing file: hart_module_creator.sci
> genlib: Processing file: help_from_scicosblock.sci
> genlib: Processing file: inputui.sci
> genlib: Regenerate names and lib
> -- Creation of [RtaiCodeGenlib] (Macros) --
> -- Creation of [RTAIlib] (Macros) --
> Building blocks...
> -- Creation of [hart_baselib] (Macros) --
> Building blocks...
> -- Creation of [portaudiolib] (Macros) --
> 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 getstr.c to TMPDIR
> ilib_gen_Make: Copy serial_linux.cpp to TMPDIR
> ilib_gen_Make: Copy rtai_sinus.c to TMPDIR
> ilib_gen_Make: Copy rtai_square.c to TMPDIR
> ilib_gen_Make: Copy rtai_step.c to TMPDIR
> ilib_gen_Make: Copy hart_soft_realtime.c to TMPDIR
> ilib_gen_Make: Copy hart_par2ser.c to TMPDIR
> ilib_gen_Make: Copy hart_ser2par.c to TMPDIR
> ilib_gen_Make: Copy iir_filter.c to TMPDIR
> ilib_gen_Make: Copy hart_filtfilt.c to TMPDIR
> ilib_gen_Make: Copy hart_socket.c to TMPDIR
> ilib_gen_Make: Copy hart_socketin.c to TMPDIR
> ilib_gen_Make: Copy hart_flagtest.c to TMPDIR
> ilib_gen_Make: Copy hart_portaudio_in.c to TMPDIR
> ilib_gen_Make: Copy hart_portaudio_out.c to TMPDIR
> ilib_gen_Make: configure : Generate Makefile.
> ilib_gen_Make: Modification of the Makefile in TMPDIR.
> Running the Makefile
> !--error 10000
> ilib_compile: An error occurred during the compilation:
> hart_par2ser.c: In function 'init':
> hart_par2ser.c:43:17: warning: incompatible implicit declaration of
> built-in function 'printf' [enabled by default]
> printf("par2ser: ipar error\n");
> ^
> hart_ser2par.c: In function 'init':
> hart_ser2par.c:43:3: warning: incompatible implicit declaration of
> built-in function 'printf' [enabled by default]
> printf("ser2par: ipar error\n");
> ^
> iir_filter.c: In function 'dumpIIRfiltToFile':
> iir_filter.c:628:3: warning: format '%s' expects argument of type 'char
> *', but argument 3 has type 'int' [-Wformat=]
> fprintf(fid, "# %s", ctime(&now));
> ^
> hart_flagtest.c: In function 'init':
> hart_flagtest.c:35:3: warning: incompatible implicit declaration of
> built-in function 'printf' [enabled by default]
> printf("Flag 4: initalisation, t=%f\n",get_scicos_time());
> ^
> hart_flagtest.c:35:3: warning: format '%f' expects argument of type
> 'double', but argument 2 has type 'int' [-Wformat=]
> hart_flagtest.c: In function 'state':
> hart_flagtest.c:62:6: warning: incompatible implicit declaration of
> built-in function 'printf' [enabled by default]
> printf("Flag 0: update state, step=%d,
> t=%f\n",comdev->step,comdev->time);
> ^
> hart_flagtest.c: In function 'in':
> hart_flagtest.c:69:6: warning: incompatible implicit declaration of
> built-in function 'printf' [enabled by default]
> printf(" Flag 2 ");
> ^
> hart_flagtest.c: In function 'inout':
> hart_flagtest.c:83:6: warning: incompatible implicit declaration of
> built-in function 'printf' [enabled by default]
> printf("Flag 1: update output, step=%d,
> t=%f\n",comdev->step,comdev->time);
> ^
> hart_flagtest.c: In function 'eventout':
> hart_flagtest.c:104:6: warning: incompatible implicit declaration of
> built-in function 'printf' [enabled by default]
> printf("Flag 3: update event output, step=%d,
> t=%f\n",comdev->step,comdev->time);
> ^
> hart_flagtest.c: In function 'end':
> hart_flagtest.c:118:3: warning: incompatible implicit declaration of
> built-in function 'printf' [enabled by default]
> printf("Flag 4: ending, step=%d, t=%f\n",comdev->step,comdev->time);
> ^
> hart_portaudio_in.c:3:23: fatal error: portaudio.h: No such file or
> directory
> #include "portaudio.h"
> ^
> compilation terminated.
> make[1]: *** [hart_portaudio_in.lo] Error 1
> ilib_compile: The command was:
> make CFLAGS=" -D__SCILAB_TOOLBOX__
> -I/usr/share/scilab//../../include/scilab/
> -I/usr/share/scilab//../../include/ -I/usr/lib/hart/hart_0.4.6/src/c/
> -I/usr/lib/hart/hart_0.4.6/src/c/../../includes
> -I/usr/share/scilab//../../include/scilab/scicos/
> -I/usr/share/scilab//../../include/scilab/scicos_blocks/
> -I/usr/share/scilab//../../include/scilab/ -D_TTY_POSIX_ " CXXFLAGS="
> -D__SCILAB_TOOLBOX__ -I/usr/share/scilab//../../include/scilab/
> -I/usr/share/scilab//../../include/ -I/usr/lib/hart/hart_0.4.6/src/c/
> -I/usr/lib/hart/hart_0.4.6/src/c/../../includes
> -I/usr/share/scilab//../../include/scilab/scicos/
> -I/usr/share/scilab//../../include/scilab/scicos_blocks/
> -I/usr/share/scilab//../../include/scilab/ -D_TTY_POSIX_ "
> LDFLAGS="-lpthread -lstdc++ -lm -lportaudio "
> FFLAGS="-I/usr/share/scilab//../../include/scilab/ "
> at line 129 of function ilib_compile called by :
> at line 94 of function ilib_for_link called by :
> at line 28 of function tbx_build_src called by :
> tbx_build_src(names, files, 'c', src_c_path
> ,libs,ldflags,cflags,fflags,cc,libname);
> at line 24 of exec file called by :
>
> at line 13 of function tbx_builder called by :
> at line 49 of function tbx_builder_src_lang called by :
> tbx_builder_src_lang('c', src_dir);
> at line 3 of exec file called by :
>
> at line 13 of function tbx_builder called by :
> at line 32 of function tbx_builder_src called by :
> tbx_builder_src(toolbox_dir);
> at line 18 of exec file called by :
> exec('SCI/etc/scilab.start',-1);;exec('builder.sce',-1)
>
>
> -->
>
>
> Kindly let me know if i am missing anything....Anybody can please help..
>
> Regards
> Jegan
>
>
> _______________________________________________ users mailing list
> users at lists.scilab.org http://lists.scilab.org/mailman/listinfo/users
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20140919/264151b5/attachment.htm>
More information about the users
mailing list