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

[qt5] fails to build on linux due to atlmfc dependency #4645

Closed
dantti opened this issue Nov 3, 2018 · 5 comments
Closed

[qt5] fails to build on linux due to atlmfc dependency #4645

dantti opened this issue Nov 3, 2018 · 5 comments
Labels
category:port-bug The issue is with a library, which is something the port should already support

Comments

@dantti
Copy link
Contributor

dantti commented Nov 3, 2018

Hi,
I'm trying to add a new package (cutelyst) that depends on Qt5, when I vcpkg install qt5 I get an issue when with atlmfc package:

daniel@bart:~/code/vcpkg$ ./vcpkg install atlmfc
The following packages will be built and installed:
    atlmfc[core]:x64-linux
Starting package 1/1: atlmfc:x64-linux
Building package atlmfc[core]:x64-linux... 
CMake Error at ports/atlmfc/portfile.cmake:7 (message):
  Unable to locate 'afxres.h'.  Ensure you have installed the ATL/MFC
  component of Visual Studio.
Call Stack (most recent call first):
  scripts/ports.cmake:71 (include)


Error: Building package atlmfc:x64-linux failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `.\vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
  Package: atlmfc:x64-linux
  Vcpkg version: 2018.10.20-unknownhash

Additionally, attach any relevant sections from the log files above.
@carmangary
Copy link

atlmfc is a windows only package. seems odd that qt5 would reference it.

@dantti
Copy link
Contributor Author

dantti commented Nov 3, 2018

It seems the problem is that:

  • qt5-winextras[core]:x64-linux
    Wants to be installed which requires atlmfc, vcpkg should be pulling qt5-x11extras instead

@dantti
Copy link
Contributor Author

dantti commented Nov 3, 2018

How one can make
https://github.com/Microsoft/vcpkg/blob/master/ports/qt5/CONTROL#L4
platform dependant?

@PhoebeHui PhoebeHui added the category:port-bug The issue is with a library, which is something the port should already support label Feb 21, 2019
@Rastaban
Copy link
Contributor

qt4-winextras is a windows only Qt5 plugin so it is okay that it references it. It looks like someone added qt5-winextras (windows) to the dependency list since this PR, so it should be platform dependent now.

@Rastaban Rastaban changed the title atlmfc fails to build on Linux [qt5] fails to build on linux due to atlmfc dependency Jul 17, 2019
@JackBoosY
Copy link
Contributor

Now we can build qt5 in linux, but some qt5 components like qt5-activeqt and qt5-winextras only support windows.
See here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support
Projects
None yet
Development

No branches or pull requests

5 participants