Skip to content
This repository has been archived by the owner on Sep 1, 2023. It is now read-only.

zlib.h in external causing build problem #106

Closed
utensil opened this issue Jun 6, 2014 · 3 comments · Fixed by #111
Closed

zlib.h in external causing build problem #106

utensil opened this issue Jun 6, 2014 · 3 comments · Fixed by #111

Comments

@utensil
Copy link
Member

utensil commented Jun 6, 2014

@olavks reported that zlib.h in external is causing build problem at #48 (comment) .

This issue is to follow the problem.

@ghost
Copy link

ghost commented Jun 7, 2014

The problem is that this approach is broken by design, as external libs that should never be included to begin with gets precedence and is included by default, even when building for Linux.
Also, breaking this to accomodate something that has 0,5% market share in HPC and breaking Linux with its 99% market share is not very sensible.

External libraries should never be included, period. If anything it should be put in contrib and/or have cmake deal with it.

This fix is only making the problem worse.

@utensil
Copy link
Member Author

utensil commented Jun 7, 2014

This issue started as #48 , when I encountered build problem on a Ubuntu which didn't have zlib development headers shipped with it and pre-installed. And in my personal development life, it's very rare to see development headers pre-installed on a system: zlib is most likely installed but not its development headers. Just as in #48 , I have to fix it manually by sudo apt-get install zlibc zlib1g zlib1g-dev.

When I started trying to address #48 , I was not aware of the way nupic handling external dependencies(including them not declaring dependencies) and soon noticed so. Though I personally dislike the way of including external libraries, I can figure out a few reasons and adapt to the convention.

My fix #97 is merely a patch to fix #48 , but not to dramatically change the convention, which require a proposing and voting process described on wiki, and I believe it would possibly break the build on Raspberry Pi or so, which I would not consider it as a 0.5% market share for AI developers.

You're welcome to propose the removal of external libraries on the mailing list, and if the motion passes, it would be great to have you work on PRs removing them without breaking things.

utensil added a commit to utensil-contrib/nupic.core that referenced this issue Jun 7, 2014
utensil added a commit to utensil-contrib/nupic.core that referenced this issue Jun 7, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant