我想在我的Debian 64位环境中构建32位应用程序。
因此,我试图编译Qt源代码,以获得32位库。
我试图使用以下配置命令:
./configure -platform linux-g++-32
不幸的是,我得到了如下错误:
Basic XLib functionality test failed!
You might need to modify the include and library search paths by editing
但当我做以下事情时:
./configure -platform linux-g++-64
它很好用。
有什么猜测吗?
我使用cpan安装了"Statistics::Descriptive“模块,然后测试该示例:
use Statistics::Descriptive;
$stat = new Statistics::Descriptive;
$stat->AddData(1,2,3,4);
但是它显示的是error:Can't locate object method "new" via package "Statistics::Descriptive" at ...我是在Linux Ubuntu中使用Perl version5.10.1和最新的Stati
我有一个文件trial.txt包含
This can stay
// but this
/ and this
// must go
I will be happy
删除在其他情况下使用的前导#
os.system(" sed '/^#.*/d' trial.txt > start.txt ")
所以删除//我用了
os.system(" sed '/^//.*/d' trial.txt > start.txt ")
但这会造成错误
sed: 1: "/^//.*/d": invalid command
我编写了一个小的单元测试框架,它使用python动态加载共享库,并在它们上调用测试方法。通过执行以下命令,我能够通过构建脚本调用单元测试:
make test_library
Make然后使用调用我的测试方法的脚本生成python。这很好用,但是我在用GDB设置它时遇到了问题,这样我就可以调用相同的make目标,但是在达到我的库测试代码时让GDB中断。关于如何最好地解决这个问题,有什么建议吗?这都是在linux上的。
谢谢
我已经按照上的说明进行了操作,但由于ld错误crti.o: no such file or directory,我无法通过gcc-final阶段。
我的工具链分为两个目录:/opt/builder/tools和/opt/builder/cross-tools,其中Linux头文件和eglibc在第一个目录中,而交叉实用程序在第二个目录中。此外,我还为这些目录创建了链接/tools和/cross-tools。
我尝试过/cross-tools/bin/powerpc-unknown-linux-gcc -print-search-path,在“库”部分有一个目录/opt/builder/tool