Subject: Re: [boost] sqlpp11: SQL for C++
From: Roland Bock (rbock_at_[hidden])
Date: 2013-11-15 15:18:19


On 2013-11-15 16:28, Larry Evans wrote:
> On 11/15/13 09:13, Roland Bock wrote:
>> On 2013-11-15 15:57, Larry Evans wrote:
>>> On 11/15/13 03:21, Roland Bock wrote:
>>>> On 2013-11-14 22:14, Larry Evans wrote:
>>> [snip]
>>>>> I've tried to get cmake to work; however, it only works for the:
>>>>> sqlpp11
>>>>> directory, but fails for the:
>>>>> sqlpp11-connector-sqlite3
>>>>> directory.
>>>>>
>>>>> I've attached the Makefile, and the output from `make targets_dir`.
>>>>> That target 1st clones sqlpp11, runs cmake in that directory,
>>>>> the make installs in that directory. Everything works find.
>>>>> However, with the sqlpp11-connector-sqlite3, the clone
>>>>> works, the cmake works; however, make gives a compilation
>>>>> error:
>>>>>
>>>>> /home/evansl/prog_dev/boost/git/sqlpp11/sqlpp11-connector-sqlite3/src/connection.cpp:29:31:
>>>>>
>>>>>
>>>>> fatal error: sqlpp11/exception.h: No such file or directory
>>>>> #include <sqlpp11/exception.h>
>>>>>
>>>>> caused by *not* including:
>>>>>
>>>>> -I/home/evansl/prog_dev/boost/git/sqlpp11/sqlpp11/include
>>>>>
>>>>> on the compiler command line.
>>>>>
>>>>> Is there something else I'm doing wrong?
>>>>>
>>>>> -regards,
>>>>> Larry
>>>>>
>>>>>
>>>> Hi Larry,
>>>>
>>>> First of all, thank you for your patience!
>>> You're welcome.
>>> Thanks for the work on this library!
>>>>
>>>> As far as I can tell the problem results from your install
>>>> directory not
>>>> being in the standard include path.
>>>
>>> I suspected something like that.
>>>
>>>>
>>>> I have updated the CMakeLists file in the sqlpp11-connector-sqlite3
>>>> repository to default to
>>>>
>>>> ../sqlpp11/include (as suggested by you a few mail earlier)
>>>>
>>>> This should work with your setup. I tested with your Makefile, just to
>>>> be sure :-)
>>>>
>>> I tried it and it now works with the sqlite; however, I noticed that:
>>>
>>> https://github.com/rbock/sqlpp11-connector-mysql/blob/master/CMakeLists.txt
>>>
>>>
>>>
>>> doesn't have the same change. Wouldn't that same change be needed
>>> there too?
>>>
>>> -regards,
>>> Larry
>>
>> Yes, I wanted to wait for your confirmation. Will adjust that tonight.
>>
>> Thanks and regards,
>>
>> Roland
>
> I'm not a cmake expert, but I'd think there would be some way to
> inherit this adjustment so that you could specify it somewhere
> and it would be propagated automagically to all the connector
> projects.
>
> Regards,
> Larry
The mysql connector has been updated as well.

I guess that in order to propagate anything, the connectors will have to
find the sqlpp11 directory somehow. I'll look into it some day.

Regards,

Roland