如何在Mac OSx 10.8上构建curlpp [英] How to build curlpp on Mac OSx 10.8

查看:240
本文介绍了如何在Mac OSx 10.8上构建curlpp的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想尝试libcurl的C ++包装; curlpp。文档似乎不存在。我按照我在这里找到的步骤:



http://wiki.hartungdesign.net/docs:mac:builds:curlpp



这基本上只是说典型的
1. ./configure(带有一些参数)
2. make



'make'失败,出现以下错误:


使所有在src
使所有在utilspp
/ bin / sh ../../libtool --silent --tag = CXX --mode = compile g ++ -DHAVE_CONFIG_H -I。 -I ../../ include / curlpp -I ../../ include -g -W -Wall -Werror -MT LifetimeLibrary.lo -MD -MP -M.deps / LifetimeLibrary.Tpo -c -o LifetimeLibrary .lo LifetimeLibrary.cpp
在从LifetimeLibrary.cpp:1:0包含的文件中:
../../include/utilspp/singleton/SingletonHolder.hpp:27:19:fatal error:cassert:没有这样的文件或目录
编译终止。


在Mac上构建此库时,是否有人遇到此问题?

解决方案



<从 code.google.com 下载curlpp打开Makefile



删除

  SUBDIRS = src include example doc 

添加

  SUBDIRS = src include doc 

$ cd /curlpp-0.7.3/
$ make
$ sudo make install


I would like to try the C++ wrapper for libcurl; curlpp. The documentation seems to be non-existent. I am following the steps that I found here:

http://wiki.hartungdesign.net/docs:mac:builds:curlpp

This basically just says do the typical 1. ./configure (with some args) 2. make

'make' is failing with the following error:

Making all in src Making all in utilspp /bin/sh ../../libtool --silent --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../include/curlpp -I../../include -g -W -Wall -Werror -MT LifetimeLibrary.lo -MD -MP -MF .deps/LifetimeLibrary.Tpo -c -o LifetimeLibrary.lo LifetimeLibrary.cpp In file included from LifetimeLibrary.cpp:1:0: ../../include/utilspp/singleton/SingletonHolder.hpp:27:19: fatal error: cassert: No such file or directory compilation terminated.

Has anyone run into this while building this lib on Mac? Do I need to edit the MakeFile?

Thanks!

解决方案

Download curlpp from code.google.com Open Makefile

Remove

SUBDIRS = src include examples doc 

Add

SUBDIRS = src include doc

$cd /curlpp-0.7.3/
$make
$sudo make install

这篇关于如何在Mac OSx 10.8上构建curlpp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆