sam-cpp-macos icon indicating copy to clipboard operation
sam-cpp-macos copied to clipboard

I met this error when run with xcode.

Open bemoregt opened this issue 1 year ago • 5 comments

Hi, @ryouchinsa

I met this error when run with xcode.

"/Users/user1/Music/of_v0.11.2_osx_release/libs/openFrameworks/3d/ofMesh.inl:1101:20 Use of undeclared identifier 'MAX'

What;s wrong to me ??

Thanks at any rate.

best, @bemoregt.

bemoregt avatar Dec 23 '23 15:12 bemoregt

Thanks for writing the issue. I show you my settings on the Xcode. If you need more information to build on the Xcode, please let me know.

  • General -> Frameworks, Libraries, and Embedded Content

スクリーンショット 2023-12-24 15 07 26

  • Build Settings

Header Search Paths /Users/ryo/Downloads/onnxruntime-osx-universal2-1.16.3/include

Library Search Paths /Users/ryo/Downloads/onnxruntime-osx-universal2-1.16.3/lib

スクリーンショット 2023-12-24 15 15 56

  • Build Phases -> Embed Libraries

スクリーンショット 2023-12-24 15 16 33

ryouchinsa avatar Dec 24 '23 07:12 ryouchinsa

ScrShot 6

I met this error screenshot when run with XCode + Openframeworks.

sam.cpp * sam.h cannot inserted in src diretory. What's wrong to me ?

Thanks.

Best, @bemoregt,

bemoregt avatar Dec 24 '23 11:12 bemoregt

@bemoregt Please show screenshots with errors ..

by the way you have two src folders inside of your project

Did you select 'Copy items if needed' when you added the files?

tempdeltavalue avatar Dec 26 '23 19:12 tempdeltavalue

Here it is ..

ScrShot 8 ScrShot 7 ScrShot 6 ScrShot 5

The cmake project compiles well in my osx terminal, But errors occur when I try to compile it in Openframeworks + Xcode.

Even if I load the onnxruntim library, there is no errors, but if I paste sam.h and sam.cpp into OF’s src folder and compile, errors occur.

Why is that so? I wonder.

What's wrong to me ?

  • H/w: m1 macmini
  • O/S: mac osx sonoma
  • Xcode 15.1
  • Openframeworks v0.11.2_osx

Thanks in advance.

Best, @bemoregt,

bemoregt avatar Dec 26 '23 20:12 bemoregt

I want to support your use-case, but I have not used the openFrameworks yet. How about asking on the issues page? https://github.com/openframeworks/openFrameworks/issues

ryouchinsa avatar Jan 23 '24 14:01 ryouchinsa