Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve Windows Build #272

Merged
merged 3 commits into from
Oct 23, 2017
Merged

Improve Windows Build #272

merged 3 commits into from
Oct 23, 2017

Conversation

matthax
Copy link
Contributor

@matthax matthax commented Oct 21, 2017

Execute nuget restore before we build the librdkafka project, so that windows users will have the required nuget dependencies for the build. Improves #248 and should hopefully be enough to close #45

MBark201 added 3 commits October 21, 2017 09:00
Force the windows build process to execute a nuget restore against the librdkafka solution, so that the required zlib dependencies are built before the librdkafka project requires them.
gyp was corrupting the output files when it tried to link them so an empty array will have to suffice.
@webmakersteve webmakersteve merged commit c13e7d6 into Blizzard:master Oct 23, 2017
@sawdiggy
Copy link

Hi

I already posted this as an issue, but nuget does not seem to run the restore during npm install, is there a way to explicitly run it?

I've already set up VS to automatically check and download missing packages.

Thanks

@matthax
Copy link
Contributor Author

matthax commented Oct 24, 2017

This merge added that functionality, when did you test this? And did you make sure nuget is available in your path?

@sawdiggy
Copy link

Definitely have nuget in my path. I'm pulling it from the public npm, appears to be installing 2.1.1. Not sure if it's related, but I have VS 2013 Express installed (doesn't appear you can download older versions without an MSDN license).

@matthax
Copy link
Contributor Author

matthax commented Oct 24, 2017

Don't think NPM reflects the bleeding-edge updates here. Try installing from the repo.

@sawdiggy
Copy link

Fixes the Nuget issue, but still doesn't build

Build FAILED.

"C:\dev\poc\proj\projcoreservices\proj-r\node_modules\node-rdkafka\deps\librdkafka\win32\librdkafka.sln" (librdkafkacpp target) (1) ->
"C:\dev\poc\proj\projcoreservices\proj-r\node_modules\node-rdkafka\deps\librdkafka\win32\librdkafkacpp\librdkafkacpp.vcxproj.metaproj" (default target) (2) ->
"C:\dev\poc\proj\projcoreservices\proj-r\node_modules\node-rdkafka\deps\librdkafka\win32\librdkafka.vcxproj" (default target) (3) ->
(ClCompile target) ->
..\src\snappy.c(39): warning C4068: unknown pragma [C:\dev\poc\proj\projcoreservices\proj-r\node_modules\node-rdkafka\deps\librdkafka\win32\librdkafka.vcxproj] [C:\dev\poc\proj\projcoreservices\proj-r\node_modules\node-rdkafka\deps\librdkafkacpp.vcxproj]
..\src\snappy.c(40): warning C4068: unknown pragma [C:\dev\poc\proj\projcoreservices\proj-r\node_modules\node-rdkafka\deps\librdkafka\win32\librdkafka.vcxproj] [C:\dev\poc\proj\projcoreservices\proj-r\node_modules\node-rdkafka\deps\librdkafkacpp.vcxproj]
..\src\snappy.c(1204): warning C4133: 'function' : incompatible types - from 'int *' to 'size_t *' [C:\dev\poc\proj\projcoreservices\proj-r\node_modules\node-rdkafka\deps\librdkafka\win32\librdkafka.vcxproj] [C:\dev\poc\proj\projcoreservices\proj-r\node_modules\node-rdkafka\deps\librdkafkacpp.vcxproj]
..\src\snappy.c(1834): warning C4068: unknown pragma [C:\dev\poc\proj\projcoreservices\proj-r\node_modules\node-rdkafka\deps\librdkafka\win32\librdkafka.vcxproj] [C:\dev\poc\proj\projcoreservices\proj-r\node_modules\node-rdkafka\deps\librdkafkacpp.vcxproj]

"C:\dev\poc\proj\projcoreservices\proj-r\node_modules\node-rdkafka\deps\librdkafka\win32\librdkafka.sln" (librdkafkacpp target) (1) ->
"C:\dev\poc\proj\projcoreservices\proj-r\node_modules\node-rdkafka\deps\librdkafka\win32\librdkafkacpp\librdkafkacpp.vcxproj.metaproj" (default target) (2) ->
"C:\dev\poc\proj\projcoreservices\proj-r\node_modules\node-rdkafka\deps\librdkafka\win32\librdkafka.vcxproj" (default target) (3) ->
(ClCompile target) ->
..\src\snappy.c(1203): error C2275: 'size_t' : illegal use of this type as an expression [C:\dev\poc\proj\projcoreservices\proj-r\node_modules\node-rdkafka\deps\librdkafka\win32\librdkafka.vcxproj] [C:\dev\poc\proj\projcoreservices\proj-r\node_modules\node-rdkafka\deps\librdkafkacpp.vcxproj]
..\src\snappy.c(1203): error C2146: syntax error : missing ';' before identifier 'n' [C:\dev\poc\proj\projcoreservices\proj-r\node_modules\node-rdkafka\deps\librdkafka\win32\librdkafka.vcxproj] [C:\dev\poc\proj\projcoreservices\proj-r\node_modules\node-rdkafka\deps\librdkafkacpp.vcxproj]
..\src\snappy.c(1203): error C2065: 'n' : undeclared identifier [C:\dev\poc\proj\projcoreservices\proj-r\node_modules\node-rdkafka\deps\librdkafka\win32\librdkafka.vcxproj] [C:\dev\poc\proj\projcoreservices\proj-r\node_modules\node-rdkafka\deps\librdkafkacpp.vcxproj]
..\src\snappy.c(1204): error C2065: 'n' : undeclared identifier [C:\dev\poc\proj\projcoreservices\proj-r\node_modules\node-rdkafka\deps\librdkafka\win32\librdkafka.vcxproj] [C:\dev\poc\proj\projcoreservices\proj-r\node_modules\node-rdkafka\deps\librdkafkacpp.vcxproj]
..\src\snappy.c(1205): error C2065: 'n' : undeclared identifier [C:\dev\poc\proj\projcoreservices\proj-r\node_modules\node-rdkafka\deps\librdkafka\win32\librdkafka.vcxproj] [C:\dev\poc\proj\projcoreservices\proj-r\node_modules\node-rdkafka\deps\librdkafkacpp.vcxproj]
..\src\snappy.c(1207): error C2143: syntax error : missing ';' before 'const' [C:\dev\poc\proj\projcoreservices\proj-r\node_modules\node-rdkafka\deps\librdkafka\win32\librdkafka.vcxproj] [C:\dev\poc\proj\projcoreservices\proj-r\node_modules\node-rdkafka\deps\librdkafkacpp.vcxproj]
..\src\snappy.c(1209): error C2065: 'c' : undeclared identifier [C:\dev\poc\proj\projcoreservices\proj-r\node_modules\node-rdkafka\deps\librdkafka\win32\librdkafka.vcxproj] [C:\dev\poc\proj\projcoreservices\proj-r\node_modules\node-rdkafka\deps\librdkafkacpp.vcxproj]
..\src\snappy.c(1210): error C2065: 'c' : undeclared identifier [C:\dev\poc\proj\projcoreservices\proj-r\node_modules\node-rdkafka\deps\librdkafka\win32\librdkafka.vcxproj] [C:\dev\poc\proj\projcoreservices\proj-r\node_modules\node-rdkafka\deps\librdkafkacpp.vcxproj]
..\src\snappy.c(1356): error C2275: 'u32' : illegal use of this type as an expression [C:\dev\poc\proj\projcoreservices\proj-r\node_modules\node-rdkafka\deps\librdkafka\win32\librdkafka.vcxproj] [C:\dev\poc\proj\projcoreservices\proj-r\node_modules\node-rdkafka\deps\librdkafkacpp.vcxproj]
..\src\snappy.c(1356): error C2146: syntax error : missing ';' before identifier 'to_add' [C:\dev\poc\proj\projcoreservices\proj-r\node_modules\node-rdkafka\deps\librdkafka\win32\librdkafka.vcxproj] [C:\dev\poc\proj\projcoreservices\proj-r\node_modules\node-rdkafka\deps\librdkafkacpp.vcxproj]
..\src\snappy.c(1356): error C2065: 'to_add' : undeclared identifier [C:\dev\poc\proj\projcoreservices\proj-r\node_modules\node-rdkafka\deps\librdkafka\win32\librdkafka.vcxproj] [C:\dev\poc\proj\projcoreservices\proj-r\node_modules\node-rdkafka\deps\librdkafkacpp.vcxproj]
..\src\snappy.c(1357): error C2065: 'to_add' : undeclared identifier [C:\dev\poc\proj\projcoreservices\proj-r\node_modules\node-rdkafka\deps\librdkafka\win32\librdkafka.vcxproj] [C:\dev\poc\proj\projcoreservices\proj-r\node_modules\node-rdkafka\deps\librdkafkacpp.vcxproj]
..\src\snappy.c(1358): error C2065: 'to_add' : undeclared identifier [C:\dev\poc\proj\projcoreservices\proj-r\node_modules\node-rdkafka\deps\librdkafka\win32\librdkafka.vcxproj] [C:\dev\poc\proj\projcoreservices\proj-r\node_modules\node-rdkafka\deps\librdkafkacpp.vcxproj]
..\src\snappy.c(1359): error C2065: 'to_add' : undeclared identifier [C:\dev\poc\proj\projcoreservices\proj-r\node_modules\node-rdkafka\deps\librdkafka\win32\librdkafka.vcxproj] [C:\dev\poc\proj\projcoreservices\proj-r\node_modules\node-rdkafka\deps\librdkafkacpp.vcxproj]

  4 Warning(s)
  14 Error(s)

Time Elapsed 00:00:26.58
Copying C:\dev\poc\proj\projcoreservices\proj-r\node_modules\node-rdkafka/deps/librdkafka/win32/outdir/v120/x64/Release/librdkafka.dll to C:\dev\poc\proj\projcoreservices\proj-r\node_modules\node-rdkafka/build/Release\librdkafka.dll
The system cannot find the file specified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

node-rdkafka does not compile on Windows
3 participants