realbasic-nug
[Top] [All Lists]

Re: Putting a library in the package.

To: "REALbasic NUG" <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Putting a library in the package.
From: dda <headspin at gmail dot com>
Date: Thu, 30 Mar 2006 19:58:05 +0200
Delivered-to: realbasic-nug at lists dot realsoftware dot com
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=mL9hOXfk2Dj7RyDSf1dHx9Iw83ZPSLYSq/iXDh0irLOcAtse1SLiCL5/3OWxtB0lSChCeJL5yQdY7396YyreIcGDjpTYAwl2+kno4pvrwqzrd+KNh/01gYDyyT4xV7t2FldTEs/aQKJi0O/evTApZ7cu3tkt0spMYjDP6u49Nn4=
References: <442C12D3 dot 2080401 at longbodycs dot com>
I don't think you can. I usually write a small bash script that does
the packaging, from compiling and copying the required libs to
tar/gzipping the final app and uploading it.
It usually looks like:

#!/bin/sh
echo "Compiling"
gcc -o something.o -c something.c -L/sw/lib/ -I/sw/include/
echo "Linking"
gcc -dynamiclib -o mylib.dylib something.o  -lz [etc]
echo "Copying the dylib into tester app"
mkdir testApp.app/Contents/Frameworks/
cp mylib.dylib testApp.app/Contents/Frameworks/
echo "packing the archive"
tar -czf testApp.tgz testApp.app/
echo "Move archive to @Distrib"
mv testApp.tgz @Distrib/
echo "Sending file to server"
curl -T "@Distrib/testApp.tgz"
ftp://login:password at my dot domain dot tld/www/upload/testApp.tgz
echo "Launching test app"
./testApp.app/Contents/MacOS/testApp

HTH

--
dda
libcurl4RB, [S]FTP transfers made easy
http://sungnyemun.org/?q=node/8

RBDeveloper Columnist, "Beyond the Limits"
http://rbdeveloper.com


On 3/30/06, Steve Goodrich <steveg at longbodycs dot com> wrote:
> I have a dylib that I want to go into my Mach-O application package. I
> am also still pretty green when it comes to Mac. Is there a way for me
> to tell REALbasic to add this library to my final application package?
>
> Thanks,
> Steve Goodrich
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
<Prev in Thread] Current Thread [Next in Thread>