From: Henrik J. <hp...@gl...> - 2002-09-24 12:19:10
|
Ok, sounds great. Regarding semaphores, if you check the tothread.h stuff there are two versions one using QThread and one using posix threads. However, the QThread stuff has a small Visual C++ quirk to determine which thread is which, so you can't use the QThread version of the toThread. But you can use the QMutex/QWaitCondition version of the toSemaphore class. Good luck, let me know how it turns out (And I'll definately add it to the CVS. /Mauritz Underscore AB Olof Jönsson wrote: > Hello, > > I've been trying to get TOra to work on MacOS X 10.2 and I've > succeeded in compiling it and running it against a local Oracle DB by > only changing the configure.pl script. The differences were only that > OS X's shared libraries has the file extension '.dylib' and two small > changes since it uses GCC3.1. Unfortunately, MacOS X doesn't support > unnamed Posix semaphores so they fail when running the unmodified > code. I am currently looking into this and wether to use Posix named > semaphores or change it to use Qt threading. Anyway, to build it Qt is > needed and Qt/Free with X11 is easiest to get from the fink project > (fink.sourceforge.net). An Oracle client installation can be > downloaded from OTN, either separately or together with Oracle 9i. > Here is the diff-output from the configure.pl file: > > Index: tora/configure.pl > =================================================================== > RCS file: /cvsroot/tora/tora/configure.pl,v > retrieving revision 1.137 > diff -r1.137 configure.pl > 396a397 > > #include <utils.h> > 478c479 > < if (!system("$gcc $LFlags -I`pwd` $Includes $Libs $QtLibShared > $TestDB -o$ > tmpName $tmpName.cpp")) { > --- > > if (!system("$gcc $LFlags -I`pwd` $Includes $Libs $QtLibShared > $TestDB -o > $tmpName $tmpName.cpp")) { > 656c657 > < $QtLib=findFile("^".$QtSearch."[23]\\.s[ol]",sub { > --- > > $QtLib=findFile("^".$QtSearch."[23]\\.s[ol]|dylib",sub { > 663c664 > < if (-f > "$lib/lib$QtLibShared > .so" || -f "$lib/lib$QtLibShared.sl") { > --- > > if (-f > "$lib/lib$QtLibShared > .so" || -f "$lib/lib$QtLibShared.sl" || -f "$lib/lib$QtLibShared.dylib") { > > > It would be good if this could be incorporated in the CVS tree. > > / Olof Jönsson > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Tora-develop mailing list > Tor...@li... > https://lists.sourceforge.net/lists/listinfo/tora-develop |