I've successfully compiled, linked, and started lyx_qt4.exe using scons on windows with msvc.
But I've used the gnuwin32 package (without renaming), and I have to fix the unistd.h including in zconf.h (#if 1 -> #if 0), but this could also be fixed by adding somewhere a dummy unistd.h. But generating project files seems much more complicated than changing a command line parameter. :( Here is a diff against head: Index: development/scons/SConstruct =================================================================== --- development/scons/SConstruct (Revision 13964) +++ development/scons/SConstruct (Arbeitskopie) @@ -551,10 +551,20 @@ env['HAS_PKG_CONFIG'] = env_cache['HAS_PKG_CONFIG'] # zlib? This is required. (fast_start assumes the existance of zlib) -if not fast_start and not conf.CheckLibWithHeader('z', 'zlib.h', 'C'): - print 'Did not find libz or zlib.h, exiting!' +#if not fast_start and not conf.CheckLibWithHeader('z', 'zlib.h', 'C'): +if not fast_start: + if not use_vc and not conf.CheckLibWithHeader('z', 'zlib.h', 'C'): + print 'Did not find libz.lib or zlib.h, exiting!' Exit(1) - + if use_vc: + if not conf.CheckHeader('zlib.h'): + print 'Did not find zlib.h, exiting!' + Exit(1) + if not conf.CheckLib('zlib'): + print 'Did not find zlib.lib, exiting!' + Exit(1) + + # qt libraries? if not fast_start: # env_functions = [ ('asprintf', 'HAVE_ASPRINTF'), ('wprintf', 'HAVE_WPRINTF'), @@ -1124,11 +1137,10 @@ if platform_name in ['win32', 'cygwin']: # the final link step needs stdc++ to succeed under mingw # FIXME: shouldn't g++ automatically link to stdc++? - env['SYSTEM_LIBS'] = ['shlwapi', 'z'] if use_vc: - env['SYSTEM_LIBS'].extend(['gdi32', 'shell32', 'advapi32']) + env['SYSTEM_LIBS'] = ['shlwapi', 'gdi32', 'shell32', 'advapi32', 'zlib'] else: - env['SYSTEM_LIBS'].append('stdc++') + env['SYSTEM_LIBS'] = ['shlwapi', 'stdc++', 'z'] else: env['SYSTEM_LIBS'] = ['z'] Bo Peng wrote: > Dear all, > > The basic support for msvc2003/2005 is now in svn. Please test. > > Step 1: install scons-0.96.92 > > Step 2: add > boost/boost/type_traits/detail/is_function_ptr_tester.hpp > boost/boost/type_traits/detail/is_mem_fun_pointer_tester.hpp > boost/boost/detail/interlocked.hpp > boost/boost/regex/v4/w32_regex_traits.hpp > > Step 3: download the official zlib dll package, unzip to (for example) > d:\msvc-libs . copy zdll.lib to z.lib (cheating) > > I need help on this issue. This rename seems to make the built lyx > unusable. > > step 4: svn update > > Step 5: run command: > scons -f development/scons/SConstruct use_vc=yes frontend=qt4 > qt_dir=d:/qt/4.1.3-vc2005 > extra_inc_path=d:/MSVC-Libs/include > extra_lib_path=d:/MSVC-Libs/lib > boost=included > nls=no warnings=no > > > Cheers, > Bo > >