Comments (14)
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.
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.
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.
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.
I'm using of_v0.11.2, and that's right, the error appears when I change to c++14.
from ofxtensorflow2.
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.
yes, but the error persists. Do you have this?
MACOSX_DEPLOYMENT_TARGET = 10.9
from ofxtensorflow2.
I forgot to mention that compiling with the nightly builds of_v20220712_osx, runs smoothly.
from ofxtensorflow2.
from ofxtensorflow2.
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.
Can you add a link to your forum post?
from ofxtensorflow2.
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.
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.
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)
- "Undefined symbols for architecture arm64: "_TF_NewSessionOptions", referenced from:" on macOS ? HOT 6
- Do you have plans to implement 3d skeleton detection via BlazePose? HOT 4
- word2vec / universal sentence encoder example? HOT 8
- arbitrary-image-stylization-v1-256 HOT 13
- trained model different format? HOT 5
- GPU training issue HOT 1
- Training with larger image size - pix2pix HOT 2
- example_video_and_image_colorization HOT 7
- Yolo v4 example HOT 12
- Chatbot example :)
- music generation example HOT 6
- Stable diffusion or other text-to-image networks? HOT 3
- Compilation issues for M1 / arm64 HOT 3
- configure_xcode.sh script breaks Xcode projects HOT 1
- git submodule update not working on macOS HOT 12
- error: Library not loaded HOT 5
- error: Signing Identity: “-” HOT 2
- error: Library not loaded: "@rpath/libtensorflow.2.dylib' HOT 4
- download_example_models.sh does not work
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ofxtensorflow2.