qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ramith Jayasinghe <rami...@opensource.lk>
Subject Re: Build Qpid/C++ Broker on Windows 7 (64-Bit) with Visual Studio 2010.
Date Thu, 14 Jun 2012 13:07:02 GMT
Hi,
I got pass this point and able to successfully build qpid 64-bit. It seems
the trick is to start IDE as a administrator!
Regards,
Ramith.

On Thu, Jun 14, 2012 at 12:58 PM, Ramith Jayasinghe
<ramithj@opensource.lk>wrote:

> HI,
> I got pass the cmake failure by using pre-compiled boost package given by
> chuck (thanks again for that).
> The command I ran for configure the build:
>
> cmake -i -G "Visual Studio 10 Win64" .
>
> I loaded the qpid-cpp.sln on to Vistual Studio 2010 and  build the
> 'All_BUILD' project, which completed successfully.
> However, I see now binary (.exe ? ) for the qpid broker being created. Am
> I missing something here?
>
>
>
> BTW, I tried to invoke 'RUN_TESTS' project it failed with following error:
>
> Error    1    error MSB3073: The command "setlocal
> "C:\Program Files (x86)\CMake 2.8\bin\ctest.exe" --force-new-ctest-process
> -C Debug
> if %errorlevel% neq 0 goto :cmEnd
> :cmEnd
> endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
> :cmErrorLevel
> exit /b %1
> :cmDone
> if %errorlevel% neq 0 goto :VCEnd
> :VCEnd" exited with code 8.    C:\Program Files
> (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets    113    6
> RUN_TESTS
>
>
>
>
>
>
> On Thu, Jun 14, 2012 at 9:58 AM, Ramith Jayasinghe <ramithj@opensource.lk>wrote:
>
>> Thanks Chuck,
>> I will try that one out.
>> Regards
>> Ramith.
>>
>>
>> On Wed, Jun 13, 2012 at 7:23 PM, Chuck Rolke <crolke@redhat.com> wrote:
>>
>>> I'm using Boost 1.47. You can find a pre-compiled set of boost libraries
>>> ready to go for windows.
>>>
>>> http://people.apache.org/~chug/boost-win-1.47/
>>>
>>> Pick your compiler VS2008 or VS2010, and pick your architecture 32-bit
>>> or 64-bit.
>>> With Boost on windows mixing the 32- and 64-bit libraries causes lots of
>>> confusion.
>>>
>>> -Chuck
>>>
>>>
>>> ----- Original Message -----
>>> > From: "Ramith Jayasinghe" <ramithj@opensource.lk>
>>> > To: users@qpid.apache.org
>>> > Cc: "Luca Martini" <l.martini@list-group.com>, crolke@redhat.com
>>> > Sent: Wednesday, June 13, 2012 9:33:02 AM
>>> > Subject: Re: Build Qpid/C++ Broker on Windows 7 (64-Bit) with Visual
>>> Studio 2010.
>>> >
>>> > Thanks for the replies guys.
>>> > By looking at the error message again and then looking at
>>> > <qpid_root>/cpp/src/CMakeLists.txt:310
>>> > I 'smell' a possibility of getting this error if someone's using
>>> > boost v
>>> > 1.49.0 (e.g. my self !) .
>>> > Can someone confirm this since I'm not familiar  with the syntax.
>>> > Relevant
>>> > part of the code is given below ( check the bold colored text):
>>> >
>>> > and Chuck are u using books 1.45, isn't it ?
>>> >
>>> >
>>> ----------------------------------------CODE----------------------------------------------
>>> > # Expand a bit from the basic Find_Boost; be specific about what's
>>> > needed.
>>> > # Boost.system is sometimes needed; it's handled separately, below.
>>> > if (CMAKE_SYSTEM_NAME STREQUAL Windows)
>>> >   set (Boost_components filesystem program_options date_time thread
>>> > unit_test_framework regex)
>>> > else (CMAKE_SYSTEM_NAME STREQUAL Windows)
>>> >   set (Boost_components filesystem program_options
>>> >   unit_test_framework)
>>> > endif (CMAKE_SYSTEM_NAME STREQUAL Windows)
>>> >
>>> > # Visual Studio 2010 requires boost 1.45 or better.
>>> > # The choice here is to fail demanding the user to update CMake to
>>> > version N
>>> > # where Boost 1.45 is supported, or we can just accept some versions
>>> > using
>>> > # the Additional_versions variable.
>>> > if (NOT DEFINED Boost_ADDITIONAL_VERSIONS)
>>> > *  set (Boost_ADDITIONAL_VERSIONS "1.45" "1.45.0" "1.46" "1.46.0"
>>> > "1.47"
>>> > "1.47.0")*
>>> > endif (NOT DEFINED Boost_ADDITIONAL_VERSIONS)
>>> >
>>> > find_package(Boost 1.33 REQUIRED COMPONENTS ${Boost_components})
>>> > if(NOT Boost_FOUND)
>>> >   message(FATAL_ERROR "Boost C++ libraries not found.  Please install
>>> >   or
>>> > try setting BOOST_ROOT")
>>> > endif(NOT Boost_FOUND)
>>> > -----------------------------------------END
>>> >
>>> CODE------------------------------------------------------------------------
>>> >
>>> >
>>> >
>>> > On Wed, Jun 13, 2012 at 6:28 PM, Chuck Rolke <crolke@redhat.com>
>>> > wrote:
>>> >
>>> > > Hi Ramith,
>>> > >
>>> > > I had issues with boost getting confused with old versions
>>> > > regardless of
>>> > > my BOOST_ROOT settings. For instance, I had Boost 1_37 in C:\boost
>>> > > and had
>>> > > Boost 1_45 in C:\boost_1_45. Then I set BOOST_ROOT to point to
>>> > > C:\boost_1_45. Builds got confused by finding the 1_37 and using
>>> > > that.
>>> > >
>>> > > My solution was to rename C:\boost to C:\boost-old or something. By
>>> > > forcing my directory names so that no version of Boost is in a
>>> > > "standard"
>>> > > library path then my configuration override settings started to
>>> > > work
>>> > > correctly.
>>> > >
>>> > > -Chuck
>>> > >
>>> > > ----- Original Message -----
>>> > > > From: "Ramith Jayasinghe" <ramithj@opensource.lk>
>>> > > > To: "Luca Martini" <l.martini@list-group.com>
>>> > > > Cc: users@qpid.apache.org
>>> > > > Sent: Wednesday, June 13, 2012 8:47:38 AM
>>> > > > Subject: Re: Build Qpid/C++ Broker on Windows 7 (64-Bit) with
>>> > > > Visual
>>> > > Studio 2010.
>>> > > >
>>> > > > HI Luca,
>>> > > >  Thanks for the reply. But setting '
>>> > > >  set(Boost_ADDITIONAL_VERSIONS
>>> > > >  "1.49"
>>> > > > "1.49.0")' didn't work. My feeling is that cmake ( v 2.8.8)
>>> > > > correctly
>>> > > > identifies the location of the boost and its version (since error
>>> > > > message
>>> > > > throws out the correct path and the version). But somehow it
>>> > > > fails
>>> > > > without
>>> > > > finding the libraries? (does that even make sense ?)
>>> > > >
>>> > > > Regards
>>> > > > Ramith.
>>> > > >
>>> > > > On Wed, Jun 13, 2012 at 6:02 PM, Luca Martini
>>> > > > <l.martini@list-group.com>wrote:
>>> > > >
>>> > > > > Try to check if your CMake installation is able to recognize
>>> > > > > Boost
>>> > > > > version
>>> > > > > 1.49. Look at the file FindBoost.cmake in your cmake
>>> > > > > installation
>>> > > > > (mine is
>>> > > > > at
>>> > > > >
>>> > > > > C:\Program Files\CMake
>>> > > > > 2.8\share\cmake-2.8\Modules\**FindBoost.cmake
>>> > > > >
>>> > > > > )
>>> > > > >
>>> > > > > You can set the variable Boost_ADDITIONAL_VERSIONS (there
is an
>>> > > > > example
>>> > > > > inside the file to include your boost version. For instance:
>>> > > > >
>>> > > > > set(Boost_ADDITIONAL_VERSIONS "1.49" "1.49.0")
>>> > > > >
>>> > > > > Hope it helps.
>>> > > > >        Luca
>>> > > > >
>>> > > > >
>>> > > > >
>>> > > > > On 13/06/2012 14:23, Ramith Jayasinghe wrote:
>>> > > > >
>>> > > > >> Hi People,
>>> > > > >>
>>> > > > >>  I'm trying to build Qpid (1.6) using visual studio 2010
and
>>> > > > >>  I'm
>>> > > > >>  stuck
>>> > > > >> with
>>> > > > >> following errors[4]. Steps I followed are based on
>>> > > > >> (<Qpid_Root>/cpp/INSTALL-**WINDOWS) but, I'm using
versions
>>> > > > >> higher
>>> > > > >> than
>>> > > > >> what's described in the document (for example: boost
: 1.49.0,
>>> > > > >> Visual
>>> > > > >> Studio : 2010 Professional, Python : 2.7, Ruby : 1.93).
Has
>>> > > > >> anyone
>>> > > > >> done
>>> > > > >> this before?
>>> > > > >> BTW, my ultimate goal is the build WCF binding
>>> > > > >>  (<Qpid_Root>/wcf).
>>> > > > >>
>>> > > > >> Steps I followed are:
>>> > > > >>
>>> > > > >> (i) Install cmake, python, ruby,
>>> > > > >> (ii) Install boost ( path : is C:/Program
>>> > > > >> Files/boost/boost_1_49_0
>>> > > > >> )
>>> > > > >> (iii) build boost ( C:/Program
>>> > > > >> Files/boost/boost_1_49_0/**stage/lib
>>> > > > >> contains
>>> > > > >> the  output libraries)
>>> > > > >> (iii) set environment variables as following:
>>> > > > >>
>>> > > > >> BOOST_ROOT= C:\Program Files\boost\boost_1_49_0
>>> > > > >> BOOST_LIBRARYDIR = C:\Program
>>> > > > >> Files\boost\boost_1_49_0\**stage\lib
>>> > > > >> BOOST_INCLUDEDIR = C:\Program Files\boost\boost_1_49_0
>>> > > > >>
>>> > > > >> (iv) From the command prompt invoke cmake ( cmake -i
-G
>>> > > > >> "Visual
>>> > > > >> Studio
>>> > > > >> 2010" )
>>> > > > >>
>>> > > > >>
>>> > > > >> Errors:
>>> > > > >>
>>> > > > >> CMake Error at C:/Program Files (x86)/CMake
>>> > > > >> 2.8/share/cmake-2.8/Modules/**FindBoost.cmake:1200 (message):
>>> > > > >>   Unable to find the requested Boost libraries.
>>> > > > >>
>>> > > > >>   Boost version: 1.49.0
>>> > > > >>
>>> > > > >>   Boost include path: C:/Program Files/boost/boost_1_49_0
>>> > > > >>
>>> > > > >>   The following Boost libraries could not be found:
>>> > > > >>
>>> > > > >>           boost_filesystem
>>> > > > >>           boost_program_options
>>> > > > >>           boost_date_time
>>> > > > >>           boost_thread
>>> > > > >>           boost_unit_test_framework
>>> > > > >>           boost_regex
>>> > > > >>
>>> > > > >>   No Boost libraries were found.  You may need to set
>>> > > > >>   BOOST_LIBRARYDIR to
>>> > > > >> the
>>> > > > >>   directory containing Boost libraries or BOOST_ROOT
to the
>>> > > > >>   location of
>>> > > > >>   Boost.
>>> > > > >> Call Stack (most recent call first):
>>> > > > >>   src/CMakeLists.txt:310 (find_package)
>>> > > > >>
>>> > > > >>
>>> > > > >
>>> > > > > --
>>> > > > > Luca Martini
>>> > > > > List S.p.A.
>>> > > > > Via Pietrasantina 123, 56122 Pisa, ITALY
>>> > > > > +39 050 8001696 (Direct)
>>> > > > > +39 050 800151  (Switch)
>>> > > > > +39 050 8001701 (Fax)
>>> > > > > e-mail: l.martini@list-group.com  web:
>>> > > > > http://www.list-group.com
>>> > > > >
>>> > > >
>>> > >
>>> > > ---------------------------------------------------------------------
>>> > > To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
>>> > > For additional commands, e-mail: users-help@qpid.apache.org
>>> > >
>>> > >
>>> >
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@qpid.apache.org
>>> For additional commands, e-mail: users-help@qpid.apache.org
>>>
>>>
>>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message