You need to follow the instructions in the STAF Developer's Guide at
http://staf.sourceforge.net/current/stafdg.html on how to build STAF on
Windows. You need to read the following sections in it:
1) "Obtaining the STAF Source Code" - This section talks about how you
need to download the STAF source tar/zip file and unzip it
2) "Requirements for Building STAF" - This section talks about the
software that is required to be installed before building STAF.
Note that to build STAF on Windows, you need to install Cygwin and build
STAF from a Cygwin command prompt using a Microsoft Visual C++ compiler.
3) "Building STAF" - This section talks about how to build STAF. Note
that building project staf will build all of core STAF in addition to
building the C++ Device sample service after core STAF is built so it will
take a while to run. From a Cygwin command prompt on a Windows machine:
$ export OS_NAME=win32
$ export BUILD_TYPE=retail
$ export MSVCDIR=C:/MVStudio
$ export VSCOMMONDIR=C:/MVStudio/Common
$ cd/cygdrive/c/stafbuild/src/staf (Assuming C:/stafbuild is the
directory where you checked out STAF source code)
$ make PROJECTS=staf
You need to set the Microsoft Visual Studio environment variables (MSVDIR,
VSCOMMONDIR) based on where Microsoft Visual Studio is installed on your
machine (which may not be C:\MVStudio).
And, you must run make PROJECTS=staf from the src/staf sub-directory
within the directory where you have the STAF source code installed.
--------------------------------------------------------------
Sharon Lucas
IBM Austin, luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313
jianyu dong <dongjia...@gmail.com>
03/08/2009 04:04 AM
To
"staf-users@lists.sourceforge.net" <staf-users@lists.sourceforge.net>
cc
Subject
[staf-users] When make the example of STAF service , meet some error .
HI everyone ,
Now , i am learning to write a STAF service to support our auto-test
framework , so i first copy the example of Staf service in help doc to
dev-cpp and to make it ,but i meet too error info as following , i don't
sure these casue by my makeing env or g++ ? please get me some suggesting
. thanks
DeviceService.o(.text$_ZN10STAFRefPtrI22STAFMapClassDefinitionEaSERKS1_[STAFRefPtr<STAFMapClassDefinition>::operator=(STAFRefPtr<STAFMapClassDefinition>
const&)]+0x34): In function
`ZNSt8_Rb_treeI10STAFStringSt4pairIKS0_10STAFRefPtrI10DeviceDataEESt10_Select1stIS6_ESt4lessIS0_ESaIS6_EE7_S_leftEPKSt18_Rb_tree_node_base':
D:/program/Dev-Cpp/include/c++/3.4.2/bits/stl_tree.h: undefined reference
to `STAFThreadSafeDecrement'
DeviceService.o(.text$_ZN10STAFRefPtrI22STAFMapClassDefinitionEaSERKS1_[STAFRefPtr<STAFMapClassDefinition>::operator=(STAFRefPtr<STAFMapClassDefinition>
const&)]+0x166): In function `STAFServiceGetLevelBounds':
D:/program/Dev-Cpp/project/TestSTAF/DeviceService.cpp:156: undefined
reference to `STAFThreadSafeIncrement'
DeviceService.o(.text$_ZN10STAFRefPtrI10STAFResultEaSERKS1_[STAFRefPtr<STAFResult>::operator=(STAFRefPtr<STAFResult>
const&)]+0x34): In function
`ZNSt8_Rb_treeI10STAFStringSt4pairIKS0_10STAFRefPtrI10DeviceDataEESt10_Select1stIS6_ESt4lessIS0_ESaIS6_EE7_S_leftEPKSt18_Rb_tree_node_base':
D:/program/Dev-Cpp/include/c++/3.4.2/bits/stl_tree.h: undefined reference
to `STAFThreadSafeDecrement'
DeviceService.o(.text$_ZN10STAFRefPtrI10STAFResultEaSERKS1_[STAFRefPtr<STAFResult>::operator=(STAFRefPtr<STAFResult>
const&)]+0x161): In function `STAFServiceGetLevelBounds':
D:/program/Dev-Cpp/project/TestSTAF/DeviceService.cpp:156: undefined
reference to `STAFThreadSafeIncrement'
DeviceService.o(.text$_ZN10STAFRefPtrI12STAFMutexSemEaSERKS1_[STAFRefPtr<STAFMutexSem>::operator=(STAFRefPtr<STAFMutexSem>
const&)]+0x34): In function
`ZNSt8_Rb_treeI10STAFStringSt4pairIKS0_10STAFRefPtrI10DeviceDataEESt10_Select1stIS6_ESt4lessIS0_ESaIS6_EE7_S_leftEPKSt18_Rb_tree_node_base':
D:/program/Dev-Cpp/include/c++/3.4.2/bits/stl_tree.h: undefined reference
to `STAFThreadSafeDecrement'
DeviceService.o(.text$_ZN10STAFRefPtrI12STAFMutexSemEaSERKS1_[STAFRefPtr<STAFMutexSem>::operator=(STAFRefPtr<STAFMutexSem>
const&)]+0x15b): In function `STAFServiceGetLevelBounds':
D:/program/Dev-Cpp/project/TestSTAF/DeviceService.cpp:155: undefined
reference to `STAFThreadSafeIncrement'
DeviceService.o(.text$_ZN10STAFRefPtrI10DeviceDataED1Ev[STAFRefPtr<DeviceData>::~STAFRefPtr()]+0x1d):
In function
`ZNSt8_Rb_treeI10STAFStringSt4pairIKS0_10STAFRefPtrI10DeviceDataEESt10_Select1stIS6_ESt4lessIS0_ESaIS6_EE7_S_leftEPKSt18_Rb_tree_node_base':
D:/program/Dev-Cpp/include/c++/3.4.2/bits/stl_tree.h: undefined reference
to `STAFThreadSafeDecrement'
DeviceService.o(.text$_ZN10STAFRefPtrI10DeviceDataEC1ERKS1_[STAFRefPtr<DeviceData>::STAFRefPtr(STAFRefPtr<DeviceData>
const&)]+0x6a):D:/program/Dev-Cpp/include/c++/3.4.2/bits/stl_tree.h:
undefined reference to `STAFThreadSafeIncrement'
DeviceService.o(.text$_ZNK10STAFStringltERKS_[STAFString::operator<(STAFString
const&) const]+0x34):D:/program/Dev-Cpp/include/c++/3.4.2/bits/stl_tree.h:
undefined reference to `STAFStringCompareTo'
collect2: ld returned 1 exit status
d:\program\Dev-Cpp\Bin\dllwrap.exe: no export definition file provided.
Creating one, but that may not be what you want
d:\program\Dev-Cpp\Bin\dllwrap.exe: c++ exited with status 1
mingw32-make.exe: *** [TestStaf.dll] Error 1
执行结束
I only past a small pit on here , it is so long .
Best regards.
jason dong
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
CA
-OSBC tackles the biggest issue in open source: Open Sourcing the
Enterprise
-Strategies to boost innovation and cut costs with open source
participation
-Receive a $600 discount off the registration fee with the source code:
SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users