Fedora Linux Support Community & Resources Center
  #1  
Old 20th January 2005, 07:26 AM
polpak Offline
Registered User
 
Join Date: Jan 2005
Posts: 1
Building STLPort in Fedora

Does anyone have any experience building STLPort (www.stlport.org) under Fedora? (specifically FC2)

I've been trying for a couple of days now and can't for the life of me fiigure out what's wrong. I know that Debian has packages for this library. Also libstlport_gcc.so is installed for openoffice, so I know it must have been built somehow...

Anyone give any insight? There are several 3rd party applications that depend on this library to compile. It'd be nice to see it included into the development packages at some point.

Thanks
Reply With Quote
  #2  
Old 28th January 2005, 04:58 AM
Bana's Avatar
Bana Offline
Retired Community Manager
 
Join Date: Feb 2004
Location: Austin, Texas
Age: 26
Posts: 581
I've heard that STLport is not needed for versions of GCC above 3.3? Or is this only for the Ogre engine http://www.ogre.org
__________________
http://coolhands.blogspot.com/
binarybana AT gmail.com
Reply With Quote
  #3  
Old 10th April 2006, 02:44 PM
dima_ben Offline
Registered User
 
Join Date: Apr 2006
Posts: 1
Our product on all platforms compiled with STL port, so when migrating to Linux (Fedora) we prefer to keep using STLport (for compatibility reasons)...

Prequsities:

OS: Fedora Linux 2.6.11-1.1369_FC4
StlPort version 4.6.2 unpacked to /usr/local/lib/STLport-4.6.2
GC++ Version: 4.00
src/gcc.mak copied to src/makefile and used to build STL port.


1. Problems with errors like:

../stlport/ctime:25:44: error: ../g++-v3/ctime: No such file or directory
[...]

can be fixed by adding symlink to the "/usr/include/c++/4.0.0" dir in stlport dir:

ln -s /usr/include/c++/4.0.0 g++-v3

background:
to find the right dir to make symlink to you should execute the command:

find / -name ctime 2>/dev/null

it will show you something like:

/usr/include/boost/compatibility/cpp_c_headers/ctime
/usr/include/c++/3.2.3/ctime
/usr/include/c++/3.3.4/ctime
/usr/include/c++/4.0.0/ctime
/usr/local/lib/STLport-4.6.2/stlport/ctime
/usr/local/lib/STLport-4.5.3/stlport/ctime

the version of used GNU C/C++ is 4.0, so you should make symlink to the "/usr/include/c++/4.0.0/" dir.


2. Problem with errors like:

../stlport/stl/_alloc.h:416: error: non-template {xxx}rebind{xxx} used as template
../stlport/stl/_alloc.h:416: note: use {xxx}_Allocator::template rebind{xxx} to indicate that it is a template
../stlport/stl/_alloc.h:416: error: declaration does not declare anything
[...]

can be fixed by specifying the:

#define _STLP_NO_MEMBER_TEMPLATE_CLASSES 1

in the stlport/config/stl_confix.h


After this all should be fine...

To build and run STL port tests:

1. the "regression" test.

the "string_mp.cpp" was missed in gcc.mak file. there is "LIST = " parameter with list of cpp files,
add the string_mp.cpp file to that list. run gamke

2. the "eh" test

in gcc.mak to line:

CXXFLAGS = [...]

add the:

-DEH_DELETE_HAS_THROW_SPEC

then run gmake

Last edited by dima_ben; 10th April 2006 at 02:55 PM.
Reply With Quote
Reply

Tags
building, fedora, stlport

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora kernel rpm building jwspring Using Fedora 0 13th February 2006 02:51 PM
Building my own version of Fedora cruiseoveride Using Fedora 4 26th April 2005 07:11 PM


Current GMT-time: 20:36 (Wednesday, 19-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat