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

Expat Build error with VS2019 #9

Open
DubStepMad opened this issue Dec 31, 2019 · 14 comments
Open

Expat Build error with VS2019 #9

DubStepMad opened this issue Dec 31, 2019 · 14 comments
Labels
help wanted Extra attention is needed windows Windows specific issue

Comments

@DubStepMad
Copy link

Expat/2.2.6@pix4d/stable: Expat/2.2.6@pix4d/stable: ERROR: Package 'eb4102e772b530edfbc4b0e1be0c1f346423e000' build failed Expat/2.2.6@pix4d/stable: WARN: Build folder C:\Users\{USERNAME}\.conan\data\Expat\2.2.6\pix4d\stable\build\eb4102e772b530edfbc4b0e1be0c1f346423e000 ERROR: Expat/2.2.6@pix4d/stable: Error in build() method, line 45 cmake.configure(source_dir="../libexpat/expat", build_dir="build", defs=cmake_args) ConanException: Error 1 while executing cd build && cmake -G "Visual Studio 16 2019" -A "x64" -DCONAN_LINK_RUNTIME="/MDd" -DCONAN_IN_LOCAL_CACHE="ON" -DCONAN_COMPILER="Visual Studio" -DCONAN_COMPILER_VERSION="16" -DCONAN_CXX_FLAGS="/MP16" -DCONAN_C_FLAGS="/MP16" -DBUILD_SHARED_LIBS="OFF" -DCMAKE_INSTALL_PREFIX="C:\Users\{USERNAME}\.conan\data\Expat\2.2.6\pix4d\stable\package\eb4102e772b530edfbc4b0e1be0c1f346423e000" -DCMAKE_INSTALL_BINDIR="bin" -DCMAKE_INSTALL_SBINDIR="bin" -DCMAKE_INSTALL_LIBEXECDIR="bin" -DCMAKE_INSTALL_LIBDIR="lib" -DCMAKE_INSTALL_INCLUDEDIR="include" -DCMAKE_INSTALL_OLDINCLUDEDIR="include" -DCMAKE_INSTALL_DATAROOTDIR="share" -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY="ON" -DCONAN_EXPORTED="1" -Wno-dev -DBUILD_doc="OFF" -DBUILD_examples="OFF" -DBUILD_shared="False" -DBUILD_tests="OFF" -DBUILD_tools="OFF" -DCMAKE_POSITION_INDEPENDENT_CODE="ON" -DCMAKE_DEBUG_POSTFIX="" -DMSVC_USE_STATIC_CRT="False" ../libexpat/expat

@Lihis
Copy link
Owner

Lihis commented Dec 31, 2019

I would say that this is not our issue but rather Conan/Expat issue related to Visual Studio 2019 as with Visual Studio 2017 there is no problems. Will you be able to resolve this by yourself? If it is issue on Conan or Expat feel free to link the related issue. Or open pull request if we need to change something to make it work with VS2019.

@Lihis Lihis added the windows Windows specific issue label Dec 31, 2019
@DubStepMad
Copy link
Author

I would say that this is not our issue but rather Conan/Expat issue related to Visual Studio 2019 as with Visual Studio 2017 there is no problems. Will you be able to resolve this by yourself? If it is issue on Conan or Expat feel free to link the related issue. Or open pull request if we need to change something to make it work with VS2019.

Thank you for the quick response and I'll see if there are any fixes available otherwise I will install VS2015.

Thank you for your help.

@DubStepMad
Copy link
Author

DubStepMad commented Jan 1, 2020

@Lihis Not sure which package you are using but found out that the main Expat is now deprecated: https://github.com/bincrafters/conan-expat

Updated version is: https://github.com/libexpat/libexpat

I hope this helps to resolve the issue.

@Lihis
Copy link
Owner

Lihis commented Jan 4, 2020

wxWidgets seems to be the one pulling in the Expat as a dependency. Does it work with VS2019 if you make Conan to pull in the latest stable release of Expat a.k.a 2.2.9?

Answering the question about VS2015 in the different issue; like I said above, building should work in Visual Studio 2017.

@DubStepMad
Copy link
Author

DubStepMad commented Jan 5, 2020

@Lihis installed VS2017 and the CMake extentsion but now getting a different error:

`Expat/2.2.6@pix4d/stable: WARN: Can't find a 'Expat/2.2.6@pix4d/stable' package for the specified settings, options and dependencies:

  • Settings: arch=x86_64, build_type=Debug, compiler=Visual Studio, compiler.runtime=MDd, compiler.version=16, os=Windows
  • Options: disable_getrandom=True, shared=False, static_crt=False
  • Dependencies:
  • Package ID: eb4102e772b530edfbc4b0e1be0c1f346423e000`

Managed to bypass it with --build missing

@doouz
Copy link
Contributor

doouz commented Jan 5, 2020

If help, I compiled the gui and plugin like 10 minutes ago without problems, following the instructions on readme for windows. Using Visual Studio 2017 x64 + Visual Studio Tools. As said in the instructions, I used conan to install dependencies.

@Lihis
Copy link
Owner

Lihis commented Jan 5, 2020

That's good. Unfortunately I can't help much with Windows stuff so I'll edit the title to indicate that this is VS2019 specific issue and leave this open for now.

@Lihis Lihis changed the title Expat Build error Expat Build error with VS2019 Jan 5, 2020
@Lihis Lihis added the help wanted Extra attention is needed label Jan 5, 2020
@DubStepMad
Copy link
Author

If help, I compiled the gui and plugin like 10 minutes ago without problems, following the instructions on readme for windows. Using Visual Studio 2017 x64 + Visual Studio Tools. As said in the instructions, I used conan to install dependencies.

I've followed the instructions and used VS2017 but still have issues.

@Lihis
Copy link
Owner

Lihis commented Jan 24, 2020

Comparing the output from AppVeyor build and what you had pasted above and I see the compiler.version is different. In AppVeyor it is 15 while you have 16. Is it so that version 16 is shipped with VS2019 while version 15 is shipped with VS2017?

Also the error message in the first message does not tell much, except execution failed, but who knows why it failed, there wasn't any details?

@DubStepMad

This comment has been minimized.

@DubStepMad

This comment has been minimized.

@doouz

This comment has been minimized.

@Lihis

This comment has been minimized.

@doouz

This comment has been minimized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed windows Windows specific issue
Projects
None yet
Development

No branches or pull requests

3 participants