Skip to content

Fix poco build on osx and linux #4223

@ruurdadema

Description

@ruurdadema

Installing poco on OS X and Linux (./vcpkg install poco) failes with error:

CMake Error at ports/poco/portfile.cmake:49 (file):
  file RENAME failed to rename

    /Users/ruurd/dev/vcpkg-original/packages/poco_x64-osx/bin/cpspc.exe

  to

    /Users/ruurd/dev/vcpkg-original/packages/poco_x64-osx/tools/cpspc.exe

  because: No such file or directory

Call Stack (most recent call first):
  scripts/ports.cmake:71 (include)


Error: Building package poco:x64-osx 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: poco:x64-osx
  Vcpkg version: 0.0.113-unknownhash

This is happening because building on OS X and Linux does not produce .exe files (but instead executables without extension).

On Linux installing Poco also results in this error:

CMake Error at scripts/cmake/vcpkg_fixup_cmake_targets.cmake:42 (message):
  '/root/dev/vcpkg/packages/poco_x64-linux/debug/lib/cmake/poco' does not
  exist.
Call Stack (most recent call first):
  ports/poco/portfile.cmake:72 (vcpkg_fixup_cmake_targets)
  scripts/ports.cmake:71 (include)


Error: Building package poco: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: poco:x64-linux
  Vcpkg version: 0.0.113-unknownhash

Which seems to be an issue caused by case-sensitivity.

Please have a look at the mentioned pull request, it fixes this issues. Tested on OS X and Linux.

Metadata

Metadata

Assignees

No one assigned

    Labels

    category:port-bugThe issue is with a library, which is something the port should already support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions