• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Trying to build a static library using X-Code 1.5
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Trying to build a static library using X-Code 1.5


  • Subject: Trying to build a static library using X-Code 1.5
  • From: John Draper <email@hidden>
  • Date: Wed, 10 Aug 2005 19:33:02 -0700

Hi,

I'm integrating the reSIProcate C++ stack into my X-Code project. I can compile just fine,
but X_Code seems to have a mind of it's own.


Initially, I thought I would be able to get away with building a .dylib file out of the
reSIProcate stack code so I set the Library as Dynamic, but for some reason,
the X-Code can't find the .dylib even though I dragged and dropped it into the
main application target. The Build was sucessful when trying to build the .dylib,
but when I wanted to try to build the target as a ".a" library file, I get this
error....


Building target “resip2” with build style “Development” (optimization:level ‘0’, debug-symbols:on) — (1 error, 5 warnings)

cd /Users/johndraper/Documents/SIP/Open_source/resiprocate-0.9.0-5019
/usr/bin/gcc-3.3 -x c++ -arch ppc -pipe -Wno-trigraphs -fasm-blocks -fpascal-strings -g -O0 -mtune=G4 -DUSE_ARES=1 -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -fmessage-length=0 -ffix-and-continue -F/Users/jd/Documents/SIP/Open_source/resiprocate-0.9.0-5019/build -I/Users/jd/Documents/SIP/Open_source/resiprocate-0.9.0-5019/build/include -I/Users/jd/Documents/SIP/Open_source/resiprocate-0.9.0-5019 -I/Users/jd/Documents/SIP/Open_source/resiprocate-0.9.0-5019/build/SipApplication.build/resip2.build/DerivedSources -Wp,-header-mapfile,/Users/jd/Documents/SIP/Open_source/resiprocate-0.9.0-5019/build/SipApplication.build/resip2.build/resip2.hmap -c /Users/jd/Documents/SIP/Open_source/resiprocate-0.9.0-5019/resiprocate/TuIM.cxx -o /Users/jd/Documents/SIP/Open_source/resiprocate-0.9.0-5019/build/SipApplication.build/resip2.build/Objects-normal/ppc/TuIM.o
/Users/jd/Documents/SIP/Open_source/resiprocate-0.9.0-5019/resiprocate/TuIM.cxx: In member function `void resip::TuIM::processSipFrag(resip::SipMessage*)':
/Users/jd/Documents/SIP/Open_source/resiprocate-0.9.0-5019/resiprocate/TuIM.cxx:277: warning: unused variable `resip::SignatureStatus sigStat'
/Users/jd/Documents/SIP/Open_source/resiprocate-0.9.0-5019/resiprocate/TuIM.cxx:277: warning: unused variable `resip::SignatureStatus sigStat'
cd /Users/jd/Documents/SIP/Open_source/resiprocate-0.9.0-5019
/usr/bin/libtool -static -o /Users/jd/Documents/SIP/Open_source/resiprocate-0.9.0-5019/build/resip2.dylib


NOTE: the line above, which appears to try to build the .dylib instead of a .a library. Isn't the "libtool"
program supposed to build a .a file if I select "static" as Library style? And shouldn't that line be properly
specifying resip2.a instead of resip2.dylib? Doesn't the -o option specify the "libtool" target file?


-L/Users/jd/Documents/SIP/Open_source/resiprocate-0.9.0-5019/build -L/Users/jd/Documents/SIP/Open_source/resiprocate-0.9.0-5019/contrib/ares -lares -lssl -filelist /Users/jd/Documents/SIP/Open_source/resiprocate-0.9.0-5019/build/SipApplication.build/resip2.build/Objects-normal/resip2.LinkFileList
/usr/bin/libtool: can't locate file for: -lssl


And here.... I want to link in the ssl library... I see others using this option, so why doesn't it work for me?

/usr/bin/libtool: file: -lssl is not an object file (not allowed in a library)

And what does THIS mean....

Here are my "Get Info" target settings....

resip2
-------
HEADER_SEARCH_PATHS = "$(SRCROOT)"
LIBRARY_SEARCH_PATHS = "$(SRCROOT)/contrib/ares"
NOTE: there ARE libraries in the "ares" I need. But doesn't this also mean to search
for BOTH $(SRCROOT) AND $(SRCROOT)/contrib/ares", or does this just change the
search path to "/contrib/ares" and make it "forget" the search path of just the "$(SRCROOT)"?


OTHER_LDFLAGS = "-lares -lssl" <--- I think this needs to be changed - just don't know what
I should change it to, so I can link in the "ssl" libraries.... can anyone please offer me a suggestion
for this?


PRODUCT_NAME = resip2 <---- Should I name it "resip2.a"?

LIBRARY_STYLE = STATIC <---- Shouldn't this make it into a "resip2.a" file?

Is there anything I can try?

BTW: this is X-Code 1.5 running under 10.3....

John

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Using Libraries on XCode
  • Next by Date: Xcode 2.1 Proj's Show Up As Folders
  • Previous by thread: Codewarrior inline asm to xcode asm roadblock!
  • Next by thread: Xcode 2.1 Proj's Show Up As Folders
  • Index(es):
    • Date
    • Thread