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

Windows / OF 0.12+ broken... #17

Open
moebiussurfing opened this issue Dec 28, 2023 · 28 comments
Open

Windows / OF 0.12+ broken... #17

moebiussurfing opened this issue Dec 28, 2023 · 28 comments

Comments

@moebiussurfing
Copy link
Collaborator

moebiussurfing commented Dec 28, 2023

Hey,
just notifying that it seems broken ...
probably will require updated libs/ofxMUI... etc (?)

image

image

EDIT: repo was not updating here, just was stuck 3 years old

@roymacdonald
Copy link
Owner

which C++ version are you using?

@roymacdonald
Copy link
Owner

@moebiussurfing there I made some updates. Can you please check if it works? I dont have a win computer at hand

@moebiussurfing
Copy link
Collaborator Author

i am in 0.12, GH master branch, so I think is C++17 by default.

image

@moebiussurfing
Copy link
Collaborator Author

BTW on the two above screenshots on the first post, the repo was not updated, so forget the previous screenshots.

@roymacdonald
Copy link
Owner

@moebiussurfing can I close this issue then?

@moebiussurfing
Copy link
Collaborator Author

i am in 0.12, GH master branch, so I think is C++17 by default.

image

still not working after pull

@roymacdonald
Copy link
Owner

Is it the same error?

@moebiussurfing
Copy link
Collaborator Author

moebiussurfing commented Jan 2, 2024

I'm not sure if it's the same error before doing the pull. But I think it's similar...

the last screenshot shows the errors I get after the update.

PS
Anyway, don't worry, I'm just testing the repository out of curiosity from time to time on Windows. EDITED

@roymacdonald
Copy link
Owner

Sure. I changed those 'not' that were generating the problem. I'll see how to run it on windows and debug.
Take care

@alptugan
Copy link
Contributor

Hey @roymacdonald,

Thanks for the addon. I was looking for an alternative to ofxTimeline on Windows OS.
I can compile the project using oF v0.11 stable + Visual Studio 2019.
It fails using oF v0.12 stable + Visual Studio 2022 (default toolset is 143).

The toolset for the addon seems to be 142. I have changed the toolset from 143 to 142, but to no success.

@roymacdonald
Copy link
Owner

Hi @alptugan ,
I haven't been using windows for a while and I dont have it installed, thus cant test it. But the toolset version shouldn't bother as it is related to the VS version you use.
Can you post the errors you get with OF0.12 please
Cheers

@alptugan
Copy link
Contributor

Thanks.
It runs on Mac without issue with the latest releases, btw.

On Windows, the setup is;

  • Windows 10 Pro
  • oF v0.12 Stable
  • Visual Studio Community 2022 (I can compile examples, my old projects etc... using the current setup)
  • Downloaded ofxLineaDeTiempo into oF/addons dir.
  • Grab the example-multiWindowOneApp, recreat the project using default project generator app.
  • Open the project in VS & run Debug

The following lines are related to the addons;
2>D:\Development\of_v0.12.0_vs_release\addons\ofxLineaDeTiempo\libs\ofxLineaDeTiempo\include\ofx\LineaDeTiempo\Controller\KeyframeCollectionController.h(134,56): warning C4346: 'is_multi_dim_param<D>::value': dependent name is not a type (compiling source file src\main.cpp) 2>D:\Development\of_v0.12.0_vs_release\addons\ofxLineaDeTiempo\libs\ofxLineaDeTiempo\include\ofx\LineaDeTiempo\Controller\KeyframeCollectionController.h(134,56): message : prefix with 'typename' to indicate a type (compiling source file src\main.cpp) 2>D:\Development\of_v0.12.0_vs_release\addons\ofxLineaDeTiempo\libs\ofxLineaDeTiempo\include\ofx\LineaDeTiempo\Controller\KeyframeCollectionController.h(190): message : see reference to class template instantiation 'ofx::LineaDeTiempo::KeyframeCollectionController<ParamDataType>' being compiled (compiling source file src\main.cpp) 2>D:\Development\of_v0.12.0_vs_release\addons\ofxLineaDeTiempo\libs\ofxLineaDeTiempo\include\ofx\LineaDeTiempo\Controller\KeyframeCollectionController.h(134,56): warning C4346: 'is_multi_dim_param<D>::value': dependent name is not a type (compiling source file src\ofApp.cpp) 2>D:\Development\of_v0.12.0_vs_release\addons\ofxLineaDeTiempo\libs\ofxLineaDeTiempo\include\ofx\LineaDeTiempo\Controller\KeyframeCollectionController.h(134,56): message : prefix with 'typename' to indicate a type (compiling source file src\ofApp.cpp) 2>D:\Development\of_v0.12.0_vs_release\addons\ofxLineaDeTiempo\libs\ofxLineaDeTiempo\include\ofx\LineaDeTiempo\Controller\KeyframeCollectionController.h(190): message : see reference to class template instantiation 'ofx::LineaDeTiempo::KeyframeCollectionController<ParamDataType>' being compiled (compiling source file src\ofApp.cpp) 2>D:\Development\of_v0.12.0_vs_release\addons\ofxLineaDeTiempo\libs\ofxLineaDeTiempo\include\ofx\LineaDeTiempo\Controller\KeyframeCollectionController.h(134,63): error C2146: syntax error: missing '>' before identifier 'and' (compiling source file src\main.cpp) 2>D:\Development\of_v0.12.0_vs_release\addons\ofxLineaDeTiempo\libs\ofxLineaDeTiempo\include\ofx\LineaDeTiempo\Controller\KeyframeCollectionController.h(134): error C2062: type 'unknown-type' unexpected (compiling source file src\main.cpp) 2>D:\Development\of_v0.12.0_vs_release\addons\ofxLineaDeTiempo\libs\ofxLineaDeTiempo\include\ofx\LineaDeTiempo\Controller\KeyframeCollectionController.h(134,63): error C2146: syntax error: missing '>' before identifier 'and' (compiling source file src\ofApp.cpp) 2>D:\Development\of_v0.12.0_vs_release\addons\ofxLineaDeTiempo\libs\ofxLineaDeTiempo\include\ofx\LineaDeTiempo\Controller\KeyframeCollectionController.h(135,1): error C2334: unexpected token(s) preceding '{'; skipping apparent function body (compiling source file src\main.cpp) 2>D:\Development\of_v0.12.0_vs_release\addons\ofxLineaDeTiempo\libs\ofxLineaDeTiempo\include\ofx\LineaDeTiempo\Controller\KeyframeCollectionController.h(134): error C2062: type 'unknown-type' unexpected (compiling source file src\ofApp.cpp) 2>D:\Development\of_v0.12.0_vs_release\addons\ofxLineaDeTiempo\libs\ofxLineaDeTiempo\include\ofx\LineaDeTiempo\Controller\KeyframeCollectionController.h(146,56): warning C4346: 'is_multi_dim_param<D>::value': dependent name is not a type (compiling source file src\main.cpp) 2>D:\Development\of_v0.12.0_vs_release\addons\ofxLineaDeTiempo\libs\ofxLineaDeTiempo\include\ofx\LineaDeTiempo\Controller\KeyframeCollectionController.h(146,56): message : prefix with 'typename' to indicate a type (compiling source file src\main.cpp) 2>D:\Development\of_v0.12.0_vs_release\addons\ofxLineaDeTiempo\libs\ofxLineaDeTiempo\include\ofx\LineaDeTiempo\Controller\KeyframeCollectionController.h(135,1): error C2334: unexpected token(s) preceding '{'; skipping apparent function body (compiling source file src\ofApp.cpp) 2>D:\Development\of_v0.12.0_vs_release\addons\ofxLineaDeTiempo\libs\ofxLineaDeTiempo\include\ofx\LineaDeTiempo\Controller\KeyframeCollectionController.h(146,62): error C2146: syntax error: missing '>' before identifier 'and' (compiling source file src\main.cpp) 2>D:\Development\of_v0.12.0_vs_release\addons\ofxLineaDeTiempo\libs\ofxLineaDeTiempo\include\ofx\LineaDeTiempo\Controller\KeyframeCollectionController.h(146,56): warning C4346: 'is_multi_dim_param<D>::value': dependent name is not a type (compiling source file src\ofApp.cpp) 2>D:\Development\of_v0.12.0_vs_release\addons\ofxLineaDeTiempo\libs\ofxLineaDeTiempo\include\ofx\LineaDeTiempo\Controller\KeyframeCollectionController.h(146,56): message : prefix with 'typename' to indicate a type (compiling source file src\ofApp.cpp) 2>D:\Development\of_v0.12.0_vs_release\addons\ofxLineaDeTiempo\libs\ofxLineaDeTiempo\include\ofx\LineaDeTiempo\Controller\KeyframeCollectionController.h(146): error C2062: type 'unknown-type' unexpected (compiling source file src\main.cpp) 2>D:\Development\of_v0.12.0_vs_release\addons\ofxLineaDeTiempo\libs\ofxLineaDeTiempo\include\ofx\LineaDeTiempo\Controller\KeyframeCollectionController.h(146,62): error C2146: syntax error: missing '>' before identifier 'and' (compiling source file src\ofApp.cpp) 2>D:\Development\of_v0.12.0_vs_release\addons\ofxLineaDeTiempo\libs\ofxLineaDeTiempo\include\ofx\LineaDeTiempo\Controller\KeyframeCollectionController.h(146): error C2062: type 'unknown-type' unexpected (compiling source file src\ofApp.cpp) 2>D:\Development\of_v0.12.0_vs_release\addons\ofxLineaDeTiempo\libs\ofxLineaDeTiempo\include\ofx\LineaDeTiempo\Controller\KeyframeCollectionController.h(147,1): error C2334: unexpected token(s) preceding '{'; skipping apparent function body (compiling source file src\main.cpp) 2>D:\Development\of_v0.12.0_vs_release\addons\ofxLineaDeTiempo\libs\ofxLineaDeTiempo\include\ofx\LineaDeTiempo\Controller\KeyframeCollectionController.h(147,1): error C2334: unexpected token(s) preceding '{'; skipping apparent function body (compiling source file src\ofApp.cpp) 2>D:\Development\of_v0.12.0_vs_release\addons\ofxLineaDeTiempo\libs\ofxLineaDeTiempo\include\ofx\LineaDeTiempo\Controller\KeyframeRegionController.h(64,28): error C2065: 'not': undeclared identifier (compiling source file src\ofApp.cpp) 2>D:\Development\of_v0.12.0_vs_release\addons\ofxLineaDeTiempo\libs\ofxLineaDeTiempo\include\ofx\LineaDeTiempo\Controller\KeyframeRegionController.h(130): message : see reference to class template instantiation 'ofx::LineaDeTiempo::KeyframeRegionController_<RegionDataType>' being compiled (compiling source file src\ofApp.cpp) 2>D:\Development\of_v0.12.0_vs_release\addons\ofxLineaDeTiempo\libs\ofxLineaDeTiempo\include\ofx\LineaDeTiempo\Controller\KeyframeRegionController.h(64,49): error C2059: syntax error: 'std::is_void<_Rx>::value' (compiling source file src\ofApp.cpp) 2>D:\Development\of_v0.12.0_vs_release\addons\ofxLineaDeTiempo\libs\ofxLineaDeTiempo\include\ofx\LineaDeTiempo\Controller\KeyframeRegionController.h(64,28): error C2065: 'not': undeclared identifier (compiling source file src\main.cpp) 2>D:\Development\of_v0.12.0_vs_release\addons\ofxLineaDeTiempo\libs\ofxLineaDeTiempo\include\ofx\LineaDeTiempo\Controller\KeyframeRegionController.h(130): message : see reference to class template instantiation 'ofx::LineaDeTiempo::KeyframeRegionController_<RegionDataType>' being compiled (compiling source file src\main.cpp) 2>D:\Development\of_v0.12.0_vs_release\addons\ofxLineaDeTiempo\libs\ofxLineaDeTiempo\include\ofx\LineaDeTiempo\Controller\KeyframeRegionController.h(64,1): error C2947: expecting '>' to terminate template-argument-list, found '>' (compiling source file src\ofApp.cpp) 2>D:\Development\of_v0.12.0_vs_release\addons\ofxLineaDeTiempo\libs\ofxLineaDeTiempo\include\ofx\LineaDeTiempo\Controller\KeyframeRegionController.h(64,49): error C2059: syntax error: 'std::is_void<_Rx>::value' (compiling source file src\main.cpp) 2>D:\Development\of_v0.12.0_vs_release\addons\ofxLineaDeTiempo\libs\ofxLineaDeTiempo\include\ofx\LineaDeTiempo\Controller\KeyframeRegionController.h(64): error C2062: type 'unknown-type' unexpected (compiling source file src\ofApp.cpp) 2>D:\Development\of_v0.12.0_vs_release\addons\ofxLineaDeTiempo\libs\ofxLineaDeTiempo\include\ofx\LineaDeTiempo\Controller\KeyframeRegionController.h(64,1): error C2059: syntax error: ')' (compiling source file src\ofApp.cpp) 2>D:\Development\of_v0.12.0_vs_release\addons\ofxLineaDeTiempo\libs\ofxLineaDeTiempo\include\ofx\LineaDeTiempo\Controller\KeyframeRegionController.h(64,1): error C2947: expecting '>' to terminate template-argument-list, found '>' (compiling source file src\main.cpp) 2>D:\Development\of_v0.12.0_vs_release\addons\ofxLineaDeTiempo\libs\ofxLineaDeTiempo\include\ofx\LineaDeTiempo\Controller\KeyframeRegionController.h(64): error C2062: type 'unknown-type' unexpected (compiling source file src\main.cpp) 2>D:\Development\of_v0.12.0_vs_release\addons\ofxLineaDeTiempo\libs\ofxLineaDeTiempo\include\ofx\LineaDeTiempo\Controller\KeyframeRegionController.h(64,1): error C2059: syntax error: ')' (compiling source file src\main.cpp) 2>D:\Development\of_v0.12.0_vs_release\addons\ofxLineaDeTiempo\libs\ofxLineaDeTiempo\include\ofx\LineaDeTiempo\Controller\KeyframeRegionController.h(66,1): error C2334: unexpected token(s) preceding '{'; skipping apparent function body (compiling source file src\ofApp.cpp) 2>D:\Development\of_v0.12.0_vs_release\addons\ofxLineaDeTiempo\libs\ofxLineaDeTiempo\include\ofx\LineaDeTiempo\Controller\KeyframeRegionController.h(66,1): error C2334: unexpected token(s) preceding '{'; skipping apparent function body (compiling source file src\main.cpp) 2>D:\Development\of_v0.12.0_vs_release\addons\ofxLineaDeTiempo\libs\ofxLineaDeTiempo\include\ofx\LineaDeTiempo\Controller\KeyframeRegionController.h(82,27): error C2065: 'not': undeclared identifier (compiling source file src\ofApp.cpp) 2>D:\Development\of_v0.12.0_vs_release\addons\ofxLineaDeTiempo\libs\ofxLineaDeTiempo\include\ofx\LineaDeTiempo\Controller\KeyframeRegionController.h(82,27): error C2065: 'not': undeclared identifier (compiling source file src\main.cpp) 2>D:\Development\of_v0.12.0_vs_release\addons\ofxLineaDeTiempo\libs\ofxLineaDeTiempo\include\ofx\LineaDeTiempo\Controller\KeyframeRegionController.h(82,48): error C2059: syntax error: 'std::is_void<T>::value' (compiling source file src\ofApp.cpp) 2>D:\Development\of_v0.12.0_vs_release\addons\ofxLineaDeTiempo\libs\ofxLineaDeTiempo\include\ofx\LineaDeTiempo\Controller\KeyframeRegionController.h(82,48): error C2059: syntax error: 'std::is_void<T>::value' (compiling source file src\main.cpp) 2>D:\Development\of_v0.12.0_vs_release\addons\ofxLineaDeTiempo\libs\ofxLineaDeTiempo\include\ofx\LineaDeTiempo\Controller\KeyframeRegionController.h(82): error C2062: type 'unknown-type' unexpected (compiling source file src\ofApp.cpp) 2>D:\Development\of_v0.12.0_vs_release\addons\ofxLineaDeTiempo\libs\ofxLineaDeTiempo\include\ofx\LineaDeTiempo\Controller\KeyframeRegionController.h(84,1): error C2334: unexpected token(s) preceding '{'; skipping apparent function body (compiling source file src\ofApp.cpp) 2>D:\Development\of_v0.12.0_vs_release\addons\ofxLineaDeTiempo\libs\ofxLineaDeTiempo\include\ofx\LineaDeTiempo\Controller\KeyframeRegionController.h(82): error C2062: type 'unknown-type' unexpected (compiling source file src\main.cpp) 2>D:\Development\of_v0.12.0_vs_release\addons\ofxLineaDeTiempo\libs\ofxLineaDeTiempo\include\ofx\LineaDeTiempo\Controller\KeyframeRegionController.h(84,1): error C2334: unexpected token(s) preceding '{'; skipping apparent function body (compiling source file src\main.cpp) 2>Done building project "example-multiWindowOneApp.vcxproj" -- FAILED.

@roymacdonald
Copy link
Owner

Hi. Thanks for that. I just pushed a fix. but I dont know if it compiles on Windows as I dont have access to a machine with it. Please check if it works and let me know.
All the best

@alptugan
Copy link
Contributor

It failed again. I edited the logical operators in the Interpolator.h and CollectionHelper.h by replacing all occurrences of;
or to ||
and to &&
and not to && !

Now it compiles and run without issue in the above setup.

Thanks @roymacdonald !

@roymacdonald
Copy link
Owner

@alptugan awesome. can you make a pull request please?

@alptugan
Copy link
Contributor

Sure. After I check other examples in the addon, I send PR.

@roymacdonald
Copy link
Owner

@moebiussurfing can you check if it now builds with the changes that @alptugan did?

@moebiussurfing
Copy link
Collaborator Author

Hello, here in windows11/VS 2022/OF master branch I am getting this error:
Running the example-basic I am getting these errors:

Severity	Code	Description	Project	File	Line	Suppression State	Details
Error (active)	E1776	function "ofx::PointerEventArgs::operator=(const ofx::PointerEventArgs &)" (declared implicitly) cannot be referenced -- it is a deleted function	example-basic	D:\Documents\of_12\openFrameworks\addons\ofxLineaDeTiempo\libs\ofxPointer\include\ofx\PointerEvents.h	972		
Error	C2280	'ofx::PointerEventArgs &ofx::PointerEventArgs::operator =(const ofx::PointerEventArgs &)': attempting to reference a deleted function	example-basic	D:\Documents\of_12\openFrameworks\addons\ofxLineaDeTiempo\libs\ofxPointer\include\ofx\PointerEvents.h	972		
Error	C2280	'ofx::PointerEventArgs &ofx::PointerEventArgs::operator =(const ofx::PointerEventArgs &)': attempting to reference a deleted function	example-basic	D:\Documents\of_12\openFrameworks\addons\ofxLineaDeTiempo\libs\ofxPointer\include\ofx\PointerEvents.h	972		

@moebiussurfing
Copy link
Collaborator Author

image

@moebiussurfing
Copy link
Collaborator Author

moebiussurfing commented May 29, 2024

I also pulled OF up to date too and have run the D:\Documents\of_12\openFrameworks\scripts\vs\download_latest_libs_x64.sh

Current weeks I am having problems with PG:
getting new errors when generating some projects:
image
image

I get updated the PG binary time to time from current last nighlty build to avoid building by myself.

I go check with OF stable release too...

@moebiussurfing
Copy link
Collaborator Author

moebiussurfing commented May 29, 2024

example-basic and example-multiWindowOneApp compiled fine in windows11/VS 2022/OF release 0.12.

can't create the PG for example-allParameterTypes and others:
image

not sure this PG errors could be related to some folder rights/permisions or new path chars long in the system (?)...

@alptugan
Copy link
Contributor

@moebiussurfing, @roymacdonald; I had the same issue on Windows using PG. The problem was the folder structure of the built-in examples. If you create bin/data folders into the relevant example folder, the problem should be resolved.

I think, it is related to PG's Windows version. I had no issue while importing example projects on Mac OS via PG.

@roymacdonald
Copy link
Owner

Ohh that is such a dumb bug in PG. I feel that PG is going backwards...I will add the bin/data folders then.

@roymacdonald
Copy link
Owner

thanks @alptugan @moebiussurfing

@liquidzym
Copy link

sorry,i'm also getting this error with 0.12 and vs2022

libs\ofxMUI\src\Button.cpp(275,24): error C2027: use of undefined type “ofPath”
and
libs\ofxMUI\src\Button.cpp(142,18): error C2027: use of undefined type “ofVboMesh”

@roymacdonald
Copy link
Owner

hi @liquidzym that is odd as it seems it is not finding those OF classes. can you try putting the following at the top of that file where you get the error

#include "ofPath.h" 
#include "ofVboMesh.h" 

let me know if that works

@alptugan
Copy link
Contributor

alptugan commented Jun 6, 2024

In addition to @roymacdonald, if it is a fresh installation of openFrameworks, it would be better to check if the built-in examples work or not. If you cannot compile the built-in examples as well, there might be a problem with the oF setup.

@liquidzym
Copy link

@roymacdonald ok that's working after i include those ,thank you so much

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