Thanks for your effort to help me.<br>I retraced my steps and managed to produce the Visual Studio Project file.<br>I opened it and tried to build the ALL_BUILD solution file and I went back to my first error:<br><br>"C:\development\cpp\rabbitmq-c\librabbitmq\amqp.h(552): fatal error C1083: Cannot open include file: 'amqp_framing.h': No such file or directory"<br><br>What possible step could I have missed?<br><br><br>On Thursday, November 8, 2012 2:30:50 AM UTC+11, Alan Antonuk wrote:<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div>Tinashe;</div><div><br></div><div>This is more of a "how to use cmake" problem.</div><div><br></div><div>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).</div>
<div><br></div><div>In your case I think you need to specify the correct generator for your needs using the -G flag when invoking cmake.</div><div>See: <a href="http://cmake.org/cmake/help/v2.8.8/cmake.html#opt:-Ggenerator-name" target="_blank">http://cmake.org/cmake/<wbr>help/v2.8.8/cmake.html#opt:-<wbr>Ggenerator-name</a></div>
<div>And a listing of generators: <a href="http://cmake.org/cmake/help/v2.8.8/cmake.html#section_Generators" target="_blank">http://cmake.org/<wbr>cmake/help/v2.8.8/cmake.html#<wbr>section_Generators</a></div><div><br></div><div>An example in your case if you're trying to build visual studio 2010 project files for a 32-bit library:</div>
<div><br></div><div>cmake -G"Visual Studio 10" c:\path\to\rabbitmq-source</div><div><br></div><div>-Alan</div><div><br><div class="gmail_quote">On Wed, Oct 31, 2012 at 10:58 PM, Tinashe <span dir="ltr"><<a href="javascript:" target="_blank" gdf-obfuscated-mailto="0pxleIzL3xYJ">tinashe...@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><b>I did this:</b><br><br>C:\development\cpp\rabbitmq-c><wbr>"C:\Program Files (x86)\CMake 2.8\bin\cmake.exe" "C:\development\cpp\bin-<wbr>rabbitmq-c"<br>
-- Using amqp_codegen.py in C:\development\cpp\rabbitmq-c\<wbr>codegen<br>-- Configuring done<br>-- Generating done<br>-- Build files have been written to: C:/development/cpp/bin-<wbr>rabbitmq-c<br><br><b>and located the nmake and tried this command</b><br>
<br>C:\development\cpp\bin-<wbr>rabbitmq-c>"C:\Program Files (x86)\VisualStudio10.0\VC\bin\<wbr>nmake.exe"<br><br>Microsoft (R) Program Maintenance Utility Version 10.00.30319.01<br>Copyright (C) Microsoft Corporation. All rights reserved.<br>
<br>NMAKE : fatal error U1064: MAKEFILE not found and no target specified<br>Stop.<div><div><br><br><br>On Thursday, November 1, 2012 1:42:33 PM UTC+11, Tinashe wrote:<blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">
I followed all the instructions up to this point:<br><br><p>Build it:</p>
<ul><li>On linux: <code>make</code>
</li><li>On win32: <code>nmake</code> or <code>msbuild</code>, or open it in visual studio and
build from there</li></ul>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:<br><br>1>------ Build started: Project: ZERO_CHECK, Configuration: Debug Win32 ------<br>
2>------ Build started: Project: rabbitmq, Configuration: Debug Win32 ------<br>2> Building Custom Rule C:/development/cpp/rabbitmq-c/<u></u><wbr>librabbitmq/CMakeLists.txt<br>2> CMake does not need to re-run because C:\development\cpp\bin-<u></u>rabbitm<wbr>q-c\librabbitmq\<u></u>CMakeFiles\<wbr>generate.stamp is up-to-date.<br>
2> Generating codegen.py<br>2> Generating amqp_codegen.py<br>2> At least one file or directory argument required.<br>2> Use --help to show usage.<br>2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\<u></u>v4<wbr>.0\Microsoft.CppCommon.<u></u>targets<wbr>(151,5): error MSB6006: "cmd.exe" exited with code 2.<br>
3>------ Build started: Project: test_parse_url, Configuration: Debug Win32 ------<br>4>------ Build started: Project: amqp_unbind, Configuration: Debug Win32 ------<br>5>------ Build started: Project: amqp_sendstring, Configuration: Debug Win32 ------<br>
6>------ Build started: Project: amqp_rpc_sendstring_client, Configuration: Debug Win32 ------<br>3> test_parse_url.c<br>6> amqp_rpc_sendstring_client.c<br>4> amqp_unbind.c<br>5> amqp_sendstring.c<br>3>C:\development\cpp\rabbitmq-<u></u><wbr>c\librabbitmq\amqp.h(552): fatal error C1083: Cannot open include file: 'amqp_framing.h': No such file or directory<br>
4>C:\development\cpp\rabbitmq-<u></u><wbr>c\librabbitmq\amqp.h(552): fatal error C1083: Cannot open include file: 'amqp_framing.h': No such file or directory<br>6>C:\development\cpp\rabbitmq-<u></u><wbr>c\librabbitmq\amqp.h(552): fatal error C1083: Cannot open include file: 'amqp_framing.h': No such file or directory<br>
4> utils.c<br>6> utils.c<br>5>C:\development\cpp\rabbitmq-<u></u><wbr>c\librabbitmq\amqp.h(552): fatal error C1083: Cannot open include file: 'amqp_framing.h': No such file or directory<br>5> utils.c<br>
4>C:\development\cpp\rabbitmq-<u></u><wbr>c\librabbitmq\amqp.h(552): fatal error C1083: Cannot open include file: 'amqp_framing.h': No such file or directory<br>6>C:\development\cpp\rabbitmq-<u></u><wbr>c\librabbitmq\amqp.h(552): fatal error C1083: Cannot open include file: 'amqp_framing.h': No such file or directory<br>
4> Generating Code...<br>7>------ Build started: Project: amqp_producer, Configuration: Debug Win32 ------<br>6> Generating Code...<br>5>C:\development\cpp\rabbitmq-<u></u><wbr>c\librabbitmq\amqp.h(552): fatal error C1083: Cannot open include file: 'amqp_framing.h': No such file or directory<br>
5> Generating Code...<br>8>------ Build started: Project: amqp_listenq, Configuration: Debug Win32 ------<br>7> amqp_producer.c<br>9>------ Build started: Project: amqp_listen, Configuration: Debug Win32 ------<br>
8> amqp_listenq.c<br>7>C:\development\cpp\rabbitmq-<u></u><wbr>c\librabbitmq\amqp.h(552): fatal error C1083: Cannot open include file: 'amqp_framing.h': No such file or directory<br>7> utils.c<br>8>C:\development\cpp\rabbitmq-<u></u><wbr>c\librabbitmq\amqp.h(552): fatal error C1083: Cannot open include file: 'amqp_framing.h': No such file or directory<br>
8> utils.c<br>7>C:\development\cpp\rabbitmq-<u></u><wbr>c\librabbitmq\amqp.h(552): fatal error C1083: Cannot open include file: 'amqp_framing.h': No such file or directory<br>7> Generating Code...<br>8>C:\development\cpp\rabbitmq-<u></u><wbr>c\librabbitmq\amqp.h(552): fatal error C1083: Cannot open include file: 'amqp_framing.h': No such file or directory<br>
8> Generating Code...<br>10>------ Build started: Project: amqp_exchange_declare, Configuration: Debug Win32 ------<br>9> amqp_listen.c<br>9>C:\development\cpp\rabbitmq-<u></u><wbr>c\librabbitmq\amqp.h(552): fatal error C1083: Cannot open include file: 'amqp_framing.h': No such file or directory<br>
9> utils.c<br>11>------ Build started: Project: amqp_consumer, Configuration: Debug Win32 ------<br>9>C:\development\cpp\rabbitmq-<u></u><wbr>c\librabbitmq\amqp.h(552): fatal error C1083: Cannot open include file: 'amqp_framing.h': No such file or directory<br>
10> amqp_exchange_declare.c<br>9> Generating Code...<br>10>C:\development\cpp\<u></u>rabbitmq<wbr>-c\librabbitmq\amqp.h(<u></u>552): fatal error C1083: Cannot open include file: 'amqp_framing.h': No such file or directory<br>
10> utils.c<br>12>------ Build started: Project: amqp_bind, Configuration: Debug Win32 ------<br>10>C:\development\cpp\<u></u>rabbitmq<wbr>-c\librabbitmq\amqp.h(<u></u>552): fatal error C1083: Cannot open include file: 'amqp_framing.h': No such file or directory<br>
10> Generating Code...<br>13>------ Build started: Project: test_tables, Configuration: Debug Win32 ------<br>11> amqp_consumer.c<br>11>C:\development\cpp\<u></u>rabbitmq<wbr>-c\librabbitmq\amqp.h(<u></u>552): fatal error C1083: Cannot open include file: 'amqp_framing.h': No such file or directory<br>
11> utils.c<br>12> amqp_bind.c<br>11>C:\development\cpp\<u></u>rabbitmq<wbr>-c\librabbitmq\amqp.h(<u></u>552): fatal error C1083: Cannot open include file: 'amqp_framing.h': No such file or directory<br>12>C:\development\cpp\<u></u>rabbitmq<wbr>-c\librabbitmq\amqp.h(<u></u>552): fatal error C1083: Cannot open include file: 'amqp_framing.h': No such file or directory<br>
11> Generating Code...<br>12> utils.c<br>13> test_tables.c<br>12>C:\development\cpp\<u></u>rabbitmq<wbr>-c\librabbitmq\amqp.h(<u></u>552): fatal error C1083: Cannot open include file: 'amqp_framing.h': No such file or directory<br>
12> Generating Code...<br>13>C:\development\cpp\<u></u>rabbitmq<wbr>-c\librabbitmq\amqp.h(<u></u>552): fatal error C1083: Cannot open include file: 'amqp_framing.h': No such file or directory<br>14>------ Build started: Project: ALL_BUILD, Configuration: Debug Win32 ------<br>
14> Build all projects<br>========== Build: 2 succeeded, 12 failed, 0 up-to-date, 0 skipped ==========<br><br><br><br><br><br>On Thursday, November 1, 2012 3:00:58 AM UTC+11, Alan Antonuk wrote:<blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex">
Check the rabbitmq-c README.md file:<div><br></div><div><a href="https://github.com/alanxz/rabbitmq-c/blob/master/README.md" target="_blank">https://github.com/alanxz/<u></u>rabb<wbr>itmq-c/blob/master/README.<u></u>md</a></div>
<div><br></div><div>Follow the instructions for building with CMake</div>
<div><br></div><div>-Alan<br><br><div class="gmail_quote">On Wed, Oct 31, 2012 at 8:06 AM, Tinashe <span dir="ltr"><<a>tinashe...@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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.<br>
<br>______________________________<u></u><wbr>_________________<br>
rabbitmq-discuss mailing list<br>
<a>rabbitmq...@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/<u></u>cgi<wbr>-bin/mailman/listinfo/<u></u>rabbitmq<wbr>-discuss</a><br>
<br></blockquote></div><br></div>
</blockquote></blockquote></div></div><br>______________________________<wbr>_________________<br>
rabbitmq-discuss mailing list<br>
<a href="javascript:" target="_blank" gdf-obfuscated-mailto="0pxleIzL3xYJ">rabbitmq...@lists.<wbr>rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/<wbr>cgi-bin/mailman/listinfo/<wbr>rabbitmq-discuss</a><br>
<br></blockquote></div><br></div>
</blockquote>