[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mapserver-dev
Subject:    Re: [mapserver-dev] Issue with CMAKE plugin build
From:       thomas bonfort <thomas.bonfort () gmail ! com>
Date:       2013-03-31 20:33:08
Message-ID: CAOM3y2j1or0URvfyrP5JRT1bq2LE_BSyTouTCbNx82VbkShR5w () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Tamas,
If the user wants the oracle plugin, do I have this correct:
- libmapserver should be compiled without oracle support at all
- a module should be built containing just the code from
maporaclespatial.c, compiled with USE_ORACLE=1 and USE_ORACLE_PLUGIN=1

--
thomas



On 31 March 2013 15:22, Tamas Szekeres <szekerest@gmail.com> wrote:

> I also think both USE_ORACLESPATIAL  and USE_ORACLE_PLUGIN should be set
> to 1 but it should be set only when compiling the oraclespatial plugin
> component, not the core mapserver. In the core mapserver compilation when
> the user sets USE_ORACLE_PLUGIN=1 we should implicitly
> set USE_ORACLESPATIAL=0 to avoid the inclusion of the oci code. However in
> the plugin module we should keep both settings to 1. Since I'm not a cmake
> guru, do we have a simple solution to achieve this result?
>
> Best regards,
>
> Tamas
>
>
>
> 2013/3/31 thomas bonfort <thomas.bonfort@gmail.com>
>
>> Tamas,
>> From the code in maporaclespatial.c both USE_ORACLESPATIAL and
>> USE_ORACLE_PLUGIN need to be defined in order for some of the needed code
>> to be activated. As there's no reference to the oracle_plugin stuff in the
>> unix makefiles, I'll infer that this is a windows only feature and suppose
>> that you can handle the dependencies in the cmake files as you wish.
>>
>> regards,
>> thomas
>>
>>
>> On 31 March 2013 12:26, Tamas Szekeres <szekerest@gmail.com> wrote:
>>
>>> I wanted to build mapserver with oraclespatial support to compile
>>> oraclespatial as a plugin, but that doesn't seem to work.
>>>
>>> Actually when setting WITH_ORACLE_PLUGIN=1, I also require to set
>>>  WITH_ORACLESPATIAL=1 which causes that oracle is being built in mapserver
>>> directly. However, I don't want to build oracle in mapserver directly, just
>>> compile the oracle plugin (dll).
>>>
>>> IMHO we should be able to set the combination: WITH_ORACLESPATIAL=0 and
>>> WITH_ORACLE_PLUGIN=1. In this case we should get an additional module
>>> generated by cmake to compile the oracle plugin separately.
>>>
>>> The same should apply to the SDE and MSSQL plugins too.
>>>
>>> Best regards,
>>>
>>> Tamas
>>>
>>>
>>> _______________________________________________
>>> mapserver-dev mailing list
>>> mapserver-dev@lists.osgeo.org
>>> http://lists.osgeo.org/mailman/listinfo/mapserver-dev
>>>
>>>
>>
>

[Attachment #5 (text/html)]

<div dir="ltr">Tamas,  <div style>If the user wants the oracle plugin, do I have this \
correct:</div><div style>- libmapserver should be compiled without oracle support at \
all</div><div style>- a module should be built containing just the code from \
maporaclespatial.c, compiled with USE_ORACLE=1 and USE_ORACLE_PLUGIN=1</div> <div \
style><br></div><div style>--</div><div style>thomas</div><div \
style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 31 \
March 2013 15:22, Tamas Szekeres <span dir="ltr">&lt;<a \
href="mailto:szekerest@gmail.com" target="_blank">szekerest@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">I also think both USE_ORACLESPATIAL   and \
USE_ORACLE_PLUGIN  should be set to 1 but it should be set only when compiling the \
oraclespatial plugin component, not the core mapserver. In the core mapserver \
compilation when the user sets  USE_ORACLE_PLUGIN=1 we should implicitly set  \
USE_ORACLESPATIAL=0 to avoid the inclusion of the oci code. However in the plugin \
module we should keep both settings to 1. Since I&#39;m not a cmake guru, do we have \
a simple solution to achieve this result?<div>

<br></div><div>Best regards,</div><div><br></div><div>Tamas</div><div \
class="HOEnZb"><div class="h5"><div><br></div><div><br><br><div \
class="gmail_quote">2013/3/31 thomas bonfort <span dir="ltr">&lt;<a \
href="mailto:thomas.bonfort@gmail.com" \
target="_blank">thomas.bonfort@gmail.com</a>&gt;</span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">Tamas,<div>From the code in maporaclespatial.c \
both USE_ORACLESPATIAL and USE_ORACLE_PLUGIN need to be defined in order for some of \
the needed code to be activated. As there&#39;s no reference to the oracle_plugin \
stuff in the unix makefiles, I&#39;ll infer that this is a windows only feature and \
suppose that you can handle the dependencies in the cmake files as you wish.</div>


<div><br></div><div>regards,</div><div>thomas</div></div><div \
class="gmail_extra"><br><br><div class="gmail_quote"><div><div>On 31 March 2013 \
12:26, Tamas Szekeres <span dir="ltr">&lt;<a href="mailto:szekerest@gmail.com" \
target="_blank">szekerest@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>I wanted to build mapserver with oraclespatial \
support to compile oraclespatial as a plugin, but that doesn&#39;t seem to work.<div>


<br></div><div>Actually when setting WITH_ORACLE_PLUGIN=1, I also require to set   \
WITH_ORACLESPATIAL=1 which causes that oracle is being built in mapserver directly. \
However, I don&#39;t want to build oracle in mapserver directly, just compile the \
oracle plugin (dll).</div>



<div><br></div><div>IMHO we should be able to set the combination: \
WITH_ORACLESPATIAL=0 and WITH_ORACLE_PLUGIN=1. In this case we should get an \
additional module generated by cmake to compile the oracle plugin separately.</div>



<div><br></div><div>The same should apply to the SDE and MSSQL plugins \
too.</div><div><br></div><div>Best \
regards,</div><div><br></div><div>Tamas</div><div><br></div> \
<br></div></div>_______________________________________________<br> mapserver-dev \
mailing list<br> <a href="mailto:mapserver-dev@lists.osgeo.org" \
target="_blank">mapserver-dev@lists.osgeo.org</a><br> <a \
href="http://lists.osgeo.org/mailman/listinfo/mapserver-dev" \
target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-dev</a><br> \
<br></blockquote></div><br></div> </blockquote></div><br></div>
</div></div></blockquote></div><br></div>



_______________________________________________
mapserver-dev mailing list
mapserver-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic