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

Issue while building on macOS #6

Open
shafy opened this issue Feb 23, 2020 · 5 comments
Open

Issue while building on macOS #6

shafy opened this issue Feb 23, 2020 · 5 comments

Comments

@shafy
Copy link

shafy commented Feb 23, 2020

When trying to build the cpp_bindings for mac, I get the following error:

In file included from src/VisualServer.cpp:1:
include/VisualServer.hpp:352:227: error: expected body of lambda expression
  ...points, const PoolColorArray colors, const PoolVector2Array uvs = PoolVector2Array(), const PoolIntArray bones = [], const PoolRealArray weight...
                                                                                                                        ^
include/VisualServer.hpp:352:261: error: expected body of lambda expression
  ...colors, const PoolVector2Array uvs = PoolVector2Array(), const PoolIntArray bones = [], const PoolRealArray weights = [], const RID texture = R...

I'm using Godot 3.2.rc1 on macOS 10.14

@shafy shafy changed the title Issue while building for Mac Issue while building on macOS Feb 24, 2020
@BastiaanOlij
Copy link
Owner

Hi Shafy,

I never tried to compile it on macOS, sounds like an issue we've had with other plugins as well that the switches aren't set correctly.

Try adding something like env.Append(CXXFLAGS='-std=c++11') to the osx platform directives in SConstruct

@shafy
Copy link
Author

shafy commented Mar 10, 2020

Thanks Bastiaan, but it still throws the same error. Any more ideas how I could debug this?

People seem to have similar errors with older versions of XCode, but I'm already on XCode 10 so I don't think this is it...

@BastiaanOlij
Copy link
Owner

I've had a quick look if I could build the project on my mac during lunch break at work, I'm getting stuck on compiling libpng.. Made me realise how long ago I last worked on this because it contains a really old version of godot_cpp

That said, having a look at another project of mine that does compile, this is I think what it should look like in this project:
https://github.com/BastiaanOlij/gdprocmesh/blob/master/SConstruct#L77

Notice that the switch used here is c++17 not 11. That might make the difference.

@shafy
Copy link
Author

shafy commented Apr 28, 2020

Thanks for checking Bastiaan (sorry took me some time to get back to you). I still get the same error =(

@MarcWeber
Copy link

Maybe Rust VNC libraries are simple to be used today.

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

3 participants