Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • gstreamer gstreamer
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 920
    • Issues 920
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 434
    • Merge requests 434
  • 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
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GStreamerGStreamer
  • gstreamergstreamer
  • Issues
  • #481
Closed
Open
Issue created Jan 06, 2020 by PK@pk-a

error: 'PACKAGE_VERSION' was not declared in this scope

Hi,

I have created Boilerplate from GStreamer Plugin Templates. Meson build is successful and gst-inspect command recognizes this new plugin.

I need c++ code features so I renamed the generated files from .c to .cpp of template. Not sure if this is the right way to do and I am not aware if boilerplate can generate .cpp files too. I have modified meson.build as below to support cpp project('gst-template', 'cpp', version : '1.16.2.1', license : 'LGPL') cc = meson.get_compiler('cpp')

This landed me into trouble. gstplugin.c -> gstplugin.cpp I see below errors error: 'PACKAGE_VERSION' was not declared in this scope error: 'GST_LICENSE' was not declared in this scope; did you mean 'GST_TAG_LICENSE'? error: 'GST_PACKAGE_NAME' was not declared in this scope; did you mean 'GST_PAD_NAME'? error: 'GST_PACKAGE_ORIGIN' was not declared in this scope

To get past this issue, I tried hard-coding with appropriate strings for PACKAGE_VERSION, GST_LICENSE, GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN, but this generates new error below

error: 'GST_PLUGIN_DEFINE' does not name a type

I am right now stuck at this point. Any suggestion on what could be the problem? I have attached source code zip file for reference. plugin-temp.zip

Thank you in advance !

Edited Jan 06, 2020 by PK
Assignee
Assign to
Time tracking