Skip to content

Alure libraries can't be linked dynamically on Windows #43

Description

@Huy-Ngo

When I tried to build Windows wheel for palace, I has successfully installed OpenAL and alure libraries. However, when the wheel is being built, it is as if these libraries are not there.

Building Custom Rule C:/projects/alure/CMakeLists.txt
  -- Install configuration: "Release"
  -- Installing: C:/Program Files (x86)/alure/lib/alure2.lib
  -- Installing: C:/Program Files (x86)/alure/bin/alure2.dll
  -- Installing: C:/Program Files (x86)/alure/lib/alure2_s.lib
  -- Installing: C:/Program Files (x86)/alure/lib/cmake/Alure2/Alure2Config.cmake
  -- Installing: C:/Program Files (x86)/alure/lib/cmake/Alure2/Alure2Config-release.cmake
  -- Installing: C:/Program Files (x86)/alure/include/AL/alure2.h
  -- Installing: C:/Program Files (x86)/alure/include/AL/alure2-aliases.h
  -- Installing: C:/Program Files (x86)/alure/include/AL/alure2-typeviews.h
  -- Installing: C:/Program Files (x86)/alure/include/AL/alure2-alext.h
  -- Installing: C:/Program Files (x86)/alure/include/AL/efx.h
  -- Installing: C:/Program Files (x86)/alure/include/AL/efx-presets.h
...
  LINK : fatal error LNK1181: cannot open input file 'libalure2-NOTFOUND.obj'
  error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\link.exe' failed with exit status 1181

Please take a look at the full log

Here is the CMakeLists.txt file:

cmake_minimum_required(VERSION 2.6.0)
project(palace)
find_package(Alure2 REQUIRED CONFIG)

get_target_property(include_dirs Alure2::alure2 INTERFACE_INCLUDE_DIRECTORIES)
message("alure2_include_dirs=${include_dirs}")

get_target_property(link_libraries Alure2::alure2 INTERFACE_LINK_LIBRARIES)
get_target_property(libalure2 Alure2::alure2 IMPORTED_LOCATION_NOCONFIG)
message("alure2_extra_objects=${link_libraries};${libalure2}")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions