On 10-10-2012 14:09, Darryl L. Pierce wrote:
On Wed, Oct 10, 2012 at 02:01:49PM +0100, Bruno Matos wrote:
I have compiled Qpid 0.18 64-bit client libs (qpidtypes, qpidcommon,
qpidclient and qpidmessaging) using vc10, but I had to make some
little changes that I would like to share. Comments are welcome and
appreciated.

1. I used boost 1.51.0 64-bit so I had to make some minor changes on
Modules.cpp to use the new filesystem 3 API. I had also to comment
src/CMakeLists.txt line 1471
"add_definitions(-DBOOST_FILESYSTEM_VERSION=2)" for the reason above
(I don't know the real impact of this).

2. Regarding to VC10, I had to change the main CMakeLists.txt line
39 from 'add_definitions(/w44996)' to 'set (CMAKE_CXX_FLAGS
"${CMAKE_CXX_FLAGS} /w44996")', again without knowing the real
impact of this.
I still have a warning: 'system runtime library file does not
exist', but the compilation ends without errors, so I think I can
ignore it.

I have used QtCreator 2.4.0, CMake 2.8.7 and NMake Generator
(Microsoft Windows SDK for Windows 7 (7.1) (x64).

I can make a patch if someone thinks it would be useful.
All patches are considered. Send it over. :)

BTW, have you taken a look at the Qpid Proton project? I'd be interested
in your experience with doing the same for that codebase as well.

Hi Darryl ,

In attachment are the changes that I made to qpid-cpp-0.18.tar.gz.

Regards,
Bruno Matos
*** src/qpid/Modules.cpp        Mon Jan 19 22:26:36 1970
--- src/qpid/Modules.cpp        Mon Jan 19 22:26:36 1970
***************
*** 88,96 ****
  
      fs::directory_iterator endItr;
      for (fs::directory_iterator itr (dirPath); itr != endItr; ++itr)
!     {        
!         if (!fs::is_directory(*itr) && isShlibName(itr->path().string()))
!             tryShlib (itr->path().string().data(), true);
      }
  }
  
--- 88,96 ----
  
      fs::directory_iterator endItr;
      for (fs::directory_iterator itr (dirPath); itr != endItr; ++itr)
!     {
!         if (!fs::is_directory(*itr) && isShlibName(itr->string()))
!             tryShlib (itr->string().data(), true);
      }
  }
  
*** src/CMakeLists.txt  Mon Jan 19 22:26:36 1970
--- src/CMakeLists.txt  Mon Jan 19 22:26:36 1970
***************
*** 1468,1474 ****
  # file whereas older builds only have config.h on autoconf-generated builds.
  add_definitions(-DHAVE_CONFIG_H)
  
! #add_definitions(-DBOOST_FILESYSTEM_VERSION=2)
  
  # Now create the config file from all the info learned above.
  configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake
--- 1468,1474 ----
  # file whereas older builds only have config.h on autoconf-generated builds.
  add_definitions(-DHAVE_CONFIG_H)
  
! add_definitions(-DBOOST_FILESYSTEM_VERSION=2)
  
  # Now create the config file from all the info learned above.
  configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake
*** CMakeLists.txt      Mon Jan 19 22:26:36 1970
--- CMakeLists.txt      Mon Jan 19 22:26:36 1970
***************
*** 36,43 ****
    # a run-time error if violated.
    # "warning C4996: 'std::equal': Function call with parameters that may
    # be unsafe..."
!   set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /w44996")
!   #add_definitions(/w44996)
  endif (MSVC)
  
  # Overall packaging/install options.
--- 36,42 ----
    # a run-time error if violated.
    # "warning C4996: 'std::equal': Function call with parameters that may
    # be unsafe..."
!   add_definitions(/w44996)
  endif (MSVC)
  
  # Overall packaging/install options.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to