[rabbitmq-discuss] librabbitmq c++ client in VS C++2010
Alan Antonuk
alan.antonuk at gmail.com
Wed Nov 7 15:30:49 GMT 2012
Tinashe;
This is more of a "how to use cmake" problem.
CMake is a program that takes a description of how to build a program (a
CMakeLists.txt file) and generates a native build file (a Makefile, Visual
Studio Project file, etc).
In your case I think you need to specify the correct generator for your
needs using the -G flag when invoking cmake.
See: http://cmake.org/cmake/help/v2.8.8/cmake.html#opt:-Ggenerator-name
And a listing of generators:
http://cmake.org/cmake/help/v2.8.8/cmake.html#section_Generators
An example in your case if you're trying to build visual studio 2010
project files for a 32-bit library:
cmake -G"Visual Studio 10" c:\path\to\rabbitmq-source
-Alan
On Wed, Oct 31, 2012 at 10:58 PM, Tinashe <tinashechipomho at gmail.com> wrote:
> *I did this:*
>
> C:\development\cpp\rabbitmq-c>"C:\Program Files (x86)\CMake
> 2.8\bin\cmake.exe" "C:\development\cpp\bin-rabbitmq-c"
> -- Using amqp_codegen.py in C:\development\cpp\rabbitmq-c\codegen
> -- Configuring done
> -- Generating done
> -- Build files have been written to: C:/development/cpp/bin-rabbitmq-c
>
> *and located the nmake and tried this command*
>
> C:\development\cpp\bin-rabbitmq-c>"C:\Program Files
> (x86)\VisualStudio10.0\VC\bin\nmake.exe"
>
> Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
> Copyright (C) Microsoft Corporation. All rights reserved.
>
> NMAKE : fatal error U1064: MAKEFILE not found and no target specified
> Stop.
>
>
>
> On Thursday, November 1, 2012 1:42:33 PM UTC+11, Tinashe wrote:
>>
>> I followed all the instructions up to this point:
>>
>> Build it:
>>
>> - On linux: make
>> - On win32: nmake or msbuild, or open it in visual studio and build
>> from there
>>
>> Is nmake or msbuild part of the VS2010? A bunch of projects have been
>> created that I manage to open with VS C++ 2010, when I try to compile I got
>> the following errors:
>>
>> 1>------ Build started: Project: ZERO_CHECK, Configuration: Debug Win32
>> ------
>> 2>------ Build started: Project: rabbitmq, Configuration: Debug Win32
>> ------
>> 2> Building Custom Rule C:/development/cpp/rabbitmq-c/**
>> librabbitmq/CMakeLists.txt
>> 2> CMake does not need to re-run because C:\development\cpp\bin-**
>> rabbitmq-c\librabbitmq\**CMakeFiles\generate.stamp is up-to-date.
>> 2> Generating codegen.py
>> 2> Generating amqp_codegen.py
>> 2> At least one file or directory argument required.
>> 2> Use --help to show usage.
>> 2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\**
>> v4.0\Microsoft.CppCommon.**targets(151,5): error MSB6006: "cmd.exe"
>> exited with code 2.
>> 3>------ Build started: Project: test_parse_url, Configuration: Debug
>> Win32 ------
>> 4>------ Build started: Project: amqp_unbind, Configuration: Debug Win32
>> ------
>> 5>------ Build started: Project: amqp_sendstring, Configuration: Debug
>> Win32 ------
>> 6>------ Build started: Project: amqp_rpc_sendstring_client,
>> Configuration: Debug Win32 ------
>> 3> test_parse_url.c
>> 6> amqp_rpc_sendstring_client.c
>> 4> amqp_unbind.c
>> 5> amqp_sendstring.c
>> 3>C:\development\cpp\rabbitmq-**c\librabbitmq\amqp.h(552): fatal error
>> C1083: Cannot open include file: 'amqp_framing.h': No such file or directory
>> 4>C:\development\cpp\rabbitmq-**c\librabbitmq\amqp.h(552): fatal error
>> C1083: Cannot open include file: 'amqp_framing.h': No such file or directory
>> 6>C:\development\cpp\rabbitmq-**c\librabbitmq\amqp.h(552): fatal error
>> C1083: Cannot open include file: 'amqp_framing.h': No such file or directory
>> 4> utils.c
>> 6> utils.c
>> 5>C:\development\cpp\rabbitmq-**c\librabbitmq\amqp.h(552): fatal error
>> C1083: Cannot open include file: 'amqp_framing.h': No such file or directory
>> 5> utils.c
>> 4>C:\development\cpp\rabbitmq-**c\librabbitmq\amqp.h(552): fatal error
>> C1083: Cannot open include file: 'amqp_framing.h': No such file or directory
>> 6>C:\development\cpp\rabbitmq-**c\librabbitmq\amqp.h(552): fatal error
>> C1083: Cannot open include file: 'amqp_framing.h': No such file or directory
>> 4> Generating Code...
>> 7>------ Build started: Project: amqp_producer, Configuration: Debug
>> Win32 ------
>> 6> Generating Code...
>> 5>C:\development\cpp\rabbitmq-**c\librabbitmq\amqp.h(552): fatal error
>> C1083: Cannot open include file: 'amqp_framing.h': No such file or directory
>> 5> Generating Code...
>> 8>------ Build started: Project: amqp_listenq, Configuration: Debug Win32
>> ------
>> 7> amqp_producer.c
>> 9>------ Build started: Project: amqp_listen, Configuration: Debug Win32
>> ------
>> 8> amqp_listenq.c
>> 7>C:\development\cpp\rabbitmq-**c\librabbitmq\amqp.h(552): fatal error
>> C1083: Cannot open include file: 'amqp_framing.h': No such file or directory
>> 7> utils.c
>> 8>C:\development\cpp\rabbitmq-**c\librabbitmq\amqp.h(552): fatal error
>> C1083: Cannot open include file: 'amqp_framing.h': No such file or directory
>> 8> utils.c
>> 7>C:\development\cpp\rabbitmq-**c\librabbitmq\amqp.h(552): fatal error
>> C1083: Cannot open include file: 'amqp_framing.h': No such file or directory
>> 7> Generating Code...
>> 8>C:\development\cpp\rabbitmq-**c\librabbitmq\amqp.h(552): fatal error
>> C1083: Cannot open include file: 'amqp_framing.h': No such file or directory
>> 8> Generating Code...
>> 10>------ Build started: Project: amqp_exchange_declare, Configuration:
>> Debug Win32 ------
>> 9> amqp_listen.c
>> 9>C:\development\cpp\rabbitmq-**c\librabbitmq\amqp.h(552): fatal error
>> C1083: Cannot open include file: 'amqp_framing.h': No such file or directory
>> 9> utils.c
>> 11>------ Build started: Project: amqp_consumer, Configuration: Debug
>> Win32 ------
>> 9>C:\development\cpp\rabbitmq-**c\librabbitmq\amqp.h(552): fatal error
>> C1083: Cannot open include file: 'amqp_framing.h': No such file or directory
>> 10> amqp_exchange_declare.c
>> 9> Generating Code...
>> 10>C:\development\cpp\**rabbitmq-c\librabbitmq\amqp.h(**552): fatal
>> error C1083: Cannot open include file: 'amqp_framing.h': No such file or
>> directory
>> 10> utils.c
>> 12>------ Build started: Project: amqp_bind, Configuration: Debug Win32
>> ------
>> 10>C:\development\cpp\**rabbitmq-c\librabbitmq\amqp.h(**552): fatal
>> error C1083: Cannot open include file: 'amqp_framing.h': No such file or
>> directory
>> 10> Generating Code...
>> 13>------ Build started: Project: test_tables, Configuration: Debug Win32
>> ------
>> 11> amqp_consumer.c
>> 11>C:\development\cpp\**rabbitmq-c\librabbitmq\amqp.h(**552): fatal
>> error C1083: Cannot open include file: 'amqp_framing.h': No such file or
>> directory
>> 11> utils.c
>> 12> amqp_bind.c
>> 11>C:\development\cpp\**rabbitmq-c\librabbitmq\amqp.h(**552): fatal
>> error C1083: Cannot open include file: 'amqp_framing.h': No such file or
>> directory
>> 12>C:\development\cpp\**rabbitmq-c\librabbitmq\amqp.h(**552): fatal
>> error C1083: Cannot open include file: 'amqp_framing.h': No such file or
>> directory
>> 11> Generating Code...
>> 12> utils.c
>> 13> test_tables.c
>> 12>C:\development\cpp\**rabbitmq-c\librabbitmq\amqp.h(**552): fatal
>> error C1083: Cannot open include file: 'amqp_framing.h': No such file or
>> directory
>> 12> Generating Code...
>> 13>C:\development\cpp\**rabbitmq-c\librabbitmq\amqp.h(**552): fatal
>> error C1083: Cannot open include file: 'amqp_framing.h': No such file or
>> directory
>> 14>------ Build started: Project: ALL_BUILD, Configuration: Debug Win32
>> ------
>> 14> Build all projects
>> ========== Build: 2 succeeded, 12 failed, 0 up-to-date, 0 skipped
>> ==========
>>
>>
>>
>>
>>
>> On Thursday, November 1, 2012 3:00:58 AM UTC+11, Alan Antonuk wrote:
>>>
>>> Check the rabbitmq-c README.md file:
>>>
>>> https://github.com/alanxz/**rabbitmq-c/blob/master/README.**md<https://github.com/alanxz/rabbitmq-c/blob/master/README.md>
>>>
>>> Follow the instructions for building with CMake
>>>
>>> -Alan
>>>
>>> On Wed, Oct 31, 2012 at 8:06 AM, Tinashe <tinashe... at gmail.com> wrote:
>>>
>>>> Can someone just give me a step by step guide to compile the c++ client
>>>> in Visual Studio, what I want to do is make a dll in VS C++ 2010.
>>>>
>>>> ______________________________**_________________
>>>> rabbitmq-discuss mailing list
>>>> rabbitmq... at lists.rabbitmq.com
>>>> https://lists.rabbitmq.com/**cgi-bin/mailman/listinfo/**
>>>> rabbitmq-discuss<https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss>
>>>>
>>>>
>>>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20121107/5823258a/attachment.htm>
More information about the rabbitmq-discuss
mailing list