Run cmake-gui against the build-directory (it should also pick up your source directory and generator).<div><br></div><div>Whats the value of the PYTHON_EXECUTABLE variable?</div><div><br></div><div>-Alan<br><br><div class="gmail_quote">
On Sun, Nov 11, 2012 at 6:53 PM, Tinashe <span dir="ltr">&lt;<a href="mailto:tinashechipomho@gmail.com" target="_blank">tinashechipomho@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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:<div class="im">
<br><br>&quot;C:\development\cpp\rabbitmq-c\librabbitmq\amqp.h(552): fatal error C1083: Cannot open include file: &#39;amqp_framing.h&#39;: No such file or directory&quot;<br><br></div>What possible step could I have missed?<div class="im">
<br><br><br>On Thursday, November 8, 2012 2:30:50 AM UTC+11, Alan Antonuk wrote:</div><blockquote class="gmail_quote" style="margin:0;margin-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><div>Tinashe;</div>
<div><br></div><div>This is more of a &quot;how to use cmake&quot; 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/<u></u>help/v2.8.8/cmake.html#opt:-<u></u>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/<u></u>cmake/help/v2.8.8/cmake.html#<u></u>section_Generators</a></div><div><br>
</div><div>An example in your case if you&#39;re trying to build visual studio 2010 project files for a 32-bit library:</div>
<div><br></div><div>cmake -G&quot;Visual Studio 10&quot; c:\path\to\rabbitmq-source</div><div><br></div><div>-Alan</div></div><div><br><div class="gmail_quote"><div><div class="h5">On Wed, Oct 31, 2012 at 10:58 PM, Tinashe <span dir="ltr">&lt;<a>tinashe...@gmail.com</a>&gt;</span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><b>I did this:</b><br><br>C:\development\cpp\rabbitmq-c&gt;<u></u>&quot;C:\Program Files (x86)\CMake 2.8\bin\cmake.exe&quot; &quot;C:\development\cpp\bin-<u></u>rabbitmq-c&quot;<br>

-- Using amqp_codegen.py in C:\development\cpp\rabbitmq-c\<u></u>codegen<br>-- Configuring done<br>-- Generating done<br>-- Build files have been written to: C:/development/cpp/bin-<u></u>rabbitmq-c<br><br><b>and located the nmake and tried this command</b><br>

<br>C:\development\cpp\bin-<u></u>rabbitmq-c&gt;&quot;C:\Program Files (x86)\VisualStudio10.0\VC\bin\<u></u>nmake.exe&quot;<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&gt;------ Build started: Project: ZERO_CHECK, Configuration: Debug Win32 ------<br>

2&gt;------ Build started: Project: rabbitmq, Configuration: Debug Win32 ------<br>2&gt;� Building Custom Rule C:/development/cpp/rabbitmq-c/<u></u><u></u>librabbitmq/CMakeLists.txt<br>2&gt;� CMake does not need to re-run because C:\development\cpp\bin-<u></u>rabbitm<u></u>q-c\librabbitmq\<u></u>CMakeFiles\<u></u>generate.stamp is up-to-date.<br>

2&gt;� Generating codegen.py<br>2&gt;� Generating amqp_codegen.py<br>2&gt;� At least one file or directory argument required.<br>2&gt;� Use --help to show usage.<br>2&gt;C:\Program Files (x86)\MSBuild\Microsoft.Cpp\<u></u>v4<u></u>.0\Microsoft.CppCommon.<u></u>targets<u></u>(151,5): error MSB6006: &quot;cmd.exe&quot; exited with code 2.<br>

3&gt;------ Build started: Project: test_parse_url, Configuration: Debug Win32 ------<br>4&gt;------ Build started: Project: amqp_unbind, Configuration: Debug Win32 ------<br>5&gt;------ Build started: Project: amqp_sendstring, Configuration: Debug Win32 ------<br>

6&gt;------ Build started: Project: amqp_rpc_sendstring_client, Configuration: Debug Win32 ------<br>3&gt;� test_parse_url.c<br>6&gt;� amqp_rpc_sendstring_client.c<br>4&gt;� amqp_unbind.c<br>5&gt;� amqp_sendstring.c<br>3&gt;C:\development\cpp\rabbitmq-<u></u><u></u>c\librabbitmq\amqp.h(552): fatal error C1083: Cannot open include file: &#39;amqp_framing.h&#39;: No such file or directory<br>

4&gt;C:\development\cpp\rabbitmq-<u></u><u></u>c\librabbitmq\amqp.h(552): fatal error C1083: Cannot open include file: &#39;amqp_framing.h&#39;: No such file or directory<br>6&gt;C:\development\cpp\rabbitmq-<u></u><u></u>c\librabbitmq\amqp.h(552): fatal error C1083: Cannot open include file: &#39;amqp_framing.h&#39;: No such file or directory<br>

4&gt;� utils.c<br>6&gt;� utils.c<br>5&gt;C:\development\cpp\rabbitmq-<u></u><u></u>c\librabbitmq\amqp.h(552): fatal error C1083: Cannot open include file: &#39;amqp_framing.h&#39;: No such file or directory<br>5&gt;� utils.c<br>

4&gt;C:\development\cpp\rabbitmq-<u></u><u></u>c\librabbitmq\amqp.h(552): fatal error C1083: Cannot open include file: &#39;amqp_framing.h&#39;: No such file or directory<br>6&gt;C:\development\cpp\rabbitmq-<u></u><u></u>c\librabbitmq\amqp.h(552): fatal error C1083: Cannot open include file: &#39;amqp_framing.h&#39;: No such file or directory<br>

4&gt;� Generating Code...<br>7&gt;------ Build started: Project: amqp_producer, Configuration: Debug Win32 ------<br>6&gt;� Generating Code...<br>5&gt;C:\development\cpp\rabbitmq-<u></u><u></u>c\librabbitmq\amqp.h(552): fatal error C1083: Cannot open include file: &#39;amqp_framing.h&#39;: No such file or directory<br>

5&gt;� Generating Code...<br>8&gt;------ Build started: Project: amqp_listenq, Configuration: Debug Win32 ------<br>7&gt;� amqp_producer.c<br>9&gt;------ Build started: Project: amqp_listen, Configuration: Debug Win32 ------<br>

8&gt;� amqp_listenq.c<br>7&gt;C:\development\cpp\rabbitmq-<u></u><u></u>c\librabbitmq\amqp.h(552): fatal error C1083: Cannot open include file: &#39;amqp_framing.h&#39;: No such file or directory<br>7&gt;� utils.c<br>8&gt;C:\development\cpp\rabbitmq-<u></u><u></u>c\librabbitmq\amqp.h(552): fatal error C1083: Cannot open include file: &#39;amqp_framing.h&#39;: No such file or directory<br>

8&gt;� utils.c<br>7&gt;C:\development\cpp\rabbitmq-<u></u><u></u>c\librabbitmq\amqp.h(552): fatal error C1083: Cannot open include file: &#39;amqp_framing.h&#39;: No such file or directory<br>7&gt;� Generating Code...<br>
8&gt;C:\development\cpp\rabbitmq-<u></u><u></u>c\librabbitmq\amqp.h(552): fatal error C1083: Cannot open include file: &#39;amqp_framing.h&#39;: No such file or directory<br>
8&gt;� Generating Code...<br>10&gt;------ Build started: Project: amqp_exchange_declare, Configuration: Debug Win32 ------<br>9&gt;� amqp_listen.c<br>9&gt;C:\development\cpp\rabbitmq-<u></u><u></u>c\librabbitmq\amqp.h(552): fatal error C1083: Cannot open include file: &#39;amqp_framing.h&#39;: No such file or directory<br>

9&gt;� utils.c<br>11&gt;------ Build started: Project: amqp_consumer, Configuration: Debug Win32 ------<br>9&gt;C:\development\cpp\rabbitmq-<u></u><u></u>c\librabbitmq\amqp.h(552): fatal error C1083: Cannot open include file: &#39;amqp_framing.h&#39;: No such file or directory<br>

10&gt;� amqp_exchange_declare.c<br>9&gt;� Generating Code...<br>10&gt;C:\development\cpp\<u></u>rabbitmq<u></u>-c\librabbitmq\amqp.h(<u></u>552): fatal error C1083: Cannot open include file: &#39;amqp_framing.h&#39;: No such file or directory<br>

10&gt;� utils.c<br>12&gt;------ Build started: Project: amqp_bind, Configuration: Debug Win32 ------<br>10&gt;C:\development\cpp\<u></u>rabbitmq<u></u>-c\librabbitmq\amqp.h(<u></u>552): fatal error C1083: Cannot open include file: &#39;amqp_framing.h&#39;: No such file or directory<br>

10&gt;� Generating Code...<br>13&gt;------ Build started: Project: test_tables, Configuration: Debug Win32 ------<br>11&gt;� amqp_consumer.c<br>11&gt;C:\development\cpp\<u></u>rabbitmq<u></u>-c\librabbitmq\amqp.h(<u></u>552): fatal error C1083: Cannot open include file: &#39;amqp_framing.h&#39;: No such file or directory<br>

11&gt;� utils.c<br>12&gt;� amqp_bind.c<br>11&gt;C:\development\cpp\<u></u>rabbitmq<u></u>-c\librabbitmq\amqp.h(<u></u>552): fatal error C1083: Cannot open include file: &#39;amqp_framing.h&#39;: No such file or directory<br>
12&gt;C:\development\cpp\<u></u>rabbitmq<u></u>-c\librabbitmq\amqp.h(<u></u>552): fatal error C1083: Cannot open include file: &#39;amqp_framing.h&#39;: No such file or directory<br>
11&gt;� Generating Code...<br>12&gt;� utils.c<br>13&gt;� test_tables.c<br>12&gt;C:\development\cpp\<u></u>rabbitmq<u></u>-c\librabbitmq\amqp.h(<u></u>552): fatal error C1083: Cannot open include file: &#39;amqp_framing.h&#39;: No such file or directory<br>

12&gt;� Generating Code...<br>13&gt;C:\development\cpp\<u></u>rabbitmq<u></u>-c\librabbitmq\amqp.h(<u></u>552): fatal error C1083: Cannot open include file: &#39;amqp_framing.h&#39;: No such file or directory<br>14&gt;------ Build started: Project: ALL_BUILD, Configuration: Debug Win32 ------<br>

14&gt;� 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<u></u>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">&lt;<a>tinashe...@gmail.com</a>&gt;</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><u></u>_________________<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<u></u>-bin/mailman/listinfo/<u></u>rabbitmq<u></u>-discuss</a><br>
<br></blockquote></div><br></div>
</blockquote></blockquote></div></div><br>______________________________<u></u>_________________<br>
rabbitmq-discuss mailing list<br>
</div></div><a>rabbitmq...@lists.<u></u>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-bin/mailman/listinfo/<u></u>rabbitmq-discuss</a><br>
<br></blockquote></div><br></div>
</blockquote><br>_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
<br></blockquote></div><br></div>