PDA

View Full Version : [ubuntu] problem with sdl and ffmpeg



jann364
February 4th, 2010, 04:48 AM
hi...
i am beginner in ubuntu. i wish to run the programs that will display a picture which use the ffmpeg,sdl and lame.. when i type gcc -o exercise exercise1.c 'sdl-config --cflags --libs' to compile the program it give this such of error :gcc: sdl-config --cflags --libs: No such file or directory. I have installed the gcc packages, SDL ,FFMPEG, LAME but still cannot display the output. any one can help with this problems?? what should i do with the gcc packages?
thank you..

drurowin
March 15th, 2011, 05:18 PM
when i type gcc -o exercise exercise1.c 'sdl-config --cflags --libs' to compile the program it give this such of error :gcc: sdl-config --cflags --libs: No such file or directory.

Make sure you're using backticks ` (next to "1" on most keyboards). Those will execute the command inside them. What you did is single-quoted the string, which treats everything inside it as a literal filename.

$ gcc -o exercise exercise1.c `sdl-config --cflags --libs`