Different interfaces have different code. For example QT4
http://sector.ynet.sk/qt4-tutorial/my-f ... ation.html (and You may wish, for example, to disable the maximize button. You can... part)
I think your line is missing some text.How I can be more than that what
I would recommend adding the "volatile" keyword before every "long *" rather than making #ifdef. It is more correct and still works.by the way, the problem danish22 has is already be mentioned by me at begin of this post and a possible solution is that (at least it worked for me)
on qatomic_windows.h line 392...modify the code into following
#if defined(Q_CC_GNU)
#include <windows.h>
#endif
#ifndef __INTERLOCKED_DECLARED
extern "C" {
__declspec(dllimport) long __stdcall InterlockedCompareExchange(long *, long, long);
__declspec(dllimport) long __stdcall InterlockedIncrement(long *);
__declspec(dllimport) long __stdcall InterlockedDecrement(long *);
__declspec(dllimport) long __stdcall InterlockedExchange(long *, long);
__declspec(dllimport) long __stdcall InterlockedExchangeAdd(long *, long);
}
#endif /* __INTERLOCKED_DECLARED */
hope your compilation will work.....O.O
Hi,I decided to just go with the older build (0.8.6i) due to the Qt problems...
This is what I did to get the 0.8.6i build to compile correctly:
1. Setup Cygwin as explained in http://wiki.videolan.org/Win32CompileCygwinNew page.
2. When installing the packages for Cygwin DO NOT install "mingw-runtime".
3. Download the older version of "mingw-runtime" from http://download.thaigrid.or.th/pub/cygw ... -1.tar.bz2
4. Download the older contrib file from http://people.videolan.org/~jb/Contribs ... ly.tar.bz2
5. Save both of them in your Cygwin installed folder. (eg. C:\Cygwin)
6. Launch Cygwin and change directory to the Cygwin installed folder, where the downloaded files are located. Use the following command to install the packages; don't just extract the files using WinRAR or etc.7. Download the vlc-0.8.6i source from http://download.videolan.org/pub/videolan/vlc/0.8.6i/ and extract it at a location you desire.Code: Select all
tar xjvf mingw-runtime-3.10-1.tar.bz2 -C / tar xjvf contrib-20071002-win32-bin-gcc-3.4.5-runtime-3.12-only.tar.bz2 -C /
8. Create a new file for "configure-vlc.sh" use the following setting:REMOVE "ccache" from CC and CCX line from the script if you don't use ccache. Don't forget to do "dos2unix configure-vlc.sh" after saving the file.Code: Select all
./bootstrap && \ PKG_CONFIG_PATH=/usr/win32/lib/pkgconfig \ CPPFLAGS="-I/usr/win32/include -I/usr/win32/include/ebml" \ LDFLAGS=-L/usr/win32/lib \ CC="ccache gcc -mno-cygwin" CXX="ccache g++ -mno-cygwin" \ ./configure \ --disable-gtk \ --enable-nls --enable-sdl --with-sdl-config-path=/usr/win32/bin \ --enable-ffmpeg --with-ffmpeg-mp3lame \ --with-ffmpeg-zlib --enable-faad --disable-flac --enable-theora \ --with-wx-config-path=/usr/win32/bin \ --with-freetype-config-path=/usr/win32/bin \ --with-fribidi-config-path=/usr/win32/bin \ --enable-live555 --with-live555-tree=/usr/win32/live.com \ --enable-caca --with-caca-config-path=/usr/win32/bin \ --with-xml2-config-path=/usr/win32/bin \ --with-dvdnav-config-path=/usr/win32/bin \ --disable-cddax --disable-vcdx --enable-goom \ --enable-twolame --enable-dvdread \ --disable-mkv \ --enable-debug
9. After it's done just do "make" then "make package-win32-zip" and look for the zip file. Note that the above configuration doesn't have support for FLAC and mkv; it errors if you enable it.
Hope it helps...
Return to “VLC media player for Windows Troubleshooting”
Users browsing this forum: Google [Bot] and 49 guests