Re: problem during compile based on cygwin and windows 7

347 views
Skip to first unread message

Mathieu SCHROETER

unread,
Dec 28, 2011, 5:06:15 AM12/28/11
to 张静, de...@geexbox.org
Le 19. 12. 11 08:56, 锟脚撅拷 a 锟斤拷crit :
> Hi,
>
>
>
> I met some questions during compile the libvalhalla-2.0.0 on windows 7and Cygwin(the version of the Cygwin is 2.26.2).
>
>
>
> 1. 锟斤拷CODEC_TYPE_VIDEO锟斤拷 and 锟斤拷CODEC_TYPE_AUDIO锟斤拷 undeclared
>
> It is OK after change the two type from 锟斤拷CODEC_TYPE_VIDEO锟斤拷 and 锟斤拷CODEC_TYPE_AUDIO锟斤拷 to 锟斤拷AVMEDIA_TYPE_VIDEO锟斤拷 and 锟斤拷AVMEDIA_TYPE_AUDIO锟斤拷
>
>
>
> 2. Some files can锟斤拷t be found in the Cygwin folder, these files are listed below,
>
> /thread_utils.c:29:25: fatal error: sys/syscall.h: No such file or directory/
>
> //usr/include/sys/syscall.h:25:24: fatal error: asm/unistd.h: No such file or directory/
>
> //usr/include/asm/unistd.h:4:29: fatal error: asm/bitsperlong.h: No such file or directory/
>
> //usr/include/sys/syscall.h:32:27: fatal error: bits/syscall.h: No such file or directory/
>
> /url_utils.c:29:24: fatal error: curl/types.h: No such file or directory/
>
>
>
> is it correct to comment out these head files?
>
>
>
> 3. 锟斤拷bswap_32锟斤拷 and 锟斤拷bswap_64锟斤拷 redefinition in file sha.c
>
> Is it ok to change them to 锟斤拷bswap_32_new锟斤拷 and 锟斤拷bswap_64_new锟斤拷
>
>
>
> Now, recompile these file and we meet the big problem as following,
>
> //tmp/libvalhalla-2.0.0/src/grabber.c:253: undefined reference to `_pthread_mutex_timedlock'/
>
>
>
> Please review and give me some suggestions, thanks.
>
>

Hello,

Use the devel version please (mercurial). And use MSYS/MingW instead
of cygwin.


Regards
--
Mathieu SCHROETER

Reply all
Reply to author
Forward
0 new messages