[swift-users] Learning OpenGL with Swift

Marco Feltmann coding at marcofeltmann.de
Wed Feb 24 15:59:21 CST 2016


On Tue, Feb 23, 2016 at 09:03:42PM -0300, Luz Violeta via swift-users wrote:
> In my case, I've solved it by making a swift build and then editing the
> recently downloaded file (Packages/CGLFW3Linux-1.0.0/module.modulemap).
> Changing out the link statement from glfw3 to glfw. 
Perfect, thank you! :)
Changed, `swift build --clean; swift build`, works.

Now I'm ready to fly.

> Like, try X and if it doesn't exist try Y and so on (grabbing
> whatever matchs first)
I have no clue how to realize that kind of logic.
There is a `link` command in the modulemap, but a `link if exists`
doesn't sound like it is implemented now. 

> Otherwise, it's gonna be rough using stuff from the swift ecosystem and
> editing modulemaps and writing instruction for users to do that.
As long as you point the Swift users to the direction where they can
tweak this behaviour this feels fine for me.

But when providing OSS this really is a no-go.
At least on Linux this whole ./configure; make; make install; stuff was
created to wrestle down these distribution-depending things.


More information about the swift-users mailing list