How to make a new include work

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

How to make a new include work

Patricia Shanahan
I need to include main/sc/inc/document.hxx in
main/sfx2/source/view/frmload.cxx. It is proving surprisingly difficult
- there seems to be some copying of header files???

Any suggestions? What should the include line look like? Do I need to
run configure and/or bootstrap again?

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: How to make a new include work

Peter Kovacs-4
Not sure, if it needed.

But have you added the path to Library_sfx.mk?

For 4.1.3 it looks like this:

$(eval $(call gb_Library_set_componentfile,sfx,sfx2/util/sfx))

$(eval $(call gb_Library_set_include,sfx,\
     -I$(SRCDIR)/sfx2/inc \
     -I$(SRCDIR)/sfx2/inc/sfx2 \
     -I$(SRCDIR)/sfx2/source/inc \
     -I$(SRCDIR)/sfx2/inc/pch \
     -I$(WORKDIR)/SdiTarget/sfx2/sdi \
     -I$(WORKDIR)/inc/ \
     $$(INCLUDE) \
     -I$(OUTDIR)/inc/offuh \
     -I$(OUTDIR)/inc \
     $(LIBXML_CFLAGS) \


But maybe my understanding on including is wrong :-)

All the best
Peter

On 28.08.2017 19:41, Patricia Shanahan wrote:

> I need to include main/sc/inc/document.hxx in
> main/sfx2/source/view/frmload.cxx. It is proving surprisingly
> difficult - there seems to be some copying of header files???
>
> Any suggestions? What should the include line look like? Do I need to
> run configure and/or bootstrap again?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: How to make a new include work

Peter Kovacs-3
sry. The message got probable stuck due to ID mess on my side.


On 28.08.2017 20:49, Peter Kovacs wrote:

> Not sure, if it needed.
>
> But have you added the path to Library_sfx.mk?
>
> For 4.1.3 it looks like this:
>
> $(eval $(call gb_Library_set_componentfile,sfx,sfx2/util/sfx))
>
> $(eval $(call gb_Library_set_include,sfx,\
>     -I$(SRCDIR)/sfx2/inc \
>     -I$(SRCDIR)/sfx2/inc/sfx2 \
>     -I$(SRCDIR)/sfx2/source/inc \
>     -I$(SRCDIR)/sfx2/inc/pch \
>     -I$(WORKDIR)/SdiTarget/sfx2/sdi \
>     -I$(WORKDIR)/inc/ \
>     $$(INCLUDE) \
>     -I$(OUTDIR)/inc/offuh \
>     -I$(OUTDIR)/inc \
>     $(LIBXML_CFLAGS) \
>
>
> But maybe my understanding on including is wrong :-)
>
> All the best
> Peter
>
> On 28.08.2017 19:41, Patricia Shanahan wrote:
>> I need to include main/sc/inc/document.hxx in
>> main/sfx2/source/view/frmload.cxx. It is proving surprisingly
>> difficult - there seems to be some copying of header files???
>>
>> Any suggestions? What should the include line look like? Do I need to
>> run configure and/or bootstrap again?
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: How to make a new include work

Patricia Shanahan
Looks interesting. An include I needed from sfx2 worked just fine, so
I'll make sc look the same way in that file.

On 8/28/2017 12:12 PM, Peter Kovacs wrote:

> sry. The message got probable stuck due to ID mess on my side.
>
>
> On 28.08.2017 20:49, Peter Kovacs wrote:
>> Not sure, if it needed.
>>
>> But have you added the path to Library_sfx.mk?
>>
>> For 4.1.3 it looks like this:
>>
>> $(eval $(call gb_Library_set_componentfile,sfx,sfx2/util/sfx))
>>
>> $(eval $(call gb_Library_set_include,sfx,\
>>     -I$(SRCDIR)/sfx2/inc \
>>     -I$(SRCDIR)/sfx2/inc/sfx2 \
>>     -I$(SRCDIR)/sfx2/source/inc \
>>     -I$(SRCDIR)/sfx2/inc/pch \
>>     -I$(WORKDIR)/SdiTarget/sfx2/sdi \
>>     -I$(WORKDIR)/inc/ \
>>     $$(INCLUDE) \
>>     -I$(OUTDIR)/inc/offuh \
>>     -I$(OUTDIR)/inc \
>>     $(LIBXML_CFLAGS) \
>>
>>
>> But maybe my understanding on including is wrong :-)
>>
>> All the best
>> Peter
>>
>> On 28.08.2017 19:41, Patricia Shanahan wrote:
>>> I need to include main/sc/inc/document.hxx in
>>> main/sfx2/source/view/frmload.cxx. It is proving surprisingly
>>> difficult - there seems to be some copying of header files???
>>>
>>> Any suggestions? What should the include line look like? Do I need to
>>> run configure and/or bootstrap again?
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [hidden email]
>>> For additional commands, e-mail: [hidden email]
>>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: How to make a new include work

Peter Kovacs-4
Did you manage to solve this?
What did you do in the end?

Thanks the Information! :-D

Am Montag, den 28.08.2017, 12:18 -0700 schrieb Patricia Shanahan:

> Looks interesting. An include I needed from sfx2 worked just fine,
> so
> I'll make sc look the same way in that file.
>
> On 8/28/2017 12:12 PM, Peter Kovacs wrote:
> > sry. The message got probable stuck due to ID mess on my side.
> >
> >
> > On 28.08.2017 20:49, Peter Kovacs wrote:
> > > Not sure, if it needed.
> > >
> > > But have you added the path to Library_sfx.mk?
> > >
> > > For 4.1.3 it looks like this:
> > >
> > > $(eval $(call gb_Library_set_componentfile,sfx,sfx2/util/sfx))
> > >
> > > $(eval $(call gb_Library_set_include,sfx,\
> > >     -I$(SRCDIR)/sfx2/inc \
> > >     -I$(SRCDIR)/sfx2/inc/sfx2 \
> > >     -I$(SRCDIR)/sfx2/source/inc \
> > >     -I$(SRCDIR)/sfx2/inc/pch \
> > >     -I$(WORKDIR)/SdiTarget/sfx2/sdi \
> > >     -I$(WORKDIR)/inc/ \
> > >     $$(INCLUDE) \
> > >     -I$(OUTDIR)/inc/offuh \
> > >     -I$(OUTDIR)/inc \
> > >     $(LIBXML_CFLAGS) \
> > >
> > >
> > > But maybe my understanding on including is wrong :-)
> > >
> > > All the best
> > > Peter
> > >
> > > On 28.08.2017 19:41, Patricia Shanahan wrote:
> > > > I need to include main/sc/inc/document.hxx in
> > > > main/sfx2/source/view/frmload.cxx. It is proving surprisingly
> > > > difficult - there seems to be some copying of header files???
> > > >
> > > > Any suggestions? What should the include line look like? Do I
> > > > need to
> > > > run configure and/or bootstrap again?
> > > >
> > > > -------------------------------------------------------------
> > > > --------
> > > > To unsubscribe, e-mail: [hidden email]
> > > > For additional commands, e-mail: [hidden email]
> > > >
> >
> >
> > -----------------------------------------------------------------
> > ----
> > To unsubscribe, e-mail: [hidden email]
> > For additional commands, e-mail: [hidden email]
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: How to make a new include work

Patricia Shanahan
After some experiments, including manually copying a header file, I
decided that approach was getting me into a mess. In effect the build
system was warning me that I was breaking module boundaries.

I found a cleaner solution.

On 9/5/2017 6:55 AM, Peter Kovacs wrote:

> Did you manage to solve this?
> What did you do in the end?
>
> Thanks the Information! :-D
>
> Am Montag, den 28.08.2017, 12:18 -0700 schrieb Patricia Shanahan:
>> Looks interesting. An include I needed from sfx2 worked just fine,
>> so
>> I'll make sc look the same way in that file.
>>
>> On 8/28/2017 12:12 PM, Peter Kovacs wrote:
>>> sry. The message got probable stuck due to ID mess on my side.
>>>
>>>
>>> On 28.08.2017 20:49, Peter Kovacs wrote:
>>>> Not sure, if it needed.
>>>>
>>>> But have you added the path to Library_sfx.mk?
>>>>
>>>> For 4.1.3 it looks like this:
>>>>
>>>> $(eval $(call gb_Library_set_componentfile,sfx,sfx2/util/sfx))
>>>>
>>>> $(eval $(call gb_Library_set_include,sfx,\
>>>>      -I$(SRCDIR)/sfx2/inc \
>>>>      -I$(SRCDIR)/sfx2/inc/sfx2 \
>>>>      -I$(SRCDIR)/sfx2/source/inc \
>>>>      -I$(SRCDIR)/sfx2/inc/pch \
>>>>      -I$(WORKDIR)/SdiTarget/sfx2/sdi \
>>>>      -I$(WORKDIR)/inc/ \
>>>>      $$(INCLUDE) \
>>>>      -I$(OUTDIR)/inc/offuh \
>>>>      -I$(OUTDIR)/inc \
>>>>      $(LIBXML_CFLAGS) \
>>>>
>>>>
>>>> But maybe my understanding on including is wrong :-)
>>>>
>>>> All the best
>>>> Peter
>>>>
>>>> On 28.08.2017 19:41, Patricia Shanahan wrote:
>>>>> I need to include main/sc/inc/document.hxx in
>>>>> main/sfx2/source/view/frmload.cxx. It is proving surprisingly
>>>>> difficult - there seems to be some copying of header files???
>>>>>
>>>>> Any suggestions? What should the include line look like? Do I
>>>>> need to
>>>>> run configure and/or bootstrap again?
>>>>>
>>>>> -------------------------------------------------------------
>>>>> --------
>>>>> To unsubscribe, e-mail: [hidden email]
>>>>> For additional commands, e-mail: [hidden email]
>>>>>
>>>
>>>
>>> -----------------------------------------------------------------
>>> ----
>>> To unsubscribe, e-mail: [hidden email]
>>> For additional commands, e-mail: [hidden email]
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]