Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • L libgxps
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1
    • Issues 1
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • libgxps
  • Merge requests
  • !5

Fix mingw-w64 build

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Wolfgang Stöggl requested to merge stoegglw/libgxps:2021-08-09_Fix_mingw-w64_build into master Aug 09, 2021
  • Overview 3
  • Commits 1
  • Pipelines 0
  • Changes 1

Add common_flags and common_ldflags to libgxps/meson.build, which are required in case of mingw-w64 builds.

  • For mingw-w64 builds, COBJMACROS needs to be defined before any #include <jpeglib.h>, because jpeglib.h includes shlwapi.h, which provides a different IStream_Write and lacks IStream_Release.
    The correct include for IStream_Write and IStream_Release is objidl.h
    Fixes:
    gxps-images.c:1042:4: error: too many arguments to function 'IStream_Write'
    gxps-images.c:1058:2: error: implicit declaration of function 'IStream_Release'
  • mingw-w64 builds require linking with libwindowscodecs
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: 2021-08-09_Fix_mingw-w64_build