标签: compiling

在 pkg-config 搜索路径中找不到包

我正在尝试安装WaoN。当我运行时,sudo make -f Makefile.waon它给我以下错误:

gcc -Wall -march=pentium -O3 -ffast-math `pkg-config --cflags fftw3` `pkg-config --cflags sndfile`   -c -o main.o main.c
Package fftw3 was not found in the pkg-config search path.
Perhaps you should add the directory containing `fftw3.pc'
to the PKG_CONFIG_PATH environment variable
No package 'fftw3' found
Package sndfile was not found in the pkg-config search path.
Perhaps you should add the directory containing `sndfile.pc'
to the PKG_CONFIG_PATH environment variable
No package 'sndfile' found
main.c:31:19: fatal error: …
Run Code Online (Sandbox Code Playgroud)

compiling error-handling makefile libraries make

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

在 Ubuntu 15.10 上编译 Mame 0.170

尝试编译 mame 0.170 时出现以下错误:

m1xalis@m1xalis-HP-Compaq-6830s:~$ cd .mame
m1xalis@m1xalis-HP-Compaq-6830s:~/.mame$ make
GCC 5.2.1 detected
Compiling src/osd/modules/debugger/debugqt.cpp...
../../../../../src/osd/modules/debugger/debugqt.cpp:18:34: fatal error: QtWidget
s/QApplication: No such file or directory
#include <QtWidgets/QApplication>

compilation terminated.
qtdbg_sdl.make:361: recipe for target        '../../../../linux_gcc/obj/x64/Release/qtdbg_sdl/src/osd/modules/debugger/debugqt.o' failed
make[2]: *** [../../../../linux_gcc/obj/x64/Release/qtdbg_sdl/src/osd/modules/debugger/debugqt.o] Error 1
Makefile:16: recipe for target 'qtdbg_sdl' failed
make[1]: *** [qtdbg_sdl] Error 2
makefile:1025: recipe for target 'linux_x64' failed
make: *** [linux_x64] Error 2
Run Code Online (Sandbox Code Playgroud)

这是对 ubuntu 的全新安装和升级。我之前使用 gcc 4.9 在 ubuntu trusty tahr 上编译了 mame 0.169(我认为)。任何帮助/建议将不胜感激。

compiling gcc mame

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

如何在 Ubuntu16.04 上安装 libboost_version1.59 或更新版本

如何安装 libboost1.59 ?

我尝试了很多方法来安装它,但未能将我的 Ubuntu 16.04 上的 1.58 版更新到 1.59 版。

我在 StackOverflow 上尝试过这个这个这个在 linuxfromscratch.org这个博客上

谁能给我一个有效的方法?

compiling c++ libraries

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

如何正确卸载和删除某些内容以及从源代码构建并安装?

我从源代码构建了 openCV3 并将其安装在我的机器上。我现在想删除它。有人可以告诉我这样做的正确方法是什么吗?

      ~/Downloads/opencv-3.2.0$ ls
      3rdparty  apps  build  cmake  CMakeLists.txt  CONTRIBUTING.md  data  doc  include  LICENSE  modules  platforms  README.md  samples

      ~/Downloads/opencv-3.2.0/build$ ls
      3rdparty               CMakeVars.txt            doc                   opencv2                     share
      apps                   CPackConfig.cmake        include               OpenCVConfig.cmake          test-reports
      bin                    CPackSourceConfig.cmake  install_manifest.txt  OpenCVConfig-version.cmake  text_config.hpp
      CMakeCache.txt         CTestTestfile.cmake      junk                  opencv_lapack.h             unix-install
      CMakeFiles             custom_hal.hpp           lib                   OpenCVModules.cmake         version_string.tmp
      cmake_install.cmake    cvconfig.h               Makefile              opencv_tests_config.hpp
      cmake_uninstall.cmake  data                     modules               samples
Run Code Online (Sandbox Code Playgroud)

谢谢!

uninstall compiling cmake

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

如何从 RC 版本获得守望者版本?

当我运行时:$ ./autogen.sh && ./configure && make
它返回:your system lacks libtoolize

我采取的步骤:

如何修复:your system lacks libtoolize?

compiling system-installation

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

如何编译这个fortan程序?

我的堂兄是博士生,需要在他的 ubuntu 16.04 上安装这个软件。他不知道该怎么做,向我求助,但我以前从未与 fortan 合作过。我们安装了 gcc 和 gfortan。

如pdf所示,我们必须运行:

./configure # this complains about the absence of netcdf
make
make check
make install
Run Code Online (Sandbox Code Playgroud)

我不断收到netCDF错误。找到了这个,现在我在运行配置时收到这个错误

Can't find libnetcdf.a in /usr/lib
Run Code Online (Sandbox Code Playgroud)

我花了大约 5 小时试图修复它,搜索所有内容,但没有运气。

更新:我按照尼古拉斯的建议做了,仍然有一个错误

compiling software-installation 16.04

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

Makefile 42:目标“util.o”的配方失败

我收到此错误:

~/Distrib$ make all
/usr/bin/g++ -O3 util.cc -I/home/shah/Distrib
util.cc: In function 'into countLines(const char*)':
util:19:8: error: 'exit' was not declared in this scope
  exit(1);
        ^
Makefile:42: recipe for target 'util.o' failed
make: *** [util.o] Error 1
Run Code Online (Sandbox Code Playgroud)

基本上我想安装一个我从这个网页下载的断层扫描软件

我将 Makefile 中的第 5 行更改为

Home = /home/shah 
Run Code Online (Sandbox Code Playgroud)

Makefile 更改

compiling c++ makefile

2
推荐指数
1
解决办法
3万
查看次数

如何在 Ubuntu 18.04 下编译 KeePassX 0.4?

有人可以下载源代码并告诉我如何为 Ubuntu 编译 KeePassX 0.4 吗?我对编程一窍不通!无论我粘贴到终端中什么,我都一无所获。请帮助我,我求求你,Anonimus :)

https://www.keepassx.org/downloads/0-4

谢谢!

compiling qt 18.04

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

Cmake和Qt编译时出错

我希望这不是重复的。我正在尝试在 Ubuntu 20.04 上编译一个程序(Kid3)。

当我运行 cmake 命令时,出现以下错误:

CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Qt5/Qt5Config.cmake:28 (find_package):
  Could not find a package configuration file provided by "Qt5Multimedia"
  with any of the following names:

    Qt5MultimediaConfig.cmake
    qt5multimedia-config.cmake

  Add the installation prefix of "Qt5Multimedia" to CMAKE_PREFIX_PATH or set
  "Qt5Multimedia_DIR" to a directory containing one of the above files.  If
  "Qt5Multimedia" provides a separate development package or SDK, be sure it
  has been installed.
Call Stack (most recent call first):
  CMakeLists.txt:289 (find_package)


-- Configuring incomplete, errors occurred!
Run Code Online (Sandbox Code Playgroud)

我试图找到该错误的解决方案,我发现的建议是安装 qttools5-dev,我这样做了。 …

compiling qt

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

错误的 cmake 可执行文件 vscode

我最近刚刚安装了 Ubuntu 20.04 和 VSCode(用于 c++)。我添加了 C/C++、CMake 和 CMake 工具扩展。然后我克隆了我的旧 github 存储库之一进行测试,并尝试从命令面板进行 Cmake:configure,但出现此错误。

Bad CMake executable "/snap/bin/cmake". Is it installed or settings contain the correct path (cmake.cmakePath)?
Run Code Online (Sandbox Code Playgroud)

我已经浏览了 CMake 工具扩展 github 存储库来寻找答案,这似乎是有关 snap 的某种问题?我不太确定他们到底在说什么,但我知道这是 CMake 工具中的一个错误,但我没有找到解决方案。谁能帮我吗?

compiling c++ cmake snap visual-studio-code

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