-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix compilation issues with cxx examples #245
base: master
Are you sure you want to change the base?
fix compilation issues with cxx examples #245
Conversation
@dbworth I have doubts about this for the reasons outlined in points 1-5, however I think you have hit on a possible rather neat solution to the continuing issue of compiler/VTK versions if you look at my comments after points 1-5.
Based on what you have done here, it would be better in ForUsers to add a table listing the vtk version and what may fail so users can modify existing code maybe something like this: VTK VersionsIn some versions of VTK you may need additional VTK headers:
If your vtk Version is less than 8, you may need to replace:
Compiler VersionsIf your compiler is not C++11 compliant:
This would be a very valuable contribution and you have already picked up most of these changes! @Bill what do you think? |
I was under the impression that VTKExamples was a separate project to VTK (and the examples included with that codebase). This might suggest a different set of guidelines about coding style or dependencies. Before discussing this in more detail, I would ask the maintainers of the VTKExamples for their opinion on this: Should the VTK Examples be a "compilable" repo of code?
|
I agree with Andrew that we jave decided not to support old versions of VT>
c++11 has been available for a long time.
The examples are not code fragments. They should compile on modern c++
platforms.
They can be compiled in three ways:
1) The entire c++ collection pulled from github.
2) Individual examples following the instructions at the end of each
examples.
3) As a VTK remote module.
Bill
…On Sat, Nov 17, 2018 at 2:52 PM David B ***@***.***> wrote:
I was under the impression that VTKExamples was a separate project to VTK
(and the examples included with that codebase). This might suggest a
different set of guidelines about coding style or dependencies.
Before discussing this in more detail, I would ask the maintainers of the
VTKExamples for their opinion on this:
Should the VTK Examples be a "compilable" repo of code?
- No, it's a collection of code fragments but we prefer Github pages
to MediaWiki, Pastebin, etc.
- No, they should compile but maybe don't. YMMV.
- Yes, the entire repo of examples should compile as the documentation
says.
- Yes, but only a small minimal sub-set of examples (the others have
to be enabled by the user).
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#245 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAUFDDMC2mrrBmO3dcV-WajZ9Do20wmvks5uwJNFgaJpZM4Ynn0F>
.
--
Unpaid intern in BillsParadise at noware dot com
|
BTW, eventually, the VTK/Examples distributed with VTK will go away.
VTKExamples is a separate project but we are lookig at the best way to make
it accessible from VTK (remote module, submodule).
On Sat, Nov 17, 2018 at 3:04 PM Bill Lorensen <[email protected]>
wrote:
… I agree with Andrew that we jave decided not to support old versions of
VT> c++11 has been available for a long time.
The examples are not code fragments. They should compile on modern c++
platforms.
They can be compiled in three ways:
1) The entire c++ collection pulled from github.
2) Individual examples following the instructions at the end of each
examples.
3) As a VTK remote module.
Bill
On Sat, Nov 17, 2018 at 2:52 PM David B ***@***.***> wrote:
> I was under the impression that VTKExamples was a separate project to VTK
> (and the examples included with that codebase). This might suggest a
> different set of guidelines about coding style or dependencies.
>
> Before discussing this in more detail, I would ask the maintainers of the
> VTKExamples for their opinion on this:
>
> Should the VTK Examples be a "compilable" repo of code?
>
> - No, it's a collection of code fragments but we prefer Github pages
> to MediaWiki, Pastebin, etc.
> - No, they should compile but maybe don't. YMMV.
> - Yes, the entire repo of examples should compile as the
> documentation says.
> - Yes, but only a small minimal sub-set of examples (the others have
> to be enabled by the user).
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <#245 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AAUFDDMC2mrrBmO3dcV-WajZ9Do20wmvks5uwJNFgaJpZM4Ynn0F>
> .
>
--
Unpaid intern in BillsParadise at noware dot com
--
Unpaid intern in BillsParadise at noware dot com
|
Thanks for the feedback. Do you want any of the suggestions in this PR or should I squash it? |
If there are missing includes we should fix them.
…On Sat, Nov 17, 2018, 3:49 PM David B ***@***.*** wrote:
Thanks for the feedback.
Do you want any of the suggestions in this PR or should I squash it?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#245 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAUFDCTNiTvTukPn-icVutK5kDtOXaBzks5uwKCjgaJpZM4Ynn0F>
.
|
Please see details in the issue ticket