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

Crossplatform builds #23

Open
danhett opened this issue Mar 14, 2015 · 12 comments
Open

Crossplatform builds #23

danhett opened this issue Mar 14, 2015 · 12 comments

Comments

@danhett
Copy link

danhett commented Mar 14, 2015

The single numero uno question i get asked: "is there a Windows/Linux build?" :)

@darrenmothersele
Copy link
Member

Yes, getting that a lot. Someone at the London Creative Coding meetup was attempting a windows build. I'll check in with them at the next meetup.

@danhett
Copy link
Author

danhett commented Mar 15, 2015

The likelihood of me helping on a Linux build will increase exponentially when this Macbook finally dies, too!

@darrenmothersele
Copy link
Member

And I'm definitely getting a new ras pi soon!

@darrenmothersele
Copy link
Member

I've created a new branch, where I'm working on getting a version compiling using CMake...

https://github.com/cyrilcode/cyril/tree/cmake

VERY early days, and has some OSX stuff hard coded as I'm basing it on this:
https://github.com/judepereira/44a/blob/master/CMakeLists.txt

I'll update here as I make progress.

@darrenmothersele
Copy link
Member

As of this commit I have got CMake build working on OSX.
Except it's not responding to keyboard input. There was an issue compiling against glfw3 as the keyboard callback function signature had changed.

@darrenmothersele
Copy link
Member

The CMake is specific to OSX. It's taken a bit of work to get things working due to way oF links in dependencies. Almost ready to start adapting so it works on Linux too.
Finding lots of things to remove/improve/fix during this process!

@darrenmothersele
Copy link
Member

yay! working CMake build on OSX as of this commit

@darrenmothersele
Copy link
Member

How to write platform checks with CMake
Describes how to implement platform or configure checks with CMake.

@Bk8
Copy link

Bk8 commented Aug 19, 2016

Why are you using CMake instead of the ofProject generator to keep it simple?

@darrenmothersele
Copy link
Member

@Bk8 because ofProject generator creates separate projects for different architectures, right?
I would prefer we had a single cross-platform build. And CMake allows for that.
And CMake works well with the CLion IDE that I use, which is also cross-platform.

Still, I'll keep this issue open for discussion as happy to hear other ideas...

@Bk8
Copy link

Bk8 commented Aug 19, 2016

First your programming language is a awesome!!
But building chains are always a pain in the ass, I'm finding it difficult to build, first I tried the Xcode branch and then the CMake, none of them built. I was trying to add Syphon support but I failed. I'm sure that I'm missing some configurations, but it would be better in my opinion to make it easier to build. The project will get more attention from the oF community. If you keep the oF Project Generator "standard", I mean all the naming conventions like naming ofApp to the main app; you could just drag and drop the source files under my apps in the library folder and then generate the project on the platform you want to develop using the oF Project Generator. It may also need to have the flex and bison generated files, but it would be easier to hack.

@prikhi
Copy link

prikhi commented Aug 3, 2017

I got this building on archlinux with the following PKGBUILD & CMakeLists.txt:

https://gist.github.com/prikhi/e22fd332e1c2b5d648e4c56792323e3f

Never used cmake so I might be doing some things wrong...

But after launching, the editor is blank & unresponsive to my input(can still switch workspaces though). Directly editing the .cy files doesn't update the display.

Not sure where to go from here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants