Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Building on windows 10 x64 #65

Closed
AdamMachera opened this issue Dec 6, 2016 · 5 comments
Closed

Building on windows 10 x64 #65

AdamMachera opened this issue Dec 6, 2016 · 5 comments

Comments

@AdamMachera
Copy link

If I try to build gateway sdk on windows 10 with x64 cmake (cmake-3.7.1-win64-x64.msi) I'm getting bunch of exceptions.
To build solution I'm using
build.cmd --config Release --platform x64 --skip-unittests --disable-ble-module --enable-dotnet-binding

Sample exception:
gateway.lib(module_loader.obj) : error LNK2001: unresolved external symbol VECTOR_size [c:\s\azure-iot-gateway
-sdk\build\bindings\dotnet\dotnet.vcxproj]
gateway.lib(gateway_internal.obj) : error LNK2001: unresolved external symbol VECTOR_size [c:\s\azure-iot-gate
way-sdk\build\bindings\dotnet\dotnet.vcxproj]
gateway.lib(gateway.obj) : error LNK2019: unresolved external symbol VECTOR_front referenced in function Gatew
ay_DestroyModuleList [c:\s\azure-iot-gateway-sdk\build\bindings\dotnet\dotnet.vcxproj]

Whole output attached to issue.

build.docx

@andrew-buckley
Copy link
Contributor

Hi @AdamMachera, from your CMake output it seems like you already have the dependencies installed from a previous build of the project. Can you look in c:\s\azure-iot-gateway-sdk\install-deps and tell me if that directory is non-empty. If there are already dependencies installed there from a 32-bit build of the project, it will try to use these 32-bit dependencies with your 64-bit build and it may be why this is failing.

Can you try deleting that directory and rerunning your build command?

@AdamMachera
Copy link
Author

AdamMachera commented Dec 9, 2016 via email

@AdamMachera
Copy link
Author

AdamMachera commented Dec 9, 2016 via email

@AdamMachera
Copy link
Author

AdamMachera commented Dec 9, 2016 via email

@damonbarry
Copy link
Member

Were you able to build sdk for windows in 64 bits on your end?

Yes, our CI server builds for 64-bit Windows whenever we push commits to the repository.

I was able to build it but there is some postbuild event that is failing.
Please find output of my build process:

Did you resolve this issue? You pasted your build log into the comment, but it appears to have been truncated. Can you attach the log file to your next GitHub comment (drag & drop into comment window) instead of pasting contents?

Finally, are there any other unresolved issues in this thread?

Thanks!
Damon

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

No branches or pull requests

3 participants