foresterre / fork.wren

The Wren Programming Language
http://munificent.github.io/wren/
MIT License
0 stars 0 forks source link

Windows build fails on libuv (visual studio (2015)) #2

Open foresterre opened 8 years ago

foresterre commented 8 years ago

Includes from libuv are not added to visual studio project (or recognized by visual studio).

1>------ Build started: Project: wren_lib, Configuration: Debug Win32 ------ 1> wren_opt_random.c 1> wren_opt_meta.c 1> wren_vm.c 1> wren_value.c 1> wren_utils.c 1> wren_primitive.c 1> wren_debug.c 1> wren_core.c 1> wren_compiler.c 1> Generating Code... 1> wren_lib.vcxproj -> \wren\util\msvc2013....\lib\Debug\wren_static_d.lib 2>------ Build started: Project: wren, Configuration: Debug Win32 ------ 2> timer.c 2>\wren\src\module\timer.c(4): fatal error C1083: Cannot open include file: 'uv.h': No such file or directory 2> scheduler.c 2>\wren\src\module\scheduler.c(4): fatal error C1083: Cannot open include file: 'uv.h': No such file or directory 2> io.c 2>\wren\src\module\io.c(4): fatal error C1083: Cannot open include file: 'uv.h': No such file or directory 2> vm.c 2>\wren\src\cli\vm.h(4): fatal error C1083: Cannot open include file: 'uv.h': No such file or directory 2> modules.c 2> main.c 2>\wren\src\cli\vm.h(4): fatal error C1083: Cannot open include file: 'uv.h': No such file or directory 2> Generating Code... ========== Build: 1 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

foresterre commented 8 years ago

after adding the include directory of libuv:

1>------ Build started: Project: wren, Configuration: Debug Win32 ------ 1> timer.c 1> scheduler.c 1> io.c 1> vm.c 1> main.c 1> Generating Code... 1> libuv.lib(core.obj) : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance 1>LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/LTCG' specification 1>main.obj : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/OPT:LBR' specification 1>LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library 1>main.obj : error LNK2001: unresolved external symbol _processSetArguments 1>modules.obj : error LNK2001: unresolved external symbol _processAllArguments 1>\wren\util\msvc2013....\bin\Debug\wren.exe : fatal error LNK1120: 2 unresolved externals

foresterre commented 8 years ago

PS X:\NetworkBuild\libuv-1.6.0> .\vcbuild.bat ['-Dtarget_arch=ia32', '-Duv_library=static_library', '.\uv.gyp', '-I', '.\common.gypi', '--depth=.', '-Dhost_arch=AMD64', '-Dcomponent=static_library'] Failed to create vc project files.