[rabbitmq-discuss] amqp_framing.h not found!

Kamran Afridi muhammad.kamrana at gmail.com
Mon Jun 25 19:22:44 BST 2012


Hi Alan,
             Thanks a lot for the help. Though I faced one error which was
during cmake related to python and simplejson. For that we can install
http://pypi.python.org/pypi/setuptools and in command prompt

$C:/python/scripts/easy_install simplejson

Thanks Again!

On Mon, Jun 25, 2012 at 4:37 PM, Alan Antonuk <alan.antonuk at gmail.com>wrote:

> Kamran;
>
> Lets keep this on the rabbitmq-discuss list so that others may benefit
> from this exchange
>
> I think you're still trying to use the autotools build system. The
> recommended way to build rabbitmq-c on Windows is using the CMake build
> system.
>
> Here is the complete rundown on commands I'd use to build rabbitmq-c:
>
> git clone https://github.com/alanxz/rabbitmq-c
> cd rabbitmq-c
> git submodule init
> git submodule update
> mkdir _build
> cd _build
> cmake-gui ..  ; This will pop up the CMake gui. Click the configure
> button, select the toolchain you're using, then click generate when its
> finished configuring - rabbitmq-c should compile with most toolchains
> (MSVC, MinGW), you can also use the cmake command directly if you
> understand how this works.
>
> At this point you'll have makefiles or visual studio solution/project
> files. If you're using makefiles you can make them with the appropriate
> makefile processor (nmake or gmake), if you're using visual studio, you can
> open the solution file then build using the ALL_BUILD project.
>
> HTH
>
> -Alan
>
>
> On Mon, Jun 25, 2012 at 2:38 AM, Kamran Afridi <muhammad.kamrana at gmail.com
> > wrote:
>
>> Hello Alan,
>>                   While executing "./configure" it displays "checking for
>> python with simple json...NOT FOUND" after which "WARNING: unable to
>> rebuild AMQP framing" which is missing header file while building the C++
>> code, appears. I have installed Python 2.7 which  is suppose to have simple
>> json. By the way I did all GIT commands.
>>
>> Regards,
>> Kamran
>>
>>
>> On Sun, Jun 24, 2012 at 10:23 PM, Alan Antonuk <alan.antonuk at gmail.com>wrote:
>>
>>> Did you follow the directions in the README.md (
>>> https://github.com/alanxz/rabbitmq-c/blob/master/README.md)?
>>>
>>> I suspect you didn't do the git submodule init and git submodule update
>>> steps (which is why you get the Error copying file /amqp_codegen.py error)
>>>
>>> The unresolved externals look like they're from rabbitcpp.  You sure
>>> you're linking your executable with the rabbitcpp library?
>>>
>>> -Alan
>>>
>>>
>>> On Sun, Jun 24, 2012 at 12:43 PM, Kamran Afridi <
>>> muhammad.kamrana at gmail.com> wrote:
>>>
>>>> Hi Alan,
>>>>          I was able to use CMAKE (where source code: librabbitmq and
>>>> build binaries: my project folder). These are the errors I get, and also
>>>> there is visual studio file "ALL BUILD" when I try running that it gives me:
>>>> * "Error copying file "/amqp_codegen.py" to
>>>> "C:/Users/kamran/Documents/Visual Studio
>>>> 2010/Projects/AMQP2/amqp_codegen.py"."*
>>>>
>>>> Sorry for being a newbie.
>>>>
>>>> : unresolved external symbol "public: class
>>>> std::basic_string<char,struct std::char_traits<char>,class
>>>> std::allocator<char> > __thiscall AMQPException::getMessage(void)"
>>>> (?getMessage at AMQPException@@QAE?AV?$basic_string at DU?$char_traits at D@std@
>>>> @V?$allocator at D@2@@std@@XZ) referenced in function __catch$_main$0
>>>>
>>>> 1>c.obj : error LNK2019: unresolved external symbol "public: void
>>>> __thiscall AMQPExchange::setHeader(char const *,int)"
>>>> (?setHeader at AMQPExchange@@QAEXPBDH at Z) referenced in function _main
>>>>
>>>> 1>c.obj : error LNK2019: unresolved external symbol "public: void
>>>> __thiscall AMQPQueue::Bind(char const *,char const *)" (?Bind at AMQPQueue
>>>> @@QAEXPBD0 at Z) referenced in function _main
>>>>
>>>> 1>c.obj : error LNK2019: unresolved external symbol "public: void
>>>> __thiscall AMQPQueue::Declare(void)" (?Declare at AMQPQueue@@QAEXXZ)
>>>> referenced in function _main
>>>>
>>>> LNK1120: 12 unresolved externals
>>>>
>>>> Though compiler is not showing amqp_framing error.
>>>>
>>>> Thanks!
>>>>
>>>> Kamran
>>>>
>>>> On Sun, Jun 24, 2012 at 5:12 PM, Alan Antonuk <alan.antonuk at gmail.com>wrote:
>>>>
>>>>> Somewhat obvious question: is amqp_framing.h in one of those two
>>>>> directories you set as an include?
>>>>>
>>>>> If you're building rabbitmq-c on Win32 (doesn't matter which version)
>>>>> I would highly recommend using the CMake-based build to build it correctly.
>>>>>
>>>>> -Alan
>>>>>
>>>>> On Sun, Jun 24, 2012 at 8:56 AM, Kamran <muhammad.kamrana at gmail.com>wrote:
>>>>>
>>>>>> And I am using windows vista.
>>>>>> _______________________________________________
>>>>>> 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/20120625/2071e312/attachment.htm>


More information about the rabbitmq-discuss mailing list