Giter VIP home page Giter VIP logo

Comments (14)

danomatika avatar danomatika commented on May 25, 2024 1

We currently require C++14 for the addon.

I might be missing a step of the installation?

Did you catch the manual change that is required to force this in OF on macOS?

from ofxtensorflow2.

bytosaur avatar bytosaur commented on May 25, 2024

hey @Dazzid,
so std::exchange is a feature from C++14. Looks like your compiling for some older version.
When I remember correctly we set the flag for C++17 at some point.
How are you compiling this?

from ofxtensorflow2.

Dazzid avatar Dazzid commented on May 25, 2024

OK, I changed to C++14. Also updated the CLANG_CXX_LANGUAGE_STANDARD[arch=x86_64] = c++14 before running project generator. Now I have new errors. Maybe because I'm using an M1?

/Users/david/libs/openFrameworks/events/ofEvent.h:204:40: a space is required between consecutive right angle brackets (use '> >') /Users/david/libs/openFrameworks/events/ofEvent.h:220:25: function definition does not declare parameters /Users/david/libs/openFrameworks/events/ofEvent.h:153:4: use of undeclared identifier 'self' /Users/david/libs/openFrameworks/events/ofEvent.h:161:33: use of undeclared identifier 'self' /Users/david/libs/openFrameworks/events/ofEvent.h:162:4: use of undeclared identifier 'self' /Users/david/libs/openFrameworks/events/ofEvent.h:163:4: use of undeclared identifier 'self'

from ofxtensorflow2.

danomatika avatar danomatika commented on May 25, 2024

Maybe because I'm using an M1?

No. The error is a compile-time error, not a linker error where architecture comes into play.

What version of OF are you using?

from ofxtensorflow2.

Dazzid avatar Dazzid commented on May 25, 2024

I'm using of_v0.11.2, and that's right, the error appears when I change to c++14.

from ofxtensorflow2.

danomatika avatar danomatika commented on May 25, 2024

I'm using of_v0.11.2, and that's right, the error appears when I change to c++14.

Do you do a full project clean before rebuilding after changing anything within the build system?

from ofxtensorflow2.

Dazzid avatar Dazzid commented on May 25, 2024

yes, but the error persists. Do you have this?
MACOSX_DEPLOYMENT_TARGET = 10.9

from ofxtensorflow2.

Dazzid avatar Dazzid commented on May 25, 2024

I forgot to mention that compiling with the nightly builds of_v20220712_osx, runs smoothly.

from ofxtensorflow2.

danomatika avatar danomatika commented on May 25, 2024

from ofxtensorflow2.

Dazzid avatar Dazzid commented on May 25, 2024

I also opened the question in OF forums, and of_v0.11.2 won't compile in C++14 with an easy change

from ofxtensorflow2.

danomatika avatar danomatika commented on May 25, 2024

Can you add a link to your forum post?

from ofxtensorflow2.

Dazzid avatar Dazzid commented on May 25, 2024

yes, here it is.
It seems that of_v0.11.0 should be fine
https://forum.openframeworks.cc/t/need-help-switching-to-c-14/40099

from ofxtensorflow2.

danomatika avatar danomatika commented on May 25, 2024

If the issue is that C++14 won't work but C++17 will, then use C++17. This addon requires a minimum of C++14 but 17 should be fine.

from ofxtensorflow2.

danomatika avatar danomatika commented on May 25, 2024

I'm closing this for now as I'm not seeing this issue OF 0.11.2 on macOS 12 with Xcode 14.

from ofxtensorflow2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.