c++ - libstdc++ as a dependency
问题描述
I'm packaging a library for distrbution in Ubuntu's ppa (personal packaging repo) system.
I have in my debian/control these lines:
Build-Depends: build-essential, libc6-dev, yasm, cmake, pkg-config, swig, libglew-dev, mesa-common-dev, libstdc++-5-dev, python3-dev, python3-numpy, libasound2-dev ...
Depends: python3, mesa-utils, libstdc++5, glew-utils, python3-numpy, v4l-utils, python3-pip
But now, after using the command "ldd" on my shared library, I get this:
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f31e93f6000)
So, the questions are:
- Am I supposed to add a dependency to libstdc++N (N is a number) in my debian package at all?
- ..or is there some metapackage (say, just "libstdc++") that automatically selects the correct libstdc++N for the system
I sort of solved this for the build dependency and libstdc++6-dev. The dependencies seem to be
build-essential => g++ => g++-7 => libstdc++-7-dev
(although that's 7, not 6..?)
I'm using C++14 standards. Does that correlate with the libstdc++ version?
解决方案
推荐阅读
- algorithm - 有多少个不同的有根未标记二叉树恰好有 9 个节点并且是左重的?
- arrays - Array Reduce 或类似的
- javascript - 为什么在 useHotkeys 回调中没有更新 useState 值?
- asp.net - 带有 EF 页面的 ASP.NET MVC 在通过 return View() 发布后丢失模型数据
- javascript - 无法读取未定义 react.js 的属性“某物”
- dart - 在 Dart 中使用重复键映射实现
- java - 通过rest api返回具有静态成员的类
- xml - 我需要 xml 设计指南
- mysql - 加入id不存在的表
- r - 如何在地图ggplot2上突出显示/绘制一条纬线