Difference between revisions of "Linux VLC FAQ"

From VideoLAN Wiki
Jump to navigation Jump to search
m
Line 7: Line 7:
 
Q.'''- I am trying to compile VLC and on a 64 bit system and i'm getting the errors "cc1: error: invalid option `tune=opteron'"'''
 
Q.'''- I am trying to compile VLC and on a 64 bit system and i'm getting the errors "cc1: error: invalid option `tune=opteron'"'''
  
A. From what I can see, the -mtune flag is not available for this type of processor in man gcc. Edit the configure where it says mtune=opteron to say march=k8. It will pass that error. (Putting it as march=opteron should work according to the man pages, but I put k8 anyway).
+
A. From what I can see, the -mtune flag is not available for this type of processor in man gcc. I had to change the configure options comment out all the lines where they set mcpu or mtune flags.) I don't know if this is the correct way to proceed but was the only way for me to get results fast.
 +
 
 +
Q.'''- I am trying to compile VLC and on a 64 bit system and i'm getting the errors "/usr/bin/ld: cannot find -lX11"'''
 +
 
 +
A. In the configure, there is an x_libraries variable there that is set to "/usr/X11R6/lib". Because it is a 64 bit system, this variable needs to be /usr/X11R6/lib64. After changing that, it should continue compiling.

Revision as of 15:01, 3 November 2005

Q.- I am trying to compile VLC and i'm getting the errors "Missing header file ffmpeg/avcodec.h" and/or "Missing header file postproc/postprocess.h"

A. To get rid of these problems while compiling, run configure with these flags at least: ./configure --enable-shared --enable-shared-pp --enable-pp --enable-gpl

The description of each of those is available when doing ./configure --help

Q.- I am trying to compile VLC and on a 64 bit system and i'm getting the errors "cc1: error: invalid option `tune=opteron'"

A. From what I can see, the -mtune flag is not available for this type of processor in man gcc. I had to change the configure options comment out all the lines where they set mcpu or mtune flags.) I don't know if this is the correct way to proceed but was the only way for me to get results fast.

Q.- I am trying to compile VLC and on a 64 bit system and i'm getting the errors "/usr/bin/ld: cannot find -lX11"

A. In the configure, there is an x_libraries variable there that is set to "/usr/X11R6/lib". Because it is a 64 bit system, this variable needs to be /usr/X11R6/lib64. After changing that, it should continue compiling.