#42 closed defect (fixed)
VC9, Boost 1.37.1
| Reported by: | sunside | Owned by: | vadim |
|---|---|---|---|
| Priority: | trivial | Milestone: | QuteCom 2.2-RC2 |
| Component: | 3rd party libs | Version: | 2.2-RC3 |
| Keywords: | boost, cmake | Cc: |
Description
On my system, compiling with VC9, the FindBoost?.cmake macro fails.
Adding the following part around line 140 fixes this
if (MSVC90)
if (CMAKE_BUILD_TYPE STREQUAL Debug)
set(BOOST_LIBRARIES_SUFFIXES
-vc90-mt-gd-1_37_1
-vc90-mt-gd-1_34_1
-vc90-mt-gd-1_34
-vc90-mt-gd-1_33_1
)
else (CMAKE_BUILD_TYPE STREQUAL Debug)
set(BOOST_LIBRARIES_SUFFIXES
-vc90-mt-1_37_1
-vc90-mt-1_34_1
-vc90-mt-1_34
-vc90-mt-1_33_1
)
endif (CMAKE_BUILD_TYPE STREQUAL Debug)
endif (MSVC90)
Change History (7)
comment:1 Changed 4 years ago by sunside
comment:2 Changed 4 years ago by sunside
Sorry, this should have been "-1_37" instead of "-1_37_1".
comment:3 Changed 4 years ago by laurent
did you succeed to build qutecom with boost 1.37.x ?
comment:4 Changed 4 years ago by sunside
Actually ... no. The problem doesn't seem to be Boost, though. The compilation fails with some ws2def.h inclusion problems, my guess is that some of the winsock.h don't play too well with the winsock2.h, but I haven't found out which header is causing the problems.
[ 38%] Built target phapiutil
[ 39%] Built target stun
[ 39%] Building C object libs/3rdparty/pthread/CMakeFiles/pthread.dir/src/attr.obj
attr.c
C:\Program Files\Microsoft SDKs\Windows\v6.1\include\ws2def.h(91) : warning C4005: 'AF_IPX' : macro redefinition
C:\Program Files\Microsoft SDKs\Windows\v6.1\include\winsock.h(460) : see previous definition of 'AF_IPX'
C:\Program Files\Microsoft SDKs\Windows\v6.1\include\ws2def.h(116) : warning C4005: 'AF_MAX' : macro redefinition
C:\Program Files\Microsoft SDKs\Windows\v6.1\include\winsock.h(479) : see previous definition of 'AF_MAX'
C:\Program Files\Microsoft SDKs\Windows\v6.1\include\ws2def.h(163) : warning C4005: 'SO_DONTLINGER' : macro redefinition
C:\Program Files\Microsoft SDKs\Windows\v6.1\include\winsock.h(402) : see previous definition of 'SO_DONTLINGER'
C:\Program Files\Microsoft SDKs\Windows\v6.1\include\ws2def.h(207) : error C2011: 'sockaddr' : 'struct' type redefinition
C:\Program Files\Microsoft SDKs\Windows\v6.1\include\winsock.h(485) : see declaration of 'sockaddr'
C:\Program Files\Microsoft SDKs\Windows\v6.1\include\ws2def.h(385) : error C2059: syntax error : 'constant'
C:\Program Files\Microsoft SDKs\Windows\v6.1\include\ws2def.h(519) : warning C4005: 'IN_CLASSA' : macro redefinition
C:\Program Files\Microsoft SDKs\Windows\v6.1\include\winsock.h(287) : see previous definition of 'IN_CLASSA'
... repeated ...
comment:5 Changed 4 years ago by laurent
winsock.h don't play too well with the winsock2.h
Yes, You're right
comment:6 Changed 4 years ago by vadim
- Resolution set to fixed
- Status changed from new to closed
comment:7 Changed 2 years ago by Nathan2010
- field_os set to all
did you succeed to build qutecom with boost 1.37.x ?
Note: See
TracTickets for help on using
tickets.

(Maybe the http://trac.qutecom.org/wiki/HowToBuildFromSource page should also mention to set the BOOSTINCLUDEDIR and BOOSTLIBDIR environment variables, because most probably the "program files" guesses will fail)