Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: build STLport 5 under 10.4?



I did have a few problems with linking, and I think it was because of the thread-safe vs. non-thread-safe library versions. in doc/ stlport_namespaces.txt (in the distribution), it says that stlpmtx_std is the namespace used in the non-debug, non-thread-safe library. I originally had trouble because the libraries built thread safe (stlp_std) but my code was trying to use non-thread-safe (stlpmtx_std).

Have a look at the output of nm run on the library libstlport. 5.1.0.dylib and see if the symbols begin with stlpmtx_std or some other namespace. If the output of nm has stlp_std in all the symbols, then it means you have the same problem. It should be solved by adding the _PTHREADS define in the diff I posted before.

i.e.

nm libstlport.5.1.0.dylib |grep stlpmtx_std

- any output means the symbols are there and I can't explain your problem

OR

nm libstlport.5.1.0.dylib |grep stlp_std

- any output means that you need to rebuild your code with _PTHREADS defined.

Hope this helps, but I am using 5.0 so I might be a little off.

Paul.

On 5 Dec 2005, at 17:38, email@hidden wrote:

Thank you Paul, that has gotten me started. STLport 5 now compiles and links for me, but I have
been unable to link it to a project built with Xcode 2.2. I get


/usr/bin/ld: Undefined symbols:
stlpmtx_std::__stl_throw_length_error(char const*)
stlpmtx_std::cout
stlpmtx_std::ios_base::_M_throw_failure()
collect2: ld returned 1 exit status

when Xcode runs the command

/usr/bin/g++-4.0 -o /Users/mark/tests/gentest/build/Debug/gentest
-L/Users/mark/tests/gentest/build/Debug -L/Users/mark/misc_code/ metakit-2.4.9.4/builds
-L/Users/mark/misc_code/STLport-5.1.0/lib -F/Users/mark/tests/ gentest/build/Debug -filelist
/Users/mark/tests/gentest/build/gentest.build/Debug/gentest.build/ Objects-normal/i386/gentest.LinkFileList
-lstlport -lstlport.5.1.0 -lstlport.5.1 -lstlport.5 -arch i386 - isysroot
/Developer/SDKs/MacOSX10.4u.sdk


I have tried setting various symbols, such as LD_LIBRARY and DYNLD_LIBRARY, and putting the
stlport.dylib file and the various aliases generated by its makefile into different locations,
such as /usr/local/lib and the build folder, without success.


Can you tell me if you did anything special to link with STLport?

From: Paul Thomas <email@hidden>
Subject: Re: build STLport 5 under 10.4?
On 22 Nov 2005, at 17:52, email@hidden wrote:

Has anyone built STLport 5 using gcc4?  After setting native
include paths in _site_config.h


I built from CVS (just updated and rebuilt to check) but I only changed
_STLP_NATIVE_INCLUDE_PATH, not the others

#CXXFLAGS += -fuse-cxa-atexit



--
mARK bLOORE <email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/spongelavapaul% 40mac.com


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden
References: 
 >Re: build STLport 5 under 10.4? (From: email@hidden)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.