Hi Dietmar,
looks like the OSG_COMPILECONTRIBLIB is missing. But I recommend to
compile it into OSGContrib.dll and link your app against this.
Andreas
Hi,
I have tried to get the VideoGrab sample running with the Intel Compiler
(version 7.1) on Win32 (with MS Developer Studio).
I thought to have set all defines (have pasted the present defines at
the end of this mail) and settings alright, but still get some compile
errors (list follows).
Did I miss anything? Any idea?
thanks
Dietmar Hallmann
Here we go....
--------------------------------------------------------------------------------------------------------------------------------
The errors:
--------------------------------------------------------------------------------------------------------------------------------
Compiling...
OSGAVCodecGrabForegroundBase.cpp
C:\work\VideoGrab\src\OSGAVCodecGrabForegroundBase.cpp(69): error: a
static data member declared "dllimport" may not be defined
const OSG::BitVector AVCodecGrabForegroundBase::ActiveFieldMask =
^
C:\work\VideoGrab\src\OSGAVCodecGrabForegroundBase.cpp(72): error: a
static data member declared "dllimport" may not be defined
const OSG::BitVector AVCodecGrabForegroundBase::NameFieldMask =
^
C:\work\VideoGrab\src\OSGAVCodecGrabForegroundBase.cpp(75): error: a
static data member declared "dllimport" may not be defined
const OSG::BitVector AVCodecGrabForegroundBase::KbitFieldMask =
^
C:\work\VideoGrab\src\OSGAVCodecGrabForegroundBase.cpp(78): error: a
static data member declared "dllimport" may not be defined
const OSG::BitVector AVCodecGrabForegroundBase::FpsFieldMask =
^
C:\work\VideoGrab\src\OSGAVCodecGrabForegroundBase.cpp(81): error: a
static data member declared "dllimport" may not be defined
const OSG::BitVector AVCodecGrabForegroundBase::CodecidFieldMask =
^
C:\work\VideoGrab\src\OSGAVCodecGrabForegroundBase.cpp(84): error: a
static data member declared "dllimport" may not be defined
const OSG::BitVector AVCodecGrabForegroundBase::FlipFieldMask =
^
C:\work\VideoGrab\src\OSGAVCodecGrabForegroundBase.cpp(87): error: a
static data member declared "dllimport" may not be defined
const OSG::BitVector AVCodecGrabForegroundBase::AutoWriteFieldMask =
^
C:\work\VideoGrab\src\OSGAVCodecGrabForegroundBase.cpp(90): error: a
static data member declared "dllimport" may not be defined
const OSG::BitVector AVCodecGrabForegroundBase::MTInfluenceMask =
^
C:\work\VideoGrab\src\OSGAVCodecGrabForegroundBase.cpp(121): error: a
static data member declared "dllimport" may not be defined
FieldDescription *AVCodecGrabForegroundBase::_desc[] =
^
C:\work\VideoGrab\src\OSGAVCodecGrabForegroundBase.cpp(161): error: a
static data member declared "dllimport" may not be defined
FieldContainerType AVCodecGrabForegroundBase::_type(
^
C:\work\VideoGrab\src\OSGAVCodecGrabForegroundBase.cpp(162): error:
expected a ")"
"AVCodecGrabForeground",
^
C:\work\VideoGrab\src\OSGAVCodecGrabForegroundBase.cpp(168): warning
#12: parsing restarts here after previous syntax error
sizeof(_desc));
^
C:\work\VideoGrab\src\OSGAVCodecGrabForegroundBase.cpp(175): warning
#261: inconsistent dll linkage
{
^
C:\work\VideoGrab\src\OSGAVCodecGrabForegroundBase.cpp(180): warning
#261: inconsistent dll linkage
{
^
C:\work\VideoGrab\src\OSGAVCodecGrabForegroundBase.cpp(186): warning
#261: inconsistent dll linkage
{
^
C:\work\VideoGrab\src\OSGAVCodecGrabForegroundBase.cpp(195): warning
#261: inconsistent dll linkage
{
^
C:\work\VideoGrab\src\OSGAVCodecGrabForegroundBase.cpp(202): warning
#261: inconsistent dll linkage
{
^
C:\work\VideoGrab\src\OSGAVCodecGrabForegroundBase.cpp(212): warning
#261: inconsistent dll linkage
AVCodecGrabForegroundBase::AVCodecGrabForegroundBase(void) :
^
C:\work\VideoGrab\src\OSGAVCodecGrabForegroundBase.cpp(228): warning
#261: inconsistent dll linkage
AVCodecGrabForegroundBase::AVCodecGrabForegroundBase(const
AVCodecGrabForegroundBase &source) :
^
C:\work\VideoGrab\src\OSGAVCodecGrabForegroundBase.cpp(243): warning
#261: inconsistent dll linkage
{
^
C:\work\VideoGrab\src\OSGAVCodecGrabForegroundBase.cpp(249): warning
#261: inconsistent dll linkage
{
^
C:\work\VideoGrab\src\OSGAVCodecGrabForegroundBase.cpp(293): warning
#261: inconsistent dll linkage
{
^
C:\work\VideoGrab\src\OSGAVCodecGrabForegroundBase.cpp(336): warning
#261: inconsistent dll linkage
{
^
C:\work\VideoGrab\src\OSGAVCodecGrabForegroundBase.cpp(379): warning
#261: inconsistent dll linkage
{
^
C:\work\VideoGrab\src\OSGAVCodecGrabForegroundBase.cpp(418): error #698:
the modifier "dllimport" is not allowed on this declaration
OSG_DLLEXPORT_SFIELD_DEF1(AVCodecGrabForegroundPtr,
OSG_CONTRIBLIB_DLLTMPLMAPPING);
^
C:\work\VideoGrab\src\OSGAVCodecGrabForegroundBase.cpp(418): error #698:
the modifier "dllimport" is not allowed on this declaration
OSG_DLLEXPORT_SFIELD_DEF1(AVCodecGrabForegroundPtr,
OSG_CONTRIBLIB_DLLTMPLMAPPING);
^
C:\work\VideoGrab\src\OSGAVCodecGrabForegroundBase.cpp(419): error #698:
the modifier "dllimport" is not allowed on this declaration
OSG_DLLEXPORT_MFIELD_DEF1(AVCodecGrabForegroundPtr,
OSG_CONTRIBLIB_DLLTMPLMAPPING);
^
C:\work\VideoGrab\src\OSGAVCodecGrabForegroundBase.cpp(419): error #698:
the modifier "dllimport" is not allowed on this declaration
OSG_DLLEXPORT_MFIELD_DEF1(AVCodecGrabForegroundPtr,
OSG_CONTRIBLIB_DLLTMPLMAPPING);
^
compilation aborted for
C:\work\VideoGrab\src\OSGAVCodecGrabForegroundBase.cpp (code 2)
Error executing cl.exe.
OSGAVCodecGrabForegroundBase.obj - 15 error(s), 13 warning(s)
-----------------------------------------------------------------------------------------------------
My current defines are:
__INTEL_COMPILER_VERSION=700,WIN32,_WINDOWS,WINVER=0x0400,_WIN32_WINDOWS=0x0410,
_WIN32_WINNT=0x0400,QT_DLL,QT_THREAD_SUPPORT,QT_ACCESSIBILITY_SUPPORT,_OSG_HAVE_CONFIGURED_H_,
OSG_BUILD_DLL,OSG_WITH_QT,OS_WIN32,INDEX=INDEX_LINEAR,OSG_WITH_GLUT,OSG_WIN32_ICL
I try to build an application which uses a multithreaded dll and an 8
byte alignment...
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users