Skip to content
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

OS X/iOS Support for universal libraries #680

Closed
obiltschnig opened this issue Jan 19, 2015 · 7 comments
Closed

OS X/iOS Support for universal libraries #680

obiltschnig opened this issue Jan 19, 2015 · 7 comments

Comments

@obiltschnig
Copy link
Member

Received via email:

I am in the process of trying to get Poco to build universally for Mac OS X via the Homebrew package manager. I submitted a patch to Homebrew that does this, but they suggested I reach out to you instead. At this point, I am interested in writing a patch for Poco to accomplish this universal build. Would it be acceptable for me to submit a patch to the Poco project? Is this the correct email address to send the patch to?

Here is the relevant thread:

Homebrew/legacy-homebrew#35839 (comment)

@obiltschnig
Copy link
Member Author

The GNU Make based build system used by POCO currently does not support universal builds.
It would be possible to add this, but it would require some changes to the build system. Specifically, the way compiler flags are passed to the compiler needs to be changed. Generally it’s easy to create an universal library by passing multiple -arch flags to the compiler (e.g., -arch i386 -arch x86_64). However, this will make the compiler complain with an error when it’s invoked to determine the dependencies. It may be possible to add this to the alternative CMake-based build system, though.

@bakercp
Copy link
Member

bakercp commented Jan 19, 2015

+1 For a way to do this. We over in openFrameworks land would also love to see this, as currently we go through a process of manually building FAT libs via lipo as well. For reference:

https://github.com/openframeworks/openFrameworks/blob/master/scripts/apothecary/formulas/poco/poco.sh#L101-L130

That said, it's not a huge priority ...

@bakercp
Copy link
Member

bakercp commented Jan 19, 2015

I guess a better argument would be based on our insane iOS fat lib build:

https://github.com/openframeworks/openFrameworks/blob/master/scripts/apothecary/formulas/poco/poco.sh#L158-L322

:)

@danoli3
Copy link
Contributor

danoli3 commented Jan 21, 2015

@mikedld
Copy link
Member

mikedld commented Sep 19, 2015

CMake build should work as is, with -DCMAKE_OSX_ARCHITECTURES="i386;x86_64".

@bachp
Copy link
Member

bachp commented Sep 19, 2015

I think with CMake this should be possible. If not already working, patches are welcome.

@Bjoe
Copy link
Contributor

Bjoe commented Feb 22, 2019

For the sake of completeness in poco-1.9.1 and develop branch, the cmake build can build universal libraries.
But unfortunately, it is not installing a framework. Is this mean by this issue here?
It is maybe a good idea to create an new issue "Add Framework support for OS X/iOS in cmake build system"?

@Bjoe Bjoe self-assigned this Feb 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants