Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AC26C9938 for ; Thu, 8 Dec 2011 19:17:59 +0000 (UTC) Received: (qmail 21213 invoked by uid 500); 8 Dec 2011 19:17:57 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 21182 invoked by uid 500); 8 Dec 2011 19:17:57 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 21174 invoked by uid 99); 8 Dec 2011 19:17:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Dec 2011 19:17:57 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of albin.stigo@gmail.com designates 209.85.213.180 as permitted sender) Received: from [209.85.213.180] (HELO mail-yx0-f180.google.com) (209.85.213.180) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Dec 2011 19:17:52 +0000 Received: by yenr8 with SMTP id r8so2198291yen.11 for ; Thu, 08 Dec 2011 11:17:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=p/GfgbolGfNWRlBM5JGx4A/PAM6y9t2ZD+hxtEmP5Is=; b=dExAkVDj5vMtKZ9iVaAY/ACr4SAUjZNdXxyCcB70FjUH44td+g0QvlBBrVtcGjJ+DX wphcZhhsOUQablqvt0ch2KxN/MY4cDMf0OVLTEsdDKL+FcJZqxnubQp7+VQJ0tFLLo15 rFzRsye/yIVq7mNcVvwWlJ8i/XD3PHvMeRBrQ= MIME-Version: 1.0 Received: by 10.236.73.166 with SMTP id v26mr6954531yhd.100.1323371852156; Thu, 08 Dec 2011 11:17:32 -0800 (PST) Received: by 10.236.26.102 with HTTP; Thu, 8 Dec 2011 11:17:32 -0800 (PST) In-Reply-To: <55F7FF6F-772D-472F-A27A-6045E2B2ABD6@couchbase.com> References: <55F7FF6F-772D-472F-A27A-6045E2B2ABD6@couchbase.com> Date: Thu, 8 Dec 2011 20:17:32 +0100 Message-ID: Subject: Re: Building without debug symbols From: =?ISO-8859-1?Q?Albin_Stig=F6?= To: user@couchdb.apache.org Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Hi, > The =91strip=92 tool will remove debug symbols. You can run it manually, = or configure the target settings in Xcode to do it =97 IIRC, in the =91Depl= oyment=92 section you have to enable Deployment Postprocessing and Strip Li= nked Product. I actually meant stripping the erlang .beam files as apparently you can save up to 50% space this way... But I didn't know about the nm tool so I will definitely keep that in mind :-) > Also, as I said recently on the mobile-couchbase list, I=92ve got an unfi= nished project to build > Couchbase Mobile on Mac OS X as a dynamic-linked = framework. If someone else wants to > take it over and get it running again= , I=92ll gladly share the branch. I'm not sure I'm hardcare enough for that hacking but I would be nice if you could put it up somewhere and see if someone picks it up! Right now I'm trying to walk down the same path as wings3d. Just copying erlang runtime systems necessary files into the bundle and using NSTask to spawn a process. I think also the the mac app version of couchbase single server does this. Then I can just use the standard couchdb build. --Albin On Thu, Dec 8, 2011 at 6:42 PM, Jens Alfke wrote: > > On Dec 8, 2011, at 6:14 AM, Albin Stig=F6 wrote: > > I'm trying build a version of couchdb to embed with a mac app I'm > writing, so I'd like it to be as small as possible. > Is there an easy way of building it without any debug symbols? > > The =91strip=92 tool will remove debug symbols. You can run it manually, = or configure the target settings in Xcode to do it =97 IIRC, in the =91Depl= oyment=92 section you have to enable Deployment Postprocessing and Strip Li= nked Product. > > The =91nm=92 tool is very useful for checking that you=92ve eliminated un= necessary symbols. > > Also, as I said recently on the mobile-couchbase list, I=92ve got an unfi= nished project to build Couchbase Mobile on Mac OS X as a dynamic-linked fr= amework. If someone else wants to take it over and get it running again, I= =92ll gladly share the branch. > > =97Jens