Re: [Hamfax-devel] HamFax can't open sample file
Brought to you by:
cschmitt
|
From: Guillaume S. <gui...@ne...> - 2012-12-28 10:39:42
|
got it dude !
Nothing to deal with libaudio or this kind of stuff. I just had some funny french character (é) in my path, that the function filename.toAscii() used in File.cpp failed to translate.
By the way, I had some compilation problems on file lib/log.c. I had to modify line 51 to :
static inline void set_hamlib_log() {}
to avoid error on compilation "parameter name omitted"
Now, I'm gonna make it rock on a Raspberry Pi !
Best regards
Le 27 déc. 2012 à 22:48, Christof Schmitt a écrit :
> On Thu, Dec 27, 2012 at 04:46:29PM +0100, Guillaume Sueur wrote:
>> Thanks for your reply Christof. I've installed hamfax from source on
>> Debian Squeeze and Ubuntu 10.04. On both environments, I've got the
>> same "can't open file" message.
>> the checksum is OK, and I can hear the nice music the file gives
>> throught mplayer.
>> I thought maybe some dependancy was missing, making the software
>> unable to open the file.
>>
>> I'm going to try in another environment.
>
> Hi Guillaume,
>
> audio files in hamfax are handled through the libaudiofile library. You should
> see a dependency on the compiled binary. Since you get the "can't open file
> message" this should be the case.
>
> $ ldd /usr/bin/hamfax | grep audiofile
> libaudiofile.so.1 => /usr/lib/i386-linux-gnu/libaudiofile.so.1 (0x005c7000)
>
> I just extended the code to also include the error message from the
> libaudiofile library in the GUI dialog. You can get the latest code here:
>
> git clone git://git.code.sf.net/p/hamfax/code hamfax-code
>
> (The location of the git repository changed and the webpage has not yet been
> updated.)
>
> Alternatively, you could remove the line afSetErrorHandler(0); from
> src/File.cpp. You should then see the error from libaudiofile on the stderr
> output in a terminal window.
>
> 73
>
> Christof
--------------------------------------------------
Guillaume SUEUR
Neogeo Technologies SARL
31 RUE DES GLYCINES
31500 TOULOUSE - FRANCE
Tél : 05 31 98 17 07
Mob. : 06 74 91 95 20
Fax : 09.81.70.75.65
Web : http://www.neogeo-online.net/
|