Kode / Krom

Other
97 stars 23 forks source link

Can't build—Win10, VS2017, x64 #94

Closed hamaluik closed 6 years ago

hamaluik commented 6 years ago

Hey, I can't get Chakra to build under Windows 10 with VS2017 (haven't tried other systems).

In the Chakra.Backend project I get a ton of errors:

E1907 unknown attribute "guard"

which I think then leads to:

LNK2001 unresolved external symbol "void __cdecl ChakraBinaryAutoSystemInfoInit(class AutoSystemInfo *)" (?ChakraBinaryAutoSystemInfoInit@@YAXPEAVAutoSystemInfo@@@Z)
LNK1120 1 unresolved externals

Any ideas?

Thanks!

RobDangerous commented 6 years ago

Did you switch to x64 as your title says or does that refer to your system? In the latter case make it the former.

hamaluik commented 6 years ago

My system is x64. Tried building (in order):

All with the same result.

(if it's any help, this is the build output:

1>------ Skipped Build: Project: pal, Configuration: Debug x64 ------
1>Project not selected to build for this solution configuration 
2>------ Build started: Project: ChakraCore, Configuration: Debug x64 ------
2>ChakraCoreDllFunc.cpp
2>d:\projects\rejoyce\expeditions\krom\krom\chakra\bin\chakracore\chakracoredllfunc.cpp(69): error C2220: warning treated as error - no 'object' file generated
2>d:\projects\rejoyce\expeditions\krom\krom\chakra\bin\chakracore\chakracoredllfunc.cpp(69): warning C4189: 'engine': local variable is initialized but not referenced
2>Done building project "ChakraCore.vcxproj" -- FAILED.
3>------ Build started: Project: NativeTests, Configuration: Debug x64 ------
4>------ Build started: Project: ch, Configuration: Debug x64 ------
4>LINK : fatal error LNK1181: cannot open input file 'D:\Projects\rejoyce\expeditions\krom\Krom\Chakra\Build\VcBuild\bin\x64_debug\ChakraCore.lib'
4>Done building project "ch.vcxproj" -- FAILED.
3>LINK : fatal error LNK1181: cannot open input file 'D:\Projects\rejoyce\expeditions\krom\Krom\Chakra\Build\VcBuild\bin\x64_debug\ChakraCore.lib'
3>Done building project "NativeTests.vcxproj" -- FAILED.
========== Build: 0 succeeded, 3 failed, 33 up-to-date, 1 skipped ==========
RobDangerous commented 6 years ago

Ah, you're just talking about building the sln. That shouldn't matter, we just need some generated c files from that, just go to the second step and run Kore/make, then compile the generated sln in the build subdir, that'll take care of the actual Chakra compilation.

hamaluik commented 6 years ago

Ahh, thanks. The README wasn't super clear on that. Thanks!

RobDangerous commented 6 years ago

Still early days with Chakra, I'll eventually get rid of that first step.