小编vku*_*vku的帖子

D-Bus连接问题

我一直在尝试编译一个程序dbus,正如我在代码中提到的那样,提到了类似的问题.我按照图示执行了它:

gcc `pkg-config --cflags dbus-glib-1` \
  `pkg-config --cflags dbus-1` \
  `pkg-config --cflags glib-2.0` \
   dbus-example.c \
  `pkg-config --libs dbus-glib-1` \
  `pkg-config --libs dbus-1` \
  `pkg-config --libs glib-2.0`
Run Code Online (Sandbox Code Playgroud)

我仍然收到以下错误:

Package dbus-glib-1 was not found in the pkg-config search path.
Perhaps you should add the directory containing `dbus-glib-1.pc'
to the PKG_CONFIG_PATH environment variable
No package 'dbus-glib-1' found
Package glib-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `glib-2.0.pc'
to the PKG_CONFIG_PATH environment variable …
Run Code Online (Sandbox Code Playgroud)

dbus pkg-config linker-errors

9
推荐指数
1
解决办法
6977
查看次数

2 个具有正确形状的 CSR 矩阵的乘积

我需要将 2 个 csr 矩阵与形状 A : (385019, 72) B : (72, 385019) 相乘。我确实看到 A 的列数是 72,这正是 B 中的行数。然而,当我执行时,sparse.csr_matrix(A).multiply(sparse.csr_matrix(A))我发现ValueError: inconsistent shapes 我已经浏览过其他帖子,但还没有任何帮助我。 使用 Python 和 NumPy 的非常大的矩阵

linear-algebra scipy

1
推荐指数
1
解决办法
1778
查看次数

标签 统计

dbus ×1

linear-algebra ×1

linker-errors ×1

pkg-config ×1

scipy ×1