- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我在我正在创作的项目中运行 make distcheck
时遇到名义链接错误:
$ uname -a
Linux vbox 3.2.0-26-generic #41-Ubuntu SMP Thu Jun 14 17:49:24 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
$ cat /etc/issue
Ubuntu 12.04 LTS \n \l
$ libtool --version
libtool (GNU libtool) 2.4.2
Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ g++ --version
g++ (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ automake --version
automake (GNU automake) 1.11.3
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl-2.0.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Tom Tromey <tromey@redhat.com>
and Alexandre Duret-Lutz <adl@gnu.org>.
如您所见,它将在使用 g++ 4.6 和 libtool 2.4.2 的 Ubuntu 12.04 上运行。在使用 g++ 4.2.1 和 libtool 2.4.2(均通过自制软件安装)的 OS X 10.7.4 上,不会出现该错误。它也没有出现在 make check
中。
这是 Makefile.am
的相关片段:
# -- myprog --
#
lib_LTLIBRARIES += myproj/myprog/libmyprog.la
myproj_myprog_libmyprog_la_SOURCES = # ...
myproj_myprog_libmyprog_la_LIBADD = myproj/mylib/libmylib.la
sbin_PROGRAMS += myproj/myprog/myprog
myproj_myprog_myprog_SOURCES = myproj/myprog/main.cc
myproj_myprog_myprog_LDADD = myproj/myprog/libmyprog.la
# -- mylib --
#
lib_LTLIBRARIES += myprog/mylib/libmylib.la
myproj_mylib_libmylib_la_SOURCES = # ...
错误本身:
/usr/bin/ld: cannot find -lmylib
collect2: ld returned 1 exit status
libtool: install: error: relink `myproj/myprog/libmyprog.la' with the above command before installing it
我该如何解决这个问题?
最佳答案
简而言之,顺序(显然)很重要:
# -- mylib --
#
lib_LTLIBRARIES += myprog/mylib/libmylib.la
myproj_mylib_libmylib_la_SOURCES = # ...
# -- myprog --
#
lib_LTLIBRARIES += myproj/myprog/libmyprog.la
myproj_myprog_libmyprog_la_SOURCES = # ...
myproj_myprog_libmyprog_la_LIBADD = myproj/mylib/libmylib.la
sbin_PROGRAMS += myproj/myprog/myprog
myproj_myprog_myprog_SOURCES = myproj/myprog/main.cc
myproj_myprog_myprog_LDADD = myproj/myprog/libmyprog.la
现在我的项目在所有提到的平台上构建(check
和 distcheck
)。
关于c++ - libtool: install: error: 在安装之前用上面的命令重新链接 `libmyprog.la',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11787917/
我认为这应该不是一个大问题,但我自己找不到解决方案。一如既往:p 我有一个 UIWebView,其背景颜色设置为clearColor,但是当我尝试向下滚动太多时,我会在加载的 HTML 上方看到深灰色
我注意到,每当我重新安装我的应用程序时,IdentifierForVendor 都会不断变化。有没有办法让我的设备拥有相同的标识符?问题是,我需要确保标识符相同,因为我有一个备份系统,即使在删除并重新
一切都在标题中。 我有一个带有单元格的 UITableView。 cells 有一个Shadow (self.layer.shadow...)。 问题是一个单元格的阴影重叠上方的单元格。我怎样才能防止
我正在尝试创建一个切换开关,您可以在其中点击一侧,然后背景会滑过以使该侧“处于事件状态”。 为了适应可变宽度,我使用 display: table 设置了切换的两侧。这很好用。然后,我将第三个 div
我是一名优秀的程序员,十分优秀!