小编Nel*_*aar的帖子

如何(交叉)编译boost而不是python?

我的嵌入式设备有一个gcc 4.3.3工具链,但我没有python(并且不需要它).

我正在寻找一种无需python(编译和交叉编译)配置boostbuild的方法.

python是强制性的吗?

我必须编译每个单独的部分,但boost-python?(我希望不是).

提前致谢.

由于木星,我做了什么

./bootstrap.sh --without-libraries=python
./b2

我得到了

Component configuration:

    - chrono                   : building
    - context                  : building
    - date_time                : building
    - exception                : building
    - filesystem               : building
    - graph                    : building
    - graph_parallel           : building
    - iostreams                : building
    - locale                   : building
    - math                     : building
    - mpi                      : building
    - program_options          : building
    - python                   : not building
    - random                   : building
    - regex                    : building
    - serialization            : building
    - signals …

python boost cross-compiling

18
推荐指数
1
解决办法
5354
查看次数

为什么编译器推迟std :: list deallocation?

我有以下代码使用std :: list容器测试内存释放:

#include <iostream>
#include <list>
#include <string>

#include <boost/bind.hpp>

/* count of element to put into container
 */
static const unsigned long SIZE = 50000000;

/* element use for test
 */
class Element
{
public:
    Element()
    : mId(0)
    {}
    Element( long id )
    : mId(id)
    {}
    virtual ~Element()
    {
    }
    inline long getId() const
    {
        return this->mId;
    }

    inline bool operator<( const Element & rightOperand ) const
    {
        return this->mId < rightOperand.mId;
    }

    inline bool isEven() const
    { …
Run Code Online (Sandbox Code Playgroud)

c++ memory-management stl dealloc

6
推荐指数
1
解决办法
485
查看次数

Eclipse不尊重.cvsignore

在我的项目中,有一个来自另一个项目的文件夹的符号链接.该文件夹的名称位于.cvsignore中

但是此文件夹(符号链接)包含来自其他项目的cvs元数据(CVS文件夹).

cvs命令没有问题,并忽略该文件夹.

但是eclipse想要同步它.

问题是,ecplise可以在同步时忽略文件夹,或者如何使eclipse尊重.cvsignore文件?

文件夹(符号链接)名称是共享的,在我的.cvsignore中包含一个带有它名称的行

我们使用符号链接技巧在我们的软件和单独构建的插件之间共享源代码(单独的autotools项目).

eclipse cvs

5
推荐指数
1
解决办法
1919
查看次数

如何使用autotools获得漂亮的打印效果

有没有办法用autotools(automake)来改变这条大线

gcc -DHAVE_CONFIG_H -I. -I. -I. -pthread -I/usr/include/libgsf-1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2   -DHAVE_SVGZ=1 -I/usr/include/libcroco-0.6 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2   -DHAVE_LIBCROCO=1 -pthread -I/usr/include/gtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libpng12   -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12   -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12    -DG_LOG_DOMAIN=\"librsvg\" -DLIBRSVG_DATADIR="\"/usr/local/share\""    -g -O2 -MT rsvg-shapes.lo -MD -MP -MF .deps/rsvg-shapes.Tpo -c -o rsvg-shapes.lo rsvg-shapes.c
Run Code Online (Sandbox Code Playgroud)

进入这个

compiling rsvg-shapes.c
Run Code Online (Sandbox Code Playgroud)

请注意,使用librsvg文件只是一个例子.

我看到了这个问题,但是对于Makefile编写者来说,Makefile.am编写器是否有解决方案

linux gcc makefile compilation autotools

4
推荐指数
1
解决办法
480
查看次数

how to get properties within subsections of a ini file with boost property tree?

I am trying to use the Boost property trees to read INIfiles containing properties within sections have a "composed" path name.

For example my INIfile looks like this:

[my.section.subsection1]
someProp1=0

[my.section.subsection2]
anotherProp=1
Run Code Online (Sandbox Code Playgroud)

I read it with the following code:

namespace pt = boost::property_tree;

pt::ptree propTree;
pt::read_ini(filePath, propTree);
boost::optional<uint32_t> someProp1 = pt.get_optional<uint32_t>("my.section.subsection1.someProp1");
Run Code Online (Sandbox Code Playgroud)

The problem is that I never get the value of someProp1...

When I iterate over the first tree level I see the the entire section name …

ini boost boost-propertytree ptree

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