I'm trying to compile OSG using mingw/msys fresh
install.

I've downloaded OSG from the SVN and copied it into my
home dir, compiled cmake and ran cmake -G "MSYS
Makefiles", now the fun part: when i run make,
openthreads compiles fine, but when osg trys to
compile, it fails with a bunch of "undefined reference
to `OpenThreads::Barrier::reset()'" type errors.

I've tried many different solutions to no avail,
anyone had this problem or know how to solve it?

my D:\msys\1.0\home\Administrator\OSG\lib dir contains
the compiled libOpenThreads.dll /libOpenThreads.dll.a

here is the output:

[EMAIL PROTECTED] ~/OSG
$ make
Scanning dependencies of target OpenThreads
[  0%] Building CXX object
src/OpenThreads/win32/CMakeFiles/OpenThreads.dir/WIN32Condition.obj
[  0%] Building CXX object
src/OpenThreads/win32/CMakeFiles/OpenThreads.dir/Win32Mutex.obj
[  1%] Building CXX object
src/OpenThreads/win32/CMakeFiles/OpenThreads.dir/Win32Thread.obj
[  1%] Building CXX object
src/OpenThreads/win32/CMakeFiles/OpenThreads.dir/Win32ThreadBarrier.obj
Linking CXX shared library
.../../../lib/libOpenThreads.dll
Creating library file:
.../../../lib/libOpenThreads.dll.a
[  1%] Built target OpenThreads

Scanning dependencies of target osg
[  1%] Building CXX object
src/osg/CMakeFiles/osg.dir/AlphaFunc.obj
[  1%] Building CXX object
src/osg/CMakeFiles/osg.dir/AnimationPath.obj
[  1%] Building CXX object
src/osg/CMakeFiles/osg.dir/ApplicationUsage.obj
....
....
Linking CXX shared library ../../lib/libosg.dll
Creating library file: ../../lib/libosg.dll.a
CMakeFiles/osg.dir/AnimationPath.obj(.data$_ZTVN3osg16BarrierOperationE+0x2c):AnimationPath.cpp:
undefined reference to `OpenThreads::Barrier::reset()'
CMakeFiles/osg.dir/AnimationPath.obj(.data$_ZTVN3osg16BarrierOperationE+0x30):AnimationPath.cpp:
undefined reference to
`OpenThreads::Barrier::block(unsigned)'
....
....
make[2]: *** [lib/libosg.dll] Error 1
make[1]: *** [src/osg/CMakeFiles/osg.dir/all] Error 2
make: *** [all] Error 2


 Thanks.

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to