Index: NetworkEditor/SConstruct
===================================================================
--- NetworkEditor/SConstruct	(revision 10279)
+++ NetworkEditor/SConstruct	(working copy)
@@ -3,11 +3,17 @@
 import glob
 import sys
 
+crosscompiling = True
+isWindowsPlatform = sys.platform=='win32' or crosscompiling
+isLinuxPlatform = sys.platform=='linux' and not crosscompiling
+isDarwinPlatform = sys.platform=='darwin'
+
 options = Options('options.cache', ARGUMENTS)
 options.Add(PathOption('prefix', 'The prefix where the application will be installed', ''))
 options.Add(PathOption('clam_prefix', 'The prefix where CLAM was installed', ''))
 options.Add(('qt_plugins_install_path', 'Path component (without the install prefix) where to install designer plugins (tipically /lib/qt4/plugins/designer)','/bin/designer'))
 options.Add(BoolOption('verbose', 'Display the full command line instead a short command description', 'no') )
+options.Add(PathOption('external_dll_path', '(Windows only) The place where the NSIS packager takes the installed DLL from', '.'))
 
 def scanFiles(pattern, paths) :
 	files = []
@@ -32,6 +38,8 @@
 env.Tool('nsis', toolpath=[clam_sconstoolspath])
 if sys.platform=='darwin' : env.Tool('bundle', toolpath=[clam_sconstoolspath])
 env.Tool('dmg', toolpath=[clam_sconstoolspath])
+if crosscompiling :
+	env.Tool('crossmingw',toolpath=[clam_sconstoolspath])
 sys.path.append(clam_sconstoolspath)
 import versionInfo
 version, fullVersion = versionInfo.versionFromLocalInfo("NetworkEditor")
@@ -62,6 +70,7 @@
 	] , CLAMInstallDir)
 
 env.EnableQt4Modules([
+	'QtUiTools',
 	'QtCore',
 	'QtGui',
 	'QtOpenGL',
@@ -70,7 +79,6 @@
 #	'QtTest',
 	'QtXml',
 	'QtSvg',
-	'QtUiTools',
 	'QtDesigner',
 #	'Qt3Support',
 	], debug=False)
@@ -112,12 +120,12 @@
 uifiles = scanFiles("*.ui", sourcePaths)
 if uifiles: uiheaders = env.Uic4(source=uifiles)
 
-if sys.platform=="win32" :
+if isWindowsPlatform :
 	sources += env.RES(source=["resources/NetworkEditor.rc"])
 
 if sys.platform=='win32' :
 	env.Append(CPPFLAGS=['-D_USE_MATH_DEFINES']) # to have M_PI defined
-if sys.platform=='linux2' :
+if isLinuxPlatform :
 	# TODO: This should not be hardcoded neither prefix (because package install)
 	env.Append(CPPFLAGS='-DDATA_EXAMPLES_PATH="\\"/usr/share/networkeditor/example-data\\""')
 
@@ -225,24 +233,30 @@
 installTargets = [
 	env.Install( env['prefix']+path, files ) for path, files in installation.items() ]
 
-if sys.platform=='win32' : 
+if isWindowsPlatform : 
+	winqtdir=env['QTDIR']
+	if crosscompiling : env['NSIS_MAKENSIS'] = 'wine ~/.wine/drive_c/Program\ Files/NSIS/makensis'
+	if crosscompiling : winqtdir = 'z:'+'\\\\'.join(winqtdir.split('/'))
+	externalDllPath = env['external_dll_path']
+	if crosscompiling : externalDllPath = 'z:'+'\\\\'.join(externalDllPath.split('/'))
+	print 'winqtdir', winqtdir
+	print 'externalDllPath', externalDllPath
 	installTargets += [
 		env.Install(
 			env['prefix']+"/bin", 
-			os.path.join(env['QTDIR'],'lib',"Qt"+dll+"4.dll")
+			os.path.join(env['QTDIR'],'bin',"Qt"+dll+"4.dll")
 			) for dll in 'Core', 'Gui', 'OpenGL']
 	env.Append(NSIS_OPTIONS=['/DVERSION=%s' % fullVersion ])
-	env.Append(NSIS_OPTIONS=['/DQTDIR=$QTDIR'])
-	externalsDllDir = os.environ['EXTERNALDLLDIR']
-	env.Append(NSIS_OPTIONS=['/DEXTERNALDLLDIR=%s' % externalsDllDir ])
+	env.Append(NSIS_OPTIONS=['/DQTDIR=%s'%winqtdir ])
+	env.Append(NSIS_OPTIONS=['/DEXTERNALDLLDIR=%s' % externalDllPath ])
 	# Get the visual studio runtimes path
 	for vcRuntimeDir in os.environ['PATH'].split(";") :
 		vcRuntimeDir = os.path.normpath(vcRuntimeDir)
 		if os.access(os.path.join(vcRuntimeDir,"msvcr71.dll"),os.R_OK) :
 			break
 	env.Append(NSIS_OPTIONS=['/DVCRUNTIMEDIR=%s' % vcRuntimeDir ])
-	win_packages = [env.Nsis( source='resources\\clam_networkeditor.nsi')]
-	env.AddPreAction(win_packages, '%s\\changeExampleDataPath.py . ..' % clam_sconstoolspath)
+	win_packages = [env.Nsis( source='resources/clam_networkeditor.nsi')]
+	env.AddPreAction(win_packages, os.path.join(clam_sconstoolspath,'changeExampleDataPath.py')+' . ..' )
 	env.Alias('package', win_packages)
 
 if sys.platform=='darwin' :
Index: NetworkEditor/resources/clam_networkeditor.nsi
===================================================================
--- NetworkEditor/resources/clam_networkeditor.nsi	(revision 10279)
+++ NetworkEditor/resources/clam_networkeditor.nsi	(working copy)
@@ -39,7 +39,7 @@
 !insertmacro MUI_UNPAGE_INSTFILES
 
 ; Language files
-!insertmacro MUI_LANGUAGE "Catalan"
+;!insertmacro MUI_LANGUAGE "Catalan"
 !insertmacro MUI_LANGUAGE "English"
 !insertmacro MUI_LANGUAGE "Spanish"
 
@@ -61,27 +61,44 @@
 Section "Principal" SEC01
   SetOutPath "$INSTDIR\bin"
   SetOverwrite ifnewer
+  File '${QTDIR}\bin\designer.exe'
+  File '${QTDIR}\bin\QtCore4.dll'
+  File '${QTDIR}\bin\QtGui4.dll'
+  File '${QTDIR}\bin\QtOpenGL4.dll'
+  File '${QTDIR}\bin\QtXml4.dll'
+  File '${QTDIR}\bin\QtSvg4.dll'
+  File '${QTDIR}\bin\QtNetwork4.dll'
+  File '${QTDIR}\bin\QtDesigner4.dll'
+  File '${QTDIR}\bin\QtDesignerComponents4.dll'
+  File '${QTDIR}\bin\QtAssistantClient4.dll'
+  File '${EXTERNALDLLDIR}\clam_audioio.dll'
+  File '${EXTERNALDLLDIR}\clam_core.dll'
+  File '${EXTERNALDLLDIR}\clam_processing.dll'
+  File '${EXTERNALDLLDIR}\libfftw3-3.dll'
+  File '${EXTERNALDLLDIR}\libogg-0.dll'
+  File '${EXTERNALDLLDIR}\libsndfile-1.dll'
+  File '${EXTERNALDLLDIR}\libvorbis-0.dll'
+  File '${EXTERNALDLLDIR}\libvorbisenc-2.dll'
+  File '${EXTERNALDLLDIR}\libvorbisfile-3.dll'
+  File '${EXTERNALDLLDIR}\portaudio.dll'
+  File '${EXTERNALDLLDIR}\pthreadGCE2.dll'
+  ; GTK libs
+  File '${EXTERNALDLLDIR}\libxml++-2.6-2.dll'
+  File '${EXTERNALDLLDIR}\libxml2.dll'
+  File '${EXTERNALDLLDIR}\libglibmm-2.4-1.dll'
+  File '${EXTERNALDLLDIR}\libsigc-2.0-0.dll'
+  File '${EXTERNALDLLDIR}\libgobject-2.0-0.dll'
+  File '${EXTERNALDLLDIR}\libglib-2.0-0.dll'
+  File '${EXTERNALDLLDIR}\iconv.dll'
+  File '${EXTERNALDLLDIR}\intl.dll'
+  File '${EXTERNALDLLDIR}\zlib1.dll'
+  File '${EXTERNALDLLDIR}\libgmodule-2.0-0.dll'
+;  File '${EXTERNALDLLDIR}\mingwm10.dll'
+;  File '${EXTERNALDLLDIR}\pthreadVCE.dll'
+;  File '${VCRUNTIMEDIR}\msvcp71.dll'
+;  File '${VCRUNTIMEDIR}\msvcr71.dll'
   File "..\NetworkEditor.exe"
   File "..\Prototyper.exe"
-  File '${QTDIR}\bin\designer.exe'
-  File '${QTDIR}\lib\QtCore4.dll'
-  File '${QTDIR}\lib\QtGui4.dll'
-  File '${QTDIR}\lib\QtOpenGL4.dll'
-  File '${QTDIR}\lib\QtXml4.dll'
-  File '${QTDIR}\lib\QtNetwork4.dll'
-  File '${QTDIR}\lib\QtDesigner4.dll'
-  File '${QTDIR}\lib\QtDesignerComponents4.dll'
-  File '${QTDIR}\lib\QtAssistantClient4.dll'
-  File '${EXTERNALDLLDIR}\libsndfile.dll'
-  File '${EXTERNALDLLDIR}\ogg.dll'
-  File '${EXTERNALDLLDIR}\pthreadVCE.dll'
-  File '${EXTERNALDLLDIR}\vorbis.dll'
-  File '${EXTERNALDLLDIR}\vorbisenc.dll'
-  File '${EXTERNALDLLDIR}\vorbisfile.dll'
-  File '${EXTERNALDLLDIR}\xerces-c_2_3_0.dll'
-  File '${EXTERNALDLLDIR}\portaudio.dll'
-  File '${VCRUNTIMEDIR}\msvcp71.dll'
-  File '${VCRUNTIMEDIR}\msvcr71.dll'
   SetOutPath "$INSTDIR\bin\designer"
   File "..\CLAMWidgets.dll"
   SetOutPath "$INSTDIR\example-data\"
Index: Annotator/vmqt/SConstruct
===================================================================
--- Annotator/vmqt/SConstruct	(revision 10279)
+++ Annotator/vmqt/SConstruct	(working copy)
@@ -5,8 +5,8 @@
 options.Add(PathOption('clam_prefix', 'The prefix where CLAM was installed', ''))
 options.Add(BoolOption('release', 'Build CLAM Annotator enabling compiler optimizations', 'no') )
 options.Add(BoolOption('verbose', 'Display the full command line instead a short command description', 'no') )
+crosscompiling=True
 
-
 def scanFiles(pattern, paths) :
 	files = []
 	for path in paths :
@@ -30,6 +30,8 @@
 env.Tool('qt4', toolpath=[clam_sconstoolspath])
 env.Tool('clam', toolpath=[clam_sconstoolspath])
 env.Tool('nsis', toolpath=[clam_sconstoolspath])
+if crosscompiling :
+	env.Tool('crossmingw', toolpath=[clam_sconstoolspath])
 
 env.SConsignFile() # Single signature file
 
@@ -127,7 +129,7 @@
 
 staticLibrary = env.StaticLibrary(target='clam_vmqt4', source=sources)
 env.Append(LIBPATH='.')
-env.Append(LIBS='clam_vmqt4')
+env.Prepend(LIBS='clam_vmqt4')
 if sys.platform == "linux2" :
 	env.Append( CCFLAGS=['-g','-O3','-fomit-frame-pointer','-Wall'] )
 examples = []
Index: Annotator/SConstruct
===================================================================
--- Annotator/SConstruct	(revision 10279)
+++ Annotator/SConstruct	(working copy)
@@ -8,8 +8,9 @@
 options.Add(PathOption('clam_prefix', 'The prefix where CLAM was installed', ''))
 options.Add(BoolOption('release', 'Enabling compiler optimizations', 'no') )
 options.Add(BoolOption('verbose', 'Display the full command line instead a short command description', 'no') )
+if sys.platform=="linux2" :
+	options.Add(BoolOption('crossmingw', 'Display the full command line instead a short command description', 'no') )
 
-
 def scanFiles(pattern, paths) :
 	files = []
 	for path in paths :
@@ -19,17 +20,23 @@
 def recursiveDirs(root) :
 	return filter( (lambda a : a.rfind( ".svn")==-1 ),  [ a[0] for a in os.walk(root)]  )
 
-
 env = Environment(ENV=os.environ, tools=['default'], options=options)
 options.Save('options.cache', env)
 Help(options.GenerateHelpText(env))
 
 env.SConsignFile() # Single signature file
 
+crosscompiling = env["crossmingw"]
+isWindowsPlatform = sys.platform=='win32' or crosscompiling
+isLinuxPlatform = sys.platform=='linux' and not crosscompiling
+isDarwinPlatform = sys.platform=='darwin'
+
 CLAMInstallDir = env['clam_prefix']
 clam_sconstoolspath = os.path.join(CLAMInstallDir,'share','clam','sconstools')
 CLAMVmQtPath = 'vmqt'
 
+if crosscompiling : 
+	env.Tool('crossmingw', toolpath=[clam_sconstoolspath])
 env.Tool('qt4', toolpath=[clam_sconstoolspath])
 env.Tool('clam', toolpath=[clam_sconstoolspath])
 env.Tool('nsis', toolpath=[clam_sconstoolspath])
@@ -43,7 +50,6 @@
 versionInfo.generateVersionSources(os.path.join('src','MusicAnnotatorVersion'), "MusicAnnotator", fullVersion)
 
 
-
 env['CXXFILESUFFIX'] = '.cxx'
 env['QT4_UICDECLSUFFIX'] = '.hxx'
 env['QT4_MOCHPREFIX'] = os.path.join('generated','moc_')
@@ -119,12 +125,12 @@
 uifiles = scanFiles("*.ui", sourcePaths)
 if uifiles: uiheaders = env.Uic4(source=uifiles)
 
-if sys.platform=="win32" :
+if isWindowsPlatform :
 	sources += env.RES(source=["resources/Annotator.rc"])
 
 env.Append(CPPPATH=includePaths)
 env.Append(LIBPATH=[CLAMVmQtPath])
-env.Append(LIBS="clam_vmqt4")
+env.Prepend(LIBS="clam_vmqt4")
 if sys.platform=='darwin' :
 	env.Append(CPPFLAGS='-DRESOURCES_BASE="\\"Annotator.app/Contents/Resources\\""')
 else :
@@ -160,12 +166,16 @@
 
 programs += [ env.Program(target='ChordExtractor', source = chordSources) ]
 
-"""
 onsetSources = scanFiles("*.cpp", ["src/OnsetExtractor"])
 onsetSources = filter ( (lambda a : a.rfind( "Test")==-1 ),  onsetSources )
 onsetSources = filter ( (lambda a : a.rfind( "cppunit")==-1 ),  onsetSources )
-programs += [ env.Program(target='OnsetExtractor', source = onsetSources, LIBS=['fftw3','sndfile']) ]
-"""
+fftwlib = "fftw3-3"
+fftwlibpath = []
+if sys.platform=="win32" or crosscompiling :
+	fftwlib="fftw3-3"
+	fftwlibpath.append("../../fftw3/lib")
+	fftwlibpath.append("../../libsndfile/lib")
+programs += [ env.Program(target='OnsetExtractor', source = onsetSources, LIBS=[fftwlib,'sndfile'], LIBPATH=fftwlibpath) ]
 
 env.Uic4(source="SimacServicesClient/GUI.ui")
 bocaClientSources = [
Index: CLAM/scons/sconstools/qt4.py
===================================================================
--- CLAM/scons/sconstools/qt4.py	(revision 10279)
+++ CLAM/scons/sconstools/qt4.py	(working copy)
@@ -57,6 +57,7 @@
 
 qrcinclude_re = re.compile(r'<file>([^<]*)</file>', re.M)
 
+crosscompiling=True
 
 header_extensions = [".h", ".hxx", ".hpp", ".hh"]
 if SCons.Util.case_sensitive_suffixes('.h', '.H'):
@@ -218,17 +219,20 @@
 
 	def locateQt4Command(env, command, qtdir) :
 		fullpath1 = os.path.join(qtdir,'bin',command +'-qt4')
-		if os.access(fullpath1, os.X_OK) or \
-			os.access(fullpath1+".exe", os.X_OK):
+		if os.access(fullpath1, os.X_OK) :
 			return fullpath1
+		if os.access(fullpath1+".exe", os.X_OK) :
+			return fullpath1+".exe"
 		fullpath3 = os.path.join(qtdir,'bin',command +'4')
-		if os.access(fullpath3, os.X_OK) or \
-			os.access(fullpath3+".exe", os.X_OK):
+		if os.access(fullpath3, os.X_OK) :
 			return fullpath3
+		if os.access(fullpath3+".exe", os.X_OK) :
+			return fullpath3+".exe"
 		fullpath2 = os.path.join(qtdir,'bin',command)
-		if os.access(fullpath2, os.X_OK) or \
-			os.access(fullpath2+".exe", os.X_OK):
+		if os.access(fullpath2, os.X_OK) :
 			return fullpath2
+		if os.access(fullpath2+".exe", os.X_OK) :
+			return fullpath2+".exe"
 		fullpath = env.Detect([command+'-qt4', command+'4', command])
 		if not (fullpath is None) : return fullpath
 		raise "Qt4 command '" + command + "' not found. Tried: " + fullpath1 + " and "+ fullpath2
@@ -406,7 +410,7 @@
 		self.AppendUnique(CPPFLAGS=['-DQT_GUI_LIB'])
 
 	debugSuffix = ''
-	if sys.platform == "linux2" :
+	if sys.platform == "linux2" and not crosscompiling :
 		if debug : debugSuffix = '_debug'
 		for module in modules :
 			if module not in pclessModules : continue
@@ -417,10 +421,10 @@
 		pcmodules = [module+debugSuffix for module in modules if module not in pclessModules ]
 		self.ParseConfig('pkg-config %s --libs --cflags'% ' '.join(pcmodules))
 		return
-	if sys.platform == "win32" :
+	if sys.platform == "win32" or crosscompiling :
 		if debug : debugSuffix = 'd'
 		self.AppendUnique(LIBS=[lib+'4'+debugSuffix for lib in modules if lib not in staticModules])
-		self.AppendUnique(LIBS=[lib+debugSuffix for lib in modules if lib in staticModules])
+		self.PrependUnique(LIBS=[lib+debugSuffix for lib in modules if lib in staticModules])
 		if 'QtOpenGL' in modules:
 			self.AppendUnique(LIBS=['opengl32'])
 		self.AppendUnique(CPPPATH=[ '$QTDIR/include/'+module
Index: CLAM/scons/sconstools/nsis.py
===================================================================
--- CLAM/scons/sconstools/nsis.py	(revision 10279)
+++ CLAM/scons/sconstools/nsis.py	(working copy)
@@ -1,4 +1,4 @@
-import re
+import re, os
 import SCons.Util
 nsisFiles_re = re.compile(r'^\s*File "([^"]*)"', re.M)
 
@@ -16,9 +16,12 @@
 
 	env['NSIS_MAKENSIS'] = 'makensis'
 	env['NSIS_OPTIONS'] = ''
+	def winToLocalReformat(path) :
+		return os.path.join(*path.split("\\"))
 	def scanNsisContent(node, env, path, arg):
 		contents = node.get_contents()
 		includes = nsisFiles_re.findall(contents)
+		includes = [ winToLocalReformat(include) for include in includes ]
 		return filter(lambda x: x.rfind('*')==-1, includes)
 	nsisscanner = env.Scanner(name = 'nsisfile',
 		function = scanNsisContent,
Index: CLAM/scons/libs/clam_dependent_libs_checks.py
===================================================================
--- CLAM/scons/libs/clam_dependent_libs_checks.py	(revision 10279)
+++ CLAM/scons/libs/clam_dependent_libs_checks.py	(working copy)
@@ -282,7 +282,8 @@
 	if env['xmlbackend'] in ('both','xmlpp') :
 		if env['pkg_config_available'] :
 			pkgconfig='pkg-config'
-			if crosscompiling : pkgconfig='PKG_CONFIG_PATH=%s/gtk/lib/pkg-config wine pkg-config'%env["clam_sandbox"]
+			if crosscompiling : pkgconfig='PKG_CONFIG_PATH=%s/gtk/lib/pkgconfig %s/gtk/bin/pkg-config.exe'%(env["sandbox_path"],env["sandbox_path"])
+			print pkgconfig
 			try : env.ParseConfig( pkgconfig+' --cflags --libs libxml++-2.6' )
 			except:
 				return config_error( "Error: pkg-config could not find libxml options." )
Index: CLAM/scons/libs/clam_build_helpers.py
===================================================================
--- CLAM/scons/libs/clam_build_helpers.py	(revision 10279)
+++ CLAM/scons/libs/clam_build_helpers.py	(working copy)
@@ -5,6 +5,8 @@
 
 import shelve  #TODO needed
 
+crosscompiling=True
+
 def generate_copy_files( target, source, env ) :
 	if sys.platform == 'win32' :
 		copyCmd = 'copy'
@@ -133,7 +135,11 @@
 def pkg_config_check_existence(context, *args, **kwargs):
 	name = kwargs['name']
 	context.Message( 'Checking for %s registered in pkg-config... ' % name )
-	ret = context.TryAction('pkg-config --exists \'%s\'' % name)[0]
+	if crosscompiling : 
+		pkgconfig = 'wine pkg-config'
+	else :
+		pkgconfig = 'pkg-config'
+	ret = context.TryAction('%s --exists \'%s\'' % (pkgconfig,name))[0]
 	context.Result( ret )
 	return ret
 
@@ -255,7 +261,11 @@
 
 def check_pkg_config(context, *args, **kwords):
 	context.Message( 'Checking for pkg-config... ' )
-	ret, _  = context.TryAction('pkg-config --help') 
+	if crosscompiling : 
+		pkgconfig = 'wine pkg-config'
+	else :
+		pkgconfig = 'pkg-config'
+	ret, _  = context.TryAction(pkgconfig + ' --help') 
 	context.Result( ret )
 	return ret
 
@@ -281,8 +291,8 @@
 		out = open(out_file, 'w' )
 
 		print >> out, "prefix = %s"%env['prefix']
-		print >> out, "libdir = %s\\lib"%env['prefix']
-		print >> out, "includedir = %s\\include"%env['prefix']
+		print >> out, "libdir = ${prefix}\\lib"
+		print >> out, "includedir = ${prefix}\\include"
 		print >> out
 		print >> out, "Name: %s"%self.name
 		print >> out, "Version: %s"%self.version
@@ -347,7 +357,7 @@
 	env.Prepend(LIBPATH=['../%s'%module for module in moduleDependencies])
 	#audioio_env.Append( ARFLAGS= ['/OPT:NOREF', '/OPT:NOICF', '/DEBUG'] )
 
-	if sys.platform != 'win32' :
+	if sys.platform != 'win32' and not crosscompiling :
 		return posix_lib_rules( name, version, headers , sources, install_dirs, env )
 	else :
 		return win32_lib_rules( name, version, headers , sources, install_dirs, env )
@@ -419,10 +429,13 @@
 	return tgt, install_tgt
 
 def win32_lib_rules( name, version, headers, sources, install_dirs, env, moduleDependencies =[] ) :
-	static_lib = env.Library( 'clam_' + name, sources )
-	tgt = env.Alias(name, static_lib)
+	if crosscompiling :
+		lib = env.SharedLibrary( 'clam_' + name, sources)
+	else :
+		lib = env.Library( 'clam_' + name, sources )
+	tgt = env.Alias(name, lib)
 	lib_descriptor = env.File( 'clam_'+name+'.pc' )
-	install_static = env.Install( install_dirs.lib, static_lib )
+	install_static = env.Install( install_dirs.lib, lib )
 	install_descriptor = env.Install( install_dirs.lib+'/pkgconfig', lib_descriptor )
 	install_headers = env.Install( install_dirs.inc+'/CLAM', headers )
 	install_tgt = env.Alias('install_'+name, [install_headers,install_static,install_descriptor])
@@ -451,7 +464,7 @@
 }
 """
 
-if sys.platform == 'win32' :
+if sys.platform == 'win32' or crosscompiling :
 	package_checks['check_xerces_c'] = ThoroughPackageCheck( 'xerces-c', 'c++', 'xerces-c_2', xerces_test_code )
 else :
 	package_checks['check_xerces_c'] = ThoroughPackageCheck( 'xerces-c', 'c++', 'xerces-c', xerces_test_code )
Index: CLAM/scons/libs/core/SConscript
===================================================================
--- CLAM/scons/libs/core/SConscript	(revision 10279)
+++ CLAM/scons/libs/core/SConscript	(working copy)
@@ -4,6 +4,8 @@
 
 Import('core_env version install_dirs')
 
+crosscompiling=True
+
 def define_module_contents(env) :
 	if not os.path.exists('src') :
 		os.mkdir('src')
@@ -33,7 +35,7 @@
 		'externals/CbLib',
 		]
 
-	if sys.platform == 'win32' :
+	if sys.platform == 'win32' or crosscompiling :
 		folders.append('src/Defines/Windows')
 	else :
 		folders.append('src/Defines/Unix')	
@@ -47,7 +49,7 @@
 		'FreewheelingNetworkPlayer',
 		]
 
-	if sys.platform == 'win32' :
+	if sys.platform == 'win32' or crosscompiling :
 		blacklist.append( 'Watchdog.+' )
 
 	if core_env['xmlbackend'] == 'xercesc' :
Index: CLAM/scons/libs/audioio/SConscript
===================================================================
--- CLAM/scons/libs/audioio/SConscript	(revision 10279)
+++ CLAM/scons/libs/audioio/SConscript	(working copy)
@@ -4,6 +4,8 @@
 
 Import('audioio_env version install_dirs')
 
+crosscompiling=True
+
 def define_module_contents(env) :
 	if not os.path.exists('src') :
 		os.mkdir('src')
@@ -42,11 +44,13 @@
 	if env['with_portmidi'] :
 		folders.append( 'src/Tools/PortMIDI' )
 
-	if sys.platform == 'linux2' :
+	if crosscompiling :
+		pass
+	elif sys.platform == 'linux2' :
 		if env['with_alsa'] :
 			folders.append( 'src/Tools/MIDIIO/Linux' )
 			folders.append( 'src/Tools/AudioIO/Linux')
-	elif sys.platform == 'win32':
+	elif sys.platform == 'win32' :
 		if env['audio_backend'] == 'rtaudio' :
 			print('using rtaudio')
 			folders += ['src/Tools/AudioIO/RtAudio'] #, 'src/Defines/Windows/CLAM_windows.h']
@@ -78,6 +82,7 @@
 		'main.cxx',
 		'GUIAudioApplication.*xx',
 		]
+	env.AppendUnique(LDFLAGS=["-Wl,--exclude-libs,ogg.lib"])
 
 	file_retriever = FileRetriever( '../../..', folders, blacklist )
 
Index: CLAM/src/Standard/Array.cxx
===================================================================
--- CLAM/src/Standard/Array.cxx	(revision 10279)
+++ CLAM/src/Standard/Array.cxx	(working copy)
@@ -23,6 +23,7 @@
 
 namespace CLAM
 {
+/*
 #define CLAM_NUMERIC_ARRAY_INITIALIZATION(Type)          \
 template<>                                              \
 void Array<Type>::InitializeElement(int i)              \
@@ -43,7 +44,7 @@
 CLAM_NUMERIC_ARRAY_INITIALIZATION(float)
 
 
-/** And fast spetialization for basic types */
+/// And fast spetialization for basic types
 
 #define CLAM_FAST_ARRAY_SPECIALIZATIONS(TYPE)                           \
 template<>                                                             \
@@ -99,7 +100,7 @@
 CLAM_FAST_ARRAY_SPECIALIZATIONS(signed char)
 CLAM_FAST_ARRAY_SPECIALIZATIONS(double)
 CLAM_FAST_ARRAY_SPECIALIZATIONS(float)
+*/
 
-
 }
 
Index: CLAM/SConstruct
===================================================================
--- CLAM/SConstruct	(revision 10279)
+++ CLAM/SConstruct	(working copy)
@@ -9,7 +9,7 @@
 from clam_build_helpers import *
 from clam_dependent_libs_checks import *
 # TODO: Must solve the dependency loop of options and platforms
-crosscompiling = False
+crosscompiling = True
 isWindowsPlatform = sys.platform=='win32' or crosscompiling
 isLinuxPlatform = sys.platform=='linux2' and not crosscompiling
 isDarwinPlatform = sys.platform=='darwin'
