Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • otb otb
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 205
    • Issues 205
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 13
    • Merge requests 13
  • 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
  • Main Repositories
  • otbotb
  • Issues
  • #2274
Closed
Open
Issue created Apr 13, 2022 by Bas Couwenberg@sebasticContributor

8.0.0 fails to build with MuParser 2.3.3

Description

As reported in Debian Bug #1009413, OTB 8.0.0 fails to build with muparser (2.3.3-0.1) in Debian unstable:

> CMake Error at CMake/FindMuParser.cmake:62 (math):
>   math cannot parse the expression: "((/*

include/muParserDef.h changed from:

#define MUP_VERSION _T("2.2.6")

to:

  static const string_type ParserVersion = string_type(_T("2.3.3 (Release)"));

Both should be supported by CMake/FindMuParser.cmake, but it seems that the (Release) bit is not handled by the regex:

  # Try to find the version for muparser >= 2.3
  string(REGEX REPLACE ".*static *const *string_type *ParserVersion *= *string_type\\(_T\\(\"([0-9.]+)\"\\)\\);.*"
      "\\1" MUPARSER_VERSION "${MUPARSER_VERSION_OLD_STYLE}")

This patch fixes the issue: muparser.patch

Steps to reproduce

Build OTB with -DOTB_USE_MUPARSER:BOOL=ON on Debian unstable.

Configuration information

  • Debian unstable amd64
  • OTB 8.0.0
  • muparser (2.3.3-0.1)
Assignee
Assign to
Time tracking