Need help compiling XMLSEC under xCode


 
Thread Tools Search this Thread
Top Forums Programming Need help compiling XMLSEC under xCode
# 1  
Old 11-17-2012
Need help compiling XMLSEC under xCode

Dear friends,



I have an xCode project that needs to sign an XML file, and in shell I can achieve the result by running this command:

export LD_LIBRARY_PATH=/opt/local/lib; /opt/local/bin/xmlsec1 sign --id-attr:Id infNFe --output /path/to/signed.xml --pkcs12 /path/to/my/p12.pfx --pwd XXXXPASSWORDXXXX --trusted-pem /path/to/my.pem /path/to/unsigned.xml

When installing XMLSEC via Mac Ports, files are linked in /opt directory as you an notice by running the command:

bernardo$ otool -L /opt/local/bin/xmlsec1
/opt/local/bin/xmlsec1:
/opt/local/lib/libxmlsec1.1.dylib (compatibility version 4.0.0, current version 4.13.0)
/opt/local/lib/libxslt.1.dylib (compatibility version 3.0.0, current version 3.26.0)
/opt/local/lib/libxml2.2.dylib (compatibility version 10.0.0, current version 10.8.0)
/opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.5)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.0)
/opt/local/lib/libiconv.2.dylib (compatibility version 8.0.0, current version 8.0.0)


Unfortunately Apple demands now that apps must be sandboxed, and so my app does not have access to /opt directory, and I can not install XMLSEC on the users file system.

I have visited http://www.aleksey.com/xmlsec/api/xm...ling-unix.html and I find it very hard to understand what I need to do is to bundle XMLSEC into my xCode project, and make XMLSEC run within my sandboxed app.

I understand it is possible, but my knowledge is limited to objective C and other Mac Os X technologies.

I am willing to pay for getting help on bundling XMLSEC into my xCODE application. I am not rich, but I hope a kind person can help me with this.

Thank you for any suggestions,

Bernardo Höhl
Rio de Janeiro - Brazil
# 2  
Old 11-19-2012
There are two types of major license types for open-source libraries, BSD like and GNU like.
BSD libraries can be simply statically linked to your XCode binary redistributable while GNU licensed libraries have to be distributed in dynamically linkable format creating some complexity.

You also have to keep in mind that you need to distribute whole dependency tree (dependency libraries of libraries, etc).

Check out the official documentation how to bundle dynamic libraries with your application: https://developer.apple.com/library/...rameworks.html
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. HP-UX

Problem in HP-UX compiling

Hi When im trying to do make --version and make --help in HP-UX it throws error Make: Unknown flag argument -. Stop. a soft link is present in this directory /usr/bin/make and hard link is in /usr/ccs/bin/make what could be the reason can any1 ..please tell me how to solve this... (1 Reply)
Discussion started by: vasanthan
1 Replies

2. Solaris

Compiling programs

Hi guys i have posted a thread months ago and a guy called dukenuke or smething like that told me that i have to install Sun Studio if i want to be able to compile programs. I have installed Sun Studio 12 and put it in my PATH but no success compiling anything. when i download some source (tar.gz)... (2 Replies)
Discussion started by: saveka
2 Replies

3. UNIX for Dummies Questions & Answers

doubt while compiling using cc

I was trying to compile a proc code. All steps when fine, except the last step which threw an error - I was just trying to compile it manually. Any ideas what this error means. Does it mean I am using the wrong library? (3 Replies)
Discussion started by: ranj@chn
3 Replies

4. UNIX for Advanced & Expert Users

re-compiling

I have a problem. How can I be sure that the binary currently in production is the binary originally produced by the compiler? I ask because recompiling the sources (ALL sources + stripping away the metadata: strip ...) does not give the same result. I am pretty sure that I wasn't hacked! ... (5 Replies)
Discussion started by: aViking
5 Replies

5. Solaris

Compiling problem

I'm trying to install the jed text editor on a SunOS 5.10 box. It depends on the s-lang library, which I installed to ~/lib. I'm trying to install jed to ~/jed (it's a box @ my university, so I don't have rights to install globally), but when I run make I get this error: It looks like it... (1 Reply)
Discussion started by: iandunn
1 Replies

6. HP-UX

compiling the RRDtool

I tried to compile the RRDtool on HP-UX (IA56). I have gcc-3.4.3 and perl 5.8.0 I got this: Writing Makefile for RRDs cd perl-shared && make /opt/perl/bin/perl /opt/perl/lib/5.8.0/ExtUtils/xsubpp -typemap /opt/perl/lib/5.8.0/ExtUtils/typemap RRDs.xs > RRDs.xsc && mv... (2 Replies)
Discussion started by: Kalin
2 Replies

7. Programming

compiling

I am new to unix so please forgive ignorance. I am running openbsd-2.9 and need some help. All the software I run was added via the package system openbsd has. There have been times when I need an app. But it was not in the openbsd ports and or packages system. I usually just wait for it to show up... (1 Reply)
Discussion started by: Blunt_Killer
1 Replies

8. UNIX for Dummies Questions & Answers

compiling qt

i am trying to compile and install free qt for x11 2.2.4 in order to use kde 2.1. i'm using freebsd 4.3 i currently have XFree86 installed and working. i followed these instructions: ftp://ftp.trolltech.com/qt/source/INSTALL i get through the unpacking fine and i set my .profile. --... (2 Replies)
Discussion started by: nydel
2 Replies

9. UNIX for Dummies Questions & Answers

compiling

would anyone know of a good online tutorial on compiling and installing tarballs? i'm looking for one that assumes that you know very little to nothing about unix. (3 Replies)
Discussion started by: nydel
3 Replies

10. Programming

C compiling

I recently loaded SuSE on my intel comp. I am presently taking a walk down memory lane from my days at UofT. I was fiddling round with cc and the gcc compilers. I wrote a basic basic basic program . I tried to compile it as I remember doing in Uni. The problem is that it can't find the header... (5 Replies)
Discussion started by: cantcatchme
5 Replies
Login or Register to Ask a Question