Re: build STLport 5 under 10.4?
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com i.e. nm libstlport.5.1.0.dylib |grep stlpmtx_std OR nm libstlport.5.1.0.dylib |grep stlp_std Hope this helps, but I am using 5.0 so I might be a little off. Paul. On 5 Dec 2005, at 17:38, darwindev.mbloore@xoxy.net wrote: /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 Can you tell me if you did anything special to link with STLport? From: Paul Thomas <spongelavapaul@mac.com> Subject: Re: build STLport 5 under 10.4? On 22 Nov 2005, at 17:52, darwindev.mbloore@xoxy.net wrote: Has anyone built STLport 5 using gcc4? After setting native include paths in _site_config.h _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... 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. - any output means the symbols are there and I can't explain your problem - any output means that you need to rebuild your code with _PTHREADS defined. 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/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. 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 <mbloore@yahoo.com> _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/spongelavapaul% 40mac.com This email sent to spongelavapaul@mac.com This email sent to site_archiver@lists.apple.com
participants (1)
-
Paul Thomas