Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Programming and Hacking > Development
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 25th August 2009, 13:45   #1  |  Link
bartnovsky
Registered User
 
Join Date: Feb 2009
Location: Russia, Moscow
Posts: 29
building x264 under cygwin/mingw

I want to build x264 binary for win32 under cygwin. The only problem so far is that i can't achieve having multithread support: when i simply pass './configure --enable-pthread' to bash i get nothing:
Code:
Platform:   X86
System:     MINGW
asm:        yes
avis input: yes
mp4 output: no
pthread:    no
debug:      no
gprof:      no
PIC:        no
shared:     no
visualize:  no

You can run 'make' or 'make fprofiled' now.
I took pthreads-win32 from ftp://sources.redhat.com/pub/pthread...release.tar.gz and compiled it using 'make clean GC' and put obtained .dll into /cygwin/bin and /cygwin/lib (by the way on http://ffmpeg.arrozcru.org/wiki/inde...title=Pthreads it is adviced before compilation to apply a patch "regarding POSIX compatibility" - having applied the patch i couldn't compile it...). And no matter if i put this .dll or not - the result is still pthread: no.

Could anyone say what is the problem and how to compile x264 with pthread support under cygwin?
bartnovsky is offline   Reply With Quote
Old 25th August 2009, 13:52   #2  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
You must build PThreads with "make GC-inlined" or even "make GC-static" and then put the resulting libpthread(GC2).a file (that is the library which will be linked against x264) into your "lib" directory!
Furthermore the required includes (pthread.h, semaphore.h and sched.h) must be located inside your "include" directory. The DLL isn't needed at all, if you built the static version of pthreads...

(BTW: It seems most people built x264.exe with static pthread library in order to avoid the dependency on an "external" DLL file)
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊

Last edited by LoRd_MuldeR; 25th August 2009 at 14:31. Reason: typo
LoRd_MuldeR is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 19:20.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.