
g++ -c -pipe -O2 -march=x86-64 -mcpu=x86-64 -Wall -W -g -I. -I/usr/include -o main.o main.cpp


g++ -o test -mcpu=x86-64 main.o `vlc-config --cxxflags --libs` -L/usr/X11R6/lib64 -L/usr/local/lib/vlc -lvlc -ldl -lavcodec -lavformat -lvlc -lmemcpymmx -li420_rgb_mmx -li422_yuy2_mmx -li420_ymga_mmx -li420_yuy2_mmx -lmemcpymmxext -lmemcpy3dn -lffmpeg -lstream_out_switcher -lpthread -lxvideo -lX11 -lXaw -lXv -lXinerama       

exit


# compile example dlopen application ...
#  g++ -rdynamic -o foo main.cpp -ldl

g++ -c -pipe -O2 -march=i586 -mcpu=x86-64 -Wall -W -g -I. -I/usr/include -o main.o main.cpp

g++ -o test -mcpu=x86-64 main.o -I/usr/local/include -Iinclude -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE -D_REENTRANT -D_THREAD_SAFE -D_GNU_SOURCE -DLOCALEDIR="/usr/local/share/locale" -DDATA_PATH="/usr/local/share/vlc" -DPLUGIN_PATH="/usr/local/lib/vlc"  -O2 
-L/usr/local/lib  -L/usr/local/lib/vlc -lvlc -ldl -lmemcpymmx -lmemcpymmxext -lpthread
g++ -o test -mcpu=x86-64 main.o -I/usr/local/include -Iinclude -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE -D_REENTRANT -D_THREAD_SAFE -D_GNU_SOURCE -DLOCALEDIR="/usr/local/share/locale" -DDATA_PATH="/usr/local/share/vlc" -DPLUGIN_PATH="/usr/local/lib/vlc"  -O2 
-L/usr/local/lib  -L/usr/local/lib/vlc -lvlc -ldl -lmemcpymmx -lmemcpymmxext -lpthread -li420_rgb_mmx -li422_yuy2_mmx -li420_yuy2_mmx -li420_ymga_mmx
g++ -o test -mcpu=x86-64 main.o -I/usr/local/include -Iinclude -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE -D_REENTRANT -D_THREAD_SAFE -D_GNU_SOURCE -DLOCALEDIR="/usr/local/share/locale" -DDATA_PATH="/usr/local/share/vlc" -DPLUGIN_PATH="/usr/local/lib/vlc"  -O2 
-L/usr/local/lib  -L/usr/X11R6/lib64 -L/usr/local/lib/vlc -lvlc -ldl `find /usr/local/lib/vlc -name *.so` `find /usr/local/lib/vlc/ -name *.a` -lavcodec -lXv 
WINNER  
g++ -o test -mcpu=x86-64 main.o -I/usr/local/include -Iinclude -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE -D_REENTRANT -D_THREAD_SAFE -D_GNU_SOURCE -DLOCALEDIR="/usr/local/share/locale" -DDATA_PATH="/usr/local/share/vlc" -DPLUGIN_PATH="/usr/local/lib/vlc"  -O2 -L/usr/local/lib  -L/usr/X11R6/lib64 -L/usr/local/lib/vlc -lvlc -ldl `find /usr/local/lib/vlc -name *.so` `find /usr/local/lib/vlc/ -name *.a` -lavcodec -lXv -lavformat 

g++ -o test -mcpu=x86-64 main.o `vlc-config --cxxflags --libs` -L/usr/X11R6/lib64 -L/usr/local/lib/vlc -lvlc -ldl -lavcodec -lavformat -lvlc -lmemcpymmx -li420_rgb_mmx -li422_yuy2_mmx -li420_ymga_mmx -li420_yuy2_mmx -lmemcpymmxext -lmemcpy3dn -lffmpeg -lstream_out_switcher -lpthread -lxvideo -lX11 -lXaw -lXv -lXinerama



