Fonostream ========== An interface for audio file playing and streaming in La Fonera 2.0, using chillout and audiod (the audiocli plugin) Compiling in GNU/Linux ---------------------- Requirements ~~~~~~~~~~~~ You need to have the wxwidgets library, 2.8.x preferably (2.6 is not tested), and the wx-config program that is used to retrieve compiler flags in PATH. Simply do make to build the executable in build/linux/fonostream Cross compiling the Win32 executable ------------------------------------ Mingw ~~~~~ To compile the windows executable in GNU/Linux, first install http://www.mingw.org/[mingw32]. In Debian 5.0 --------- # apt-get install mingw32 --------- That will install mingw cross compiler under /usr/i586-mingw32. In other distribution, or when compiling mingw from source, that location may change. Change it accordingly in the lines below. WxWidgets ~~~~~~~~~ And install a http://wiki.wxwidgets.org/Cross-Compiling_Under_Linux[ cross-compiling static-library wxwidgets] ------------------------------------------------------------------ ./configure --prefix=/usr/i586-mingw32 --host=i586-mingw32msvc \ --build=i686-linux --disable-shared --disable-threads make && make install ------------------------------------------------------------------ The --disable-shared switch will configure things to build static libraries, and the --disable-threads makes an wxWidgets library without threads support. Threads on windows need a dll that have to be distributed alongside the program, even when compiling statically. As fonostream do not use threads, disabling it removes the dll-installation requirement. Fonostream ~~~~~~~~~~ Then use the Makefile.mingw file to compile fonostream.exe -------------- make linux -------------- Compiling in Mac OS X ~~~~~~~~~~~~~~~~~~~~~ TODO: Not written yet