openframeworks / openFrameworks

openFrameworks is a community-developed cross platform toolkit for creative coding in C++.
http://openframeworks.cc
Other
9.97k stars 2.55k forks source link

0.12.0 Project Generator errors on VS with ofxLaser #7652

Open sebleedelisle opened 1 year ago

sebleedelisle commented 1 year ago

Hey everyone, hope you're doing well!

I'm having some issues with the latest nightly getting Project Generator to work with any app that includes ofxLaser. I'm getting the following errors :

Command failed: "C:\Users\Seb\Dropbox\of_v20230607_vs_release\projectGenerator\resources\app\app\projectGenerator" -o"C:\Users\Seb\Dropbox\of_v20230607_vs_release" -a"ofxLaser" -p"vs" -t"" "C:\Users\Seb\Dropbox\of_v20230607_vs_release\apps\myApps\myKindSketch" [ error ] Error parsing ofxOpenCv addon_config.mk line 134: android/arm64-v8a: sectionName unknown not recognized [ error ] Error parsing ofxPoco addon_config.mk line 154: tvos: sectionName unknown not recognized

I was thinking it may be something to do with ofxLaser requiring ofxPoco and ofxOpenCv as dependencies but when I remove them it still doesn't work. But I do get a different error!

Command failed: "C:\Users\Seb\Dropbox\of_v20230607_vs_release\projectGenerator\resources\app\app\projectGenerator" -o"C:\Users\Seb\Dropbox\of_v20230607_vs_release" -a"ofxLaser" -p"vs" -t"" "C:\Users\Seb\Dropbox\of_v20230607_vs_release\apps\myApps\myKindSketch"

Is there a change in the add-on_config.mk format? I'm very inexperienced in Windows so let me know if it's something I'm doing wrong!

Seb

ofTheo commented 1 year ago

Hmm that is weird. Can you try it with the regular OF release instead of the nightly? https://github.com/openframeworks/openFrameworks/releases/tag/0.12.0

Also do the OpenCv examples in examples/computer_vision work for you?

sebleedelisle commented 1 year ago

Ah I should have said, I can generate projects with ofxOpenCv and ofxPoco separately just fine, and the ofxOpenCV example file works. It only seems to be an issue with ofxLaser.

Same issue with the regular 0.12.0 release.

Steps to reproduce :

At least for me!

sebleedelisle commented 1 year ago

I've now tested this with the latest nightly and also the 0.12.0 rc1, getting the same errors every time.

ofTheo commented 1 year ago

I think @dimitre is working on this in: https://github.com/openframeworks/projectGenerator/pull/417

For now as a temp fix you might be able to copy over the PG from 0.11.2 to 0.12.0 release

Sorry for the issue @sebleedelisle

sebleedelisle commented 1 year ago

Hey no worries at all @ofTheo thanks so much for the response! I can get it working with the 11.2 PG :)

ofTheo commented 1 year ago

Hmm. The extra quote is the template argument. Maybe just skipping that arg if no template is selected would solve it.

Still doesn’t make sense why it’s an issue just with that addon though. 🤔

ofTheo commented 1 year ago

@sebleedelisle I updated the PG in the 0.12.0 release zip: https://github.com/openframeworks/openFrameworks/releases/tag/0.12.0

Curious if this one works for you ( i had a similar issue and it fixed it for me ).

danzeeeman commented 1 year ago

not sure was trying to see if something didn't like the format of the addons config file but turns out the issues might have been coming from the config.make? The PG doesn't seem to like it when the config.make is already in the project folder when generating a VS project. To repo maybe try making and OSX project then try to generate a VS2019 project after it is made. I'll try with a blank project

ofTheo commented 1 year ago

@danzeeeman does the PG in the 0.12.0 zip above work for you? ( I updated it a few days ago ).

I just tried with a project and made an OSX one then changed it to VS 2019 without issue.

danzeeeman commented 1 year ago

I’ll try again.

Dan

Sent from Gmail Mobile #autocorrect

On Mon, Oct 2, 2023 at 1:09 PM Theodore Watson @.***> wrote:

@danzeeeman https://github.com/danzeeeman does the PG in the 0.12.0 zip above work for you? ( I updated it a few days ago ).

I just tried with a project and made an OSX one then changed it to VS 2019 without issue.

— Reply to this email directly, view it on GitHub https://github.com/openframeworks/openFrameworks/issues/7652#issuecomment-1743425128, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFPVTHCKQQFOBBPR4G4GBTX5LYM3AVCNFSM6AAAAAA4TFGFZWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBTGQZDKMJSHA . You are receiving this because you were mentioned.Message ID: @.***>

dimitre commented 1 year ago

Hello @sebleedelisle I've finally had the time and machine to address some recent issues on projectGenerator please test it again with a recent nightly build if you have the time.

sebleedelisle commented 1 year ago

Thank you so much, I'll check it out over the weekend 😀

On Fri, 13 Oct 2023 at 07:06, Dimitre @.***> wrote:

Hello @sebleedelisle https://github.com/sebleedelisle I've finally had the time and machine to address some recent issues on projectGenerator please test it again with a recent nightly build if you have the time.

— Reply to this email directly, view it on GitHub https://github.com/openframeworks/openFrameworks/issues/7652#issuecomment-1760942903, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA3CEWZD7ZBYLGW4Q7XEPLX7DK5XANCNFSM6AAAAAA4TFGFZU . You are receiving this because you were mentioned.Message ID: @.***>

dimitre commented 1 year ago

@sebleedelisle I've just generated on windows using latest projectGenerator and it seems to work OK. compiling the program there are some issues related to the recent change, probably just prepend std:: to cerr, min, etc.