[asterisk-users] Can't build today's AGX Asterisk Addon with spandsp0.0.6pre3 or 4 [SOLVED]
Olivier
oza-4h07 at myamail.com
Mon Mar 9 13:41:10 CDT 2009
2009/2/26 Olivier <oza-4h07 at myamail.com>
> I must add I tried spandsp0.0.6xxx as a warning message advised me to do so
> (using 0.0.4 would be ok for me but current trunk doesn't allow this
> anymore, it seems).
>
>
> 2009/2/26 Olivier <oza-4h07 at myamail.com>
>
> Hi,
>>
>> With 0.0.6pre3:
>> # ./build.sh
>> CMake Warning (dev) in CMakeLists.txt:
>> No cmake_minimum_required command is present. A line of code such as
>>
>> cmake_minimum_required(VERSION 2.6)
>>
>> should be added at the top of the file. The version specified may be
>> lower
>> if you wish to support older CMake versions for this project. For more
>> information run "cmake --help-policy CMP0000".
>> This warning is for project developers. Use -Wno-dev to suppress it.
>>
>> -- Configuring done
>> -- Generating done
>> -- Build files have been written to: /usr/src/agx-ast-addons/trunk
>> [ 12%] Built target app_devstate
>> [ 25%] Built target app_nv_backgrounddetect
>> [ 37%] Built target app_nv_faxdetect
>> [ 50%] Built target app_pickup2
>> [ 62%] Built target app_valetparking
>> [ 75%] Built target func_devstate
>> Scanning dependencies of target test_spandsp
>> [ 87%] Building C object CMakeFiles/test_spandsp.dir/test_spandsp.o
>> Linking C executable test_spandsp
>> [ 87%] Built target test_spandsp
>> [100%] Building C object spandsp-0.0.6/CMakeFiles/app_fax.dir/app_fax.o
>> Linking C shared module ../dist/app_fax.so
>> [100%] Built target app_fax
>> ./test_spandsp: error while loading shared libraries: libspandsp.so.1:
>> cannot open shared object file: No such file or directory
>> addons not installed, please upgrade your spandsp library first
>>
>>
>> With 0.0.6pre4 :
>> # ./build.sh
>> CMake Warning (dev) in CMakeLists.txt:
>> No cmake_minimum_required command is present. A line of code such as
>>
>> cmake_minimum_required(VERSION 2.6)
>>
>> should be added at the top of the file. The version specified may be
>> lower
>> if you wish to support older CMake versions for this project. For more
>> information run "cmake --help-policy CMP0000".
>> This warning is for project developers. Use -Wno-dev to suppress it.
>>
>> -- Configuring done
>> -- Generating done
>> -- Build files have been written to: /usr/src/agx-ast-addons/trunk
>> [ 12%] Building C object CMakeFiles/app_devstate.dir/app_devstate.o
>> Linking C shared module dist/app_devstate.so
>> [ 12%] Built target app_devstate
>> [ 25%] Building C object
>> CMakeFiles/app_nv_backgrounddetect.dir/app_nv_backgrounddetect.o
>> Linking C shared module dist/app_nv_backgrounddetect.so
>> [ 25%] Built target app_nv_backgrounddetect
>> [ 37%] Building C object
>> CMakeFiles/app_nv_faxdetect.dir/app_nv_faxdetect.o
>> Linking C shared module dist/app_nv_faxdetect.so
>> [ 37%] Built target app_nv_faxdetect
>> [ 50%] Building C object CMakeFiles/app_pickup2.dir/app_pickup2.o
>> Linking C shared module dist/app_pickup2.so
>> [ 50%] Built target app_pickup2
>> [ 62%] Building C object
>> CMakeFiles/app_valetparking.dir/app_valetparking.o
>> Linking C shared module dist/app_valetparking.so
>> [ 62%] Built target app_valetparking
>> [ 75%] Building C object CMakeFiles/func_devstate.dir/func_devstate.o
>> Linking C shared module dist/func_devstate.so
>> [ 75%] Built target func_devstate
>> [ 87%] Building C object CMakeFiles/test_spandsp.dir/test_spandsp.o
>> Linking C executable test_spandsp
>> [ 87%] Built target test_spandsp
>> [100%] Building C object spandsp-0.0.6/CMakeFiles/app_fax.dir/app_fax.o
>> /usr/src/agx-ast-addons/trunk/spandsp-0.0.6/app_fax.c: In function
>> ‘phase_e_handler’:
>> /usr/src/agx-ast-addons/trunk/spandsp-0.0.6/app_fax.c:155: error:
>> ‘t30_stats_t’ has no member named ‘pages_transferred’
>> /usr/src/agx-ast-addons/trunk/spandsp-0.0.6/app_fax.c:184: error:
>> ‘t30_stats_t’ has no member named ‘pages_transferred’
>> /usr/src/agx-ast-addons/trunk/spandsp-0.0.6/app_fax.c:188: error:
>> ‘t30_stats_t’ has no member named ‘pages_transferred’
>> /usr/src/agx-ast-addons/trunk/spandsp-0.0.6/app_fax.c:189: error:
>> ‘t30_stats_t’ has no member named ‘pages_transferred’
>> /usr/src/agx-ast-addons/trunk/spandsp-0.0.6/app_fax.c: In function
>> ‘phase_d_handler’:
>> /usr/src/agx-ast-addons/trunk/spandsp-0.0.6/app_fax.c:208: error:
>> ‘t30_stats_t’ has no member named ‘pages_transferred’
>> /usr/src/agx-ast-addons/trunk/spandsp-0.0.6/app_fax.c:211: error:
>> ‘t30_stats_t’ has no member named ‘pages_transferred’
>> make[2]: *** [spandsp-0.0.6/CMakeFiles/app_fax.dir/app_fax.o] Erreur 1
>> make[1]: *** [spandsp-0.0.6/CMakeFiles/app_fax.dir/all] Erreur 2
>> make: *** [all] Erreur 2
>>
>>
>> Can anyone help ?
>>
>> Cheers
>>
>
This came from the fact I was incorrectly installing spandsp from sources
with ./configure and I should have used ./configure --prefix=/usr instead.
When I did this, I noticed that a remaining /usr/local/include directory
still contained header files from another spandsp-0.0.4 failed install. I
removed this /usr/local/include/spandsp.h and /usr/local/include/spandsp
content and it worked.
Maybe, I should check why typing make distclean in /usr/src/spandsp-0.0.4
directory didn't remove those include files (but that's another story).
Anyway, now I can compile AGX-Asterisk-Addon !
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090309/00a31090/attachment.htm
More information about the asterisk-users
mailing list