openFrameworks icon indicating copy to clipboard operation
openFrameworks copied to clipboard

0.12.0 Project Generator errors on VS with ofxLaser

Open sebleedelisle opened this issue 2 years ago • 13 comments

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

sebleedelisle avatar Sep 11 '23 11:09 sebleedelisle

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?

ofTheo avatar Sep 11 '23 15:09 ofTheo

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 :

  • open Project Generator
  • Add ofxLaser to addons (in empty project) Windows (Visual Studio)
  • Hit Update
  • Error happens.

At least for me!

sebleedelisle avatar Sep 11 '23 16:09 sebleedelisle

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

sebleedelisle avatar Sep 14 '23 16:09 sebleedelisle

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

ofTheo avatar Sep 14 '23 17:09 ofTheo

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

sebleedelisle avatar Sep 14 '23 18:09 sebleedelisle

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 avatar Sep 15 '23 02:09 ofTheo

@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 ).

ofTheo avatar Sep 30 '23 15:09 ofTheo

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

danzeeeman avatar Oct 02 '23 13:10 danzeeeman

@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.

ofTheo avatar Oct 02 '23 17:10 ofTheo

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: @.***>

danzeeeman avatar Oct 03 '23 00:10 danzeeeman

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.

dimitre avatar Oct 13 '23 06:10 dimitre

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: @.***>

sebleedelisle avatar Oct 13 '23 17:10 sebleedelisle

@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.

dimitre avatar Oct 16 '23 20:10 dimitre