标签: compiling

编译最新的 GNOME-Shell

这个问题假装是人们分享有关在 Ubuntu 10.10 中编译最新最好的 GNOME-Shell 环境的信息的中心位置。

由于 GNOME-Shell 现在依赖于 gtk3 和许多其他新模块,而 GNOME-hell PPA 不再存在,实际上很难对其进行测试,正如我在某处读到的那样,

“编译一半的 GNOME 桌面”

我昨天刚刚尝试过 jhbuild 并且只构建了一些模块,但是 gnome-shell 和 gtk3 没有包含在构建的模块中。

由于此处发布的某些解决方案可能看起来很危险,因此我正在考虑使用 Ubuntu 10.10 设置 VM,并且我认为你们中的大多数人都会同意我的观点。

所以,总而言之,需要回答的问题:

  1. Maverick 是否有任何新的 GNOME-Shell PPA?
  2. 可以修复 jhbuild gnome-shell 安装脚本以允许干净的构建吗?

  3. 如果没有,除了手动编译之外,还有其他简单的方法可以获得它吗?

  4. 安装后,GNOME-Shell 是否可以与 Virtualbox 模拟图形堆栈一起使用?

女士们,先生们,现在是你们的问题。开始答题吧……

gnome 10.10 compiling

10
推荐指数
2
解决办法
4274
查看次数

如何将我为 Windows 编写的软件移植到 Ubuntu?

我已经为 Windows 平台编写了软件包。

我想换到 Ubuntu。目前我使用 Visual Basic 和 Access 数据库。任何人都可以建议我应该使用什么来为 Linux 平台重写我的软件?

必须知道,我是一个完整的 Linux 新手。任何帮助将不胜感激。

windows compiling crossplatform

10
推荐指数
2
解决办法
2260
查看次数

如何从源代码构建 libcurl?

我一直在尝试从 git 源安装libcurl。但是,当我 cd 进入存储库并运行时,./configure我不断收到此错误:

[*****@****** bagder-curl-f0d611d]$ ./configure
-bash: ./configure: No such file or directory
Run Code Online (Sandbox Code Playgroud)

我做了一些谷歌搜索。我在工作,我不是系统管理员,这有什么关系吗?我宁愿不与我们的系统管理员讨论这个问题,因为他是一个相当不愉快的人,通常不愿意提供帮助。

似乎确实有一个配置文件:

$ls
acinclude.m4   CMakeLists.txt     GIT-INFO        MacOSX-Framework     mkinstalldirs  tests
Android.mk     configure.ac       include         Makefile             packages       TODO-RELEASE
buildconf      COPYING            install-sh      Makefile.am          perl           vc6curl.dsw
buildconf.bat  CTestConfig.cmake  lib             Makefile.dist        README         winbuild
CHANGES        curl-config.in     libcurl.pc.in   Makefile.msvc.names  RELEASE-NOTES
CHANGES.0      curl-style.el      log2changes.pl  maketgz              sample.emacs
CMake          docs               m4              missing              src
Run Code Online (Sandbox Code Playgroud)

compiling

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

如何使用源代码中的 gui 选项构建 vim?

我很难VIMgui选项构建7.4(从 vim 的 ftp 站点获得)。它可以在没有gui
选项的情况下构建。这是我的做法:

cd ~/Downloads/vim74/src
./configure --enable-gui
Run Code Online (Sandbox Code Playgroud)

上面的行似乎不起作用,因为我从命令中得到了这个输出:

./configure --enable-gui | grep gui
checking --enable-gui argument... no GUI support
Run Code Online (Sandbox Code Playgroud)

我取消注释 makefile 的第 352 行以启用 gui(我认为):

CONF_OPT_GUI = --enable-gui=gtk2
Run Code Online (Sandbox Code Playgroud)

但是当我运行vim -g(重建后)时,我得到:

E25: GUI cannot be used: Not enabled at compile time
Run Code Online (Sandbox Code Playgroud)

有一个在生成文件的建议,以检查生成auto/config.h
auto/config.mk文件,但这些文件是空的(小于10行)。
你如何解决这个问题?

gui vim compiling

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

为什么在编译内核时“make gconfig”不起作用?

我正在尝试编译从 kernel.org 下载的 vanilla Linux 内核 3.12.14。当我尝试时make gconfig,它说:

* Unable to find the GTK+ installation. Please make sure that
* the GTK+ 2.0 development package is correctly installed...
* You need gtk+-2.0, glib-2.0 and libglade-2.0.
*
make[1]: *** No rule to make target 'scripts/kconfig/.tmp_gtkcheck', needed by `scripts/kconfig/gconf.o'.  Stop.
make: *** [gconfig] Error 2
Run Code Online (Sandbox Code Playgroud)

现在看来我的 Ubuntu 默认没有 gtk+,dpkg -s xxxx已确认。我尝试使用安装所有 3 个,sudo apt-get install xxxx但没有找到软件包。

我现在能做什么!(pygtk 是答案吗?)

注意:xxxx 是错误中指定的 3 个缺失包的占位符。

compiling kernel

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

编译错误:检查 libXaw...配置:错误:找不到 X 工具包

谁能解决这个错误?配置 emacs 并运行 make 后,我得到以下信息:

[jroberts@pc emacs-24.3]$ make
make: *** No targets specified and no makefile found.  Stop.
Run Code Online (Sandbox Code Playgroud)

这是我运行时的输出 ./configure

[jroberts@pc emacs-24.3]$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler …
Run Code Online (Sandbox Code Playgroud)

emacs compiling

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

无法在 Ubuntu 12.04 上使用 GCC 进行编译

我正在尝试使用 GCC 和 VC9 在我的 Ubuntu 和 Windows 机器上编译和运行以下 C 程序。但是,我面临以下问题:

在 Ubuntu 机器上:

GCC 编译得很好,但是在运行时,我会看到这个提示:

Segmentation Fault (Core Dump).
Run Code Online (Sandbox Code Playgroud)

在 Windows 机器上:

VC9 编译运行良好。GCC 编译正常,但程序运行时进程终止。

在这里需要您的专家帮助。这是我的代码:

Segmentation Fault (Core Dump).
Run Code Online (Sandbox Code Playgroud)

更新:

幸得利雅不仅帮助我跟踪误差,而且还向我介绍了gdb其回追踪工具(bt),它是在调试GCC编译的程序,以便帮助。这是修改后的版本,经过反复试验,我完成了:

#include <string.h>
#include <stdio.h>

int calc_slope(int input1,int input2)
{
    int sum=0;
    int start=input1;
    int end=input2;
    int curr=start;

    //some validation:
    if (input1>input2)
        return -1;


    while(curr<=end)
    {
        if (curr>100)
        {
            char *s="";
            int length;
            int left;
            int right;
            int cent;

            sprintf(s,"%d",curr);
            length=strlen(s);
            s++; …
Run Code Online (Sandbox Code Playgroud)

compiling gcc

9
推荐指数
2
解决办法
2006
查看次数

如何为 gimp 安装 webp 插件?

如何安装gimp webp 插件?我发现我们可以使用 gimp-plugin-registry 来做到这一点,但不知道怎么做。我已经从 ubuntu 软件中心为 gimp 安装了 gimp-plugin-registry 扩展,现在我该怎么办?

我还发现我们可以把插件放进去/usr/lib/gimp/2.0/plug-ins/,所以我试着编译gimp webp 插件 src。我在插件源文件夹中安装libwebp-dev并运行make。它说

Package gtk+-2.0 was not found in the pkg-config search path.
Run Code Online (Sandbox Code Playgroud)

所以我决定安装libgtk包,但我找到了libgtk2.0-devlibgtk-3-dev。libgtk-3-dev 是 libgtk2.0-dev 的最新版本吗?如果是这样,我安装后一个可以吗?

我想至少知道如何使用 gimp-plugin-registry 安装插件,如果我可以通过编译 src 来完成,我会更高兴。

- - - - - 编辑 - - - - -

我已经安装了 libgtk-3-dev 并运行make并抛出了同样的错误,我继续使用 libgtk2.0-dev,现在它抛出Package gimp-2.0 was not found in the pkg-config search path. 存储库中没有 gimp-dev!我被困!

gimp compiling plugins webp

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

Bluez 安装 - DBUS 1.6 的配置错误

我正在尝试在 Ubuntu 12.04 上安装 bluez 5.2 库。在运行时./configure,我收到 GLib2.0 的错误,我可以通过使用sudo apt get-installGLib2来解决。现在我收到错误"configure: error: D-Bus >= 1.6 is required"。我已经下载并安装了 DBUS 1.8.6。但我仍然收到同样的错误。当签入/etc文件夹时,我仍然找到 dbus-1。有没有安装错误?

compiling bluetooth dbus 12.04 software-installation

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

如何在 16.10 上编译 GNU Emacs 25.1

我已经设法在 16.04 上构建和安装(使用 checkinstall)一个 GNU Emacs 25.1 Debian 包,但是在 16.10 上由于某种未知原因编译失败(在make阶段)给出了截断的输出:

Loading language/czech...
Loading language/slovak...
Loading language/romanian...
Loading language/greek...
Loading language/hebrew...
Loading international/cp51932...
Loading international/eucjp-ms...
Loading language/japanese...
Loading language/korean...
Loading language/lao...
Loading language/tai-viet...
Loading language/thai...
Loading language/tibetan...
Loading language/vietnamese...
Loading language/misc-lang...
Loading language/utf-8-lang...
Loading language/georgian...
Loading language/khmer...
Loading language/burmese...
Loading language/cham...
Loading indent...
Loading emacs-lisp/cl-generic...
Loading frame...
Loading startup...
Loading term/tty-colors...
Loading font-core...
Loading facemenu...
Loading emacs-lisp/syntax...
Loading font-lock...
Loading jit-lock...
Loading mouse...
Loading scroll-bar...
Loading select...
Loading …
Run Code Online (Sandbox Code Playgroud)

emacs compiling segmentation-fault 16.10

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