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

cpp files for mac compile on linux as well #3

Open
underdoeg opened this issue Sep 18, 2012 · 2 comments
Open

cpp files for mac compile on linux as well #3

underdoeg opened this issue Sep 18, 2012 · 2 comments

Comments

@underdoeg
Copy link

Hey, I have a partially working linux version of your addon. Dropdown selector doesn't work yet.

https://github.com/underdoeg/ofxNativeGui

Problem is that the way the makefile works on linux, it automatically tries to compile the mac related cpp files as well. Maybe you could rename them to .mm? This won't fix the windows specific files though...

@ofZach
Copy link
Owner

ofZach commented Sep 18, 2012

would one simple option be to throw huge ifdef around all the apple code?

 #ifdef __APPLE__

 #endif

we do that, for example in ofxOsc, since there's windows and posix related code -- we basically have whole files you only compile if you are windows and vice versa.

@underdoeg
Copy link
Author

Yes, of course that works as well. Not a great solution but ok...

Unrelated, but let's look at this issue as a general linux issue :) You say

Some other things I do are make the int sliders float compatible, etc.

Did you also change something with the combo box? Because using it freezes the gui window and I am not sure why...

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

2 participants