./configure say error with libpng when compile tvtime on FreeBSD

Henry Hu henry.hu.sh at gmail.com
Mon Mar 12 03:28:30 UTC 2012


On Sun, Mar 11, 2012 at 11:05 PM, Xavier xfm
<xavierfreebsdmultimedia at gmail.com> wrote:
> On Sun, Mar 11, 2012 at 10:50:06PM -0400, Henry Hu wrote:
>
> Hi Henry,
>
>
>> On Sun, Mar 11, 2012 at 10:31 PM, Xavier xfm
>> <xavierfreebsdmultimedia at gmail.com> wrote:
>> > Hi to all,
>> >
>> > I try to compile tvtime ( http://tvtime.net/ ) on 9.0-RELEASE
>> >
>> > I copy the log error to: http://pastebin.com/h40fa1s4
>> >
>> > ./configure say error with libpng, but I installed libpng-1.5.9 from
>> > source
>> > code well on this machine 9.0-RELEASE
>>
>> You may pass the configure stage by
>> env LDFLAGS=-L/usr/local/lib ./configure
>
> It work fine:
>
> http://pastebin.com/acmyHPWq
>
>
>>
>> But there are other dependencies which are hard to solve, since this
>> program was written for Linux....
>
> For dependencies I don't found ... but make ... :
>
> http://pastebin.com/EEubU2xJ

My make passed the first 2 files and failed on the 3rd, rtctimer.c
It depends on linux/rtc.h which is not present on the FreeBSD system.

I copied that file from a linux machine, and now I'm failing on the
greedyh.asm file.

So finally I compiled it successfully.

You need to change:
1. src/tvtime.c change #include <termio.h> to #include <sys/filio.h>
2. plugins/tomsmocomp/tomsmocompmacros.h change #include <malloc.h> to
#include <stdlib.h>
3. plugins/tomsmocomp/TomsMoCompAll2.inc remove "DSc....::" from 8th
and 10th line
4. plugins/tomsmocomp/TomsMoCompAll.inc remove "DSc...::" from 40th line
5. plugins/tomsmocomp.cpp add #include <stdint.h>
6. plugins/greedyh.cpp add #include <stdint.h>
7. plugins/greedyh.asm remove "DSc...::" from 21th line
8. configure with env LDFLAGS=-L/usr/local/lib\ -lintl ./configure

There may be other things I just forgot... You may try it....

>
> Has solution this error ?
>
> Well, thanks.



-- 
Cheers,
Henry


More information about the freebsd-multimedia mailing list