#6 Building ffdshow with pthreads

closed
5
2008-12-27
2008-11-24
h.yamagata
No

I'm trying to build ffdshow-tryouts, ffmpeg-mt branch which require pthreads.
I downloaded pthreads-w32-2-8-0-release.exe.
However I have link error.

libavcodec/pthread.o:pthread.c:(.text+0x53): undefined reference to `_imp__pthread_mutex_lock'

And many similar errors.

I tried objdump of libpthreadGC2.a.

objdump -a libpthreadgc2.a

f:\MinGW\bin\objdump.exe: dt.o: File format not recognized
f:\MinGW\bin\objdump.exe: dh.o: File format not recognized
f:\MinGW\bin\objdump.exe: ds00114.o: File format not recognized
...

I tried to build libpthreadgc2.a myself, but I could not build or find libwsock.a.

Please help.

Our project is located at
https://sourceforge.net/projects/ffdshow-tryout/

Source code is downloaded
svn co https://ffdshow-tryout.svn.sourceforge.net/svnroot/ffdshow-tryout\branches\ffmpeg-mt

Discussion

  • NightStrike

    NightStrike - 2008-11-24

    Are you trying to cross compile, or build on a native win64 system? If you are cross compiling, what is the system type you are building on? Note that using the i686-mingw cross compiler on a win64 system is completely valid and is still considered cross compiling.

    Also, what version of the toolchain are you using?

     
  • h.yamagata

    h.yamagata - 2008-11-25

    Thank you for reply.
    I'm using mingw-w64-bin_x86_64-mingw_20081123.zip.
    I confirmed that all tools are loaded from correct directory.
    I'm on Windows Xp x64 Edition.

     
  • Kai Tietz

    Kai Tietz - 2008-11-25

    It seems that you mix 32-bit and 64-bit.
    Be aware, that you can't mix 32-bit tools and 64-bit tools. Additionally it could be that you build libpthreadGC2.a as 32-bit library. Please apply before building pthread the patch provided on our site and make sure you are building for 64-bit.

    Cheers,
    Kai

     
  • NightStrike

    NightStrike - 2008-11-25

    Did you download pthreads-w32-2-8-0-release.exe off of our site, or did you download the pthreads patch and apply it to that download? Or did you do something else?

     
  • h.yamagata

    h.yamagata - 2008-11-25

    Thank you very much!
    Now I can build ffdshow with pthreads.

    I forgot to apply the patch. After applying the patch, I could build pthread.

     
  • NightStrike

    NightStrike - 2008-11-25

    Wonderful! Be sure to tell everyone you possibly can about how well GCC on Win64 works! :) :)

     
  • NightStrike

    NightStrike - 2008-12-27

    Are you still having issues with the new pthreads files that have been added to the downloads area?

     
  • NightStrike

    NightStrike - 2008-12-27

    Ah, nevermind, I see that all is fixed. Closing this issue.

     
  • NightStrike

    NightStrike - 2008-12-27
    • labels: --> Build 3rd party app
    • assigned_to: nobody --> nightstrike
    • status: open --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks