How to build curlpp on Mac OSx 10.8

六眼飞鱼酱① 提交于 2019-12-11 04:58:53

问题


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!


回答1:


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


来源:https://stackoverflow.com/questions/16884760/how-to-build-curlpp-on-mac-osx-10-8

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!