Gcc 编译TrueCrypt的命令行中缺少DSO

Gcc 编译TrueCrypt的命令行中缺少DSO,gcc,debian,wxwidgets,dynamic-linking,truecrypt,Gcc,Debian,Wxwidgets,Dynamic Linking,Truecrypt,在过去的两天里,我一直试图在Debian Jessie 8.1.0 AMD64上编译truecrypt 7.1a。我有wxGTK2.8.12源代码,因为Debian Jessie只有v3.0包。这是一个问题,因为wxwidgets3.0保护了wxstandardpaths,因此您必须使用wxstandardpaths::get和truecrypt在应用程序.cpp中使用wxstandardpaths,并且在编译时会返回错误 我不知道如何解决这个问题,所以我使用truecrypt编译选项#make

在过去的两天里,我一直试图在Debian Jessie 8.1.0 AMD64上编译
truecrypt 7.1a
。我有
wxGTK2.8.12
源代码,因为Debian Jessie只有v3.0包。这是一个问题,因为
wxwidgets3.0
保护了
wxstandardpaths
,因此您必须使用
wxstandardpaths::get
truecrypt
应用程序.cpp
中使用
wxstandardpaths
,并且在编译时会返回错误

我不知道如何解决这个问题,所以我使用truecrypt编译选项
#make WX_ROOT=/usr/src/truecrypt-7.1a-source/wxGTK-2.8.12 wxbuild来编译选项2
wxgtk2.8.12
源代码。完成后我做了
#make WXSTATIC=1
,我遇到了下面的错误。即使我自己编译并安装
wxwidgets-2.8.12
,我也会遇到这个错误。也许这是一个
x11lib
问题

^ 链接truecrypt


-lX11
添加到您的链接命令行应该可以修复此错误。它表示未找到-lX11命令。在我尝试LIBS=-lX11之前,我已经尝试过这样做,但没有执行任何操作。VZ。root@User:/usr/src/truecrypt-7.1a-source#-lX11 bash:-lX11:未找到命令我以前尝试过这样做,但不起作用您所说的链接命令行是什么意思?我做错了吗?我已经输入了LIBS=-lx11,它可以通过,但什么也不做。您好,我有完全相同的问题。你找到解决办法了吗?谢谢可能重复的
/usr/bin/ld:
/usr/src/truecrypt-7.1a-source/wxrelease/lib/libwx_gtk2u_core-2.8.a(corelib_utilsx11.o): undefined reference to symbol 'XGetWindowAttributes'
//usr/lib/x86_64-linux-gnu/libX11.so.6: error adding symbols: DSO
missing from command line collect2: error: ld returned 1 exit status
Main.make:107: recipe for target 'truecrypt' failed make[1]: ***
[truecrypt] Error 1 Makefile:268: recipe for target 'all' failed make:
*** [all] Error 2