I'm just about getting insane with compiling ffmpeg under windows... It just won't work.
I need the avcodec.dll and avformat.dll inclusiv .lib and .h, maybe someone could compile it for me and upload these files, so that I can use it at my own project?
http://ffmpeg.arrozcru.org/autobuilds/
Related
I've got the build environment set up: https://www.linkedin.com/pulse/building-ffmpeg-windows-without-fuss-moshe-david
From this I can successfully build ffmpeg.exe but I want to build libavcodec.lib etc statically for use with my project. I assume it's just a simple command line option for ./configure that I'm missng, but
--enable-static builds the exe and --enable-shared builds the dlls...
Any help on this would be much appreciated!
Best,
Peter
Turns out that the libraries (.a) files were being produced anyway and were in the respective folders. These work on windows of course, and can be copied out and linked in your project.
I am using cmake to generate a Eclipse CDT MinGW Project. (Eclipse Version Kepler)
This is my Cmakelist:
project(IMGTODICOM)
find_package(ITK REQUIRED)
include(${ITK_USE_FILE})
add_executable(IMGTODICOM IMGTODICOM.cxx)
target_link_libraries(IMGTODICOM ITKReview ${ITK_LIBRARIES})
The code compile and run without problem in my computer, but in other PC it does not run. Some dll like libgcc_s_dw2-1.dll are required. I looked for this dll in my computer and I found it in C:\MinGW\bin. To solve the problem I copied the content of this folder in the other PC and the exe file finally run.
However, I am wondering if there is a better method to run the exe file in any windows pc adding these libraries in the compilation process.
I was reading and I should make that the compiler link to a static library. In Eclipse I tried to add the dll under properties>C/C++ Include Path and Symbols and under project Path>Libraries, but it does not work. I tried to modify the CmakeList but it also does not work.
I don't know why this problem and how can I include the content of C:\MinGW\bin in the exe file.
Many Thanks for any help
Yes, there is a way. For pure C code:
set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static")
For C++ code:
set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++ -static")
I'm learning SDL through Lazy Foo's tutorial, but I can't proceed further as IMG_Load doesn't seem to work. I tried setting it up like he says, but it just doesn't work. I put all the include files into include folder, and all the lib files into the lib folder. What I found is that there were x86 and x64 folders in the lib folder. When I tried x64 (because I have a 64-bit system)it all worked fine, CodeBlocks even told me suggestions (like when I wrote "img" it showed up a suggestion "IMG_Load" (which means the library got initalized?)), but when I come to compiling my code, this happens: http://puu.sh/3Eqa5.png. When I try with the x86 version, exact same error.
I had a little search around the internet, and all I could find were a few threads, but most of them were abandoned. The closest I got to answering my problem was this: http://www.dreamincode.net/forums/topic/118299-sdl-image-error-sdl/ but the guy solved his problem by downloading a problem which Linux can use, not Windows.
}
I'm running Windows 7 64-bit, CodeBlocks 12.11, SDL 1.2.15 and SDL_Image 1.2.12.
I really don't know what the problem is!
You should go to the Compiler and Debugger settings again and under the Linker Settings tab paste:
-lSDL_image
In addition to the #Aleeee's answer, a command line solution is to add -lSDL2_image compiler flag (SDL2 is the up-to-date version by the time of this writing).
Compilation example:
gcc -o object_file_name source_file_name.c `sdl2-config --cflags --libs` -lSDL2_image
It turns out the SDL_Image library I was using was buggy. I don't know how that happened though. I just had to use a older version. Thanks to anyone who helped!
I have found several libraries for XML Parser in OCaml, such as PXP or XML-Light. Anyone knows such a thing that can be used easily in Windows? I found that in XML-Light, they have several .ml and .mli files, I try to copy it to the lib folder of my ocaml, but it doesn't work. Any advice how to do this correctly?
Thank you a bunch.
NB: I don't use cygwin either. I use a MSVC version of OCaml.
I've used xmlm for xml parsing. For simplest installation scenario you can download its distribution and copy src\xmlm.ml into your project directory.
Alternatively, you may compile it using:
ocamlopt -c xmlm.mli
ocamlopt -c xmlm.ml
and put the resulting files into %OCAMLLIB%\xmlm directory. Then you can compile your project like this:
ocamlopt -I +xmlm xmlm.cmx foo.ml -o bar
I downloaded the iFrameExtractor sample code and try to compile it with the iPhone simulator version 3.1.3
The project shows the following errors ( http://img514.imageshack.us/img514/3245/66948298.png ) even thought I added *.a libraries to my project. All libraries was under the library searching path.
I guess it is a linking problem. Anyone can recommend to me a configuration for compiling ffmpeg on x86?
Thanks in advance.
try compiling/building for iPhone Device instead of simulator, I think as the simulator does not has camera so you got the above errors while compiling.
As far as i know you will have to compile the ffmpeg for your simulator you can do that by using ./configure script and put the iPhoneSimulator.platform as the target platform and use arch i386 as architecture .