flyskywhy / react-native-gcanvas

react native canvas based on gpu opengl glsl GCanvas -- A lightweight cross-platform graphics rendering engine. (超轻量的跨平台图形引擎)
Apache License 2.0
210 stars 21 forks source link

dependency for audio fft , g canvas for ios is not working properly the errors i listed in description #75

Closed ahmedIcots closed 6 months ago

ahmedIcots commented 6 months ago

F/Users/ventura/Desktop/reactNative/folder/passages/ios/Pods/GCanvas' duplicate symbol '_HandleInputBuffer' in: /Users/ventura/Library/Developer/Xcode/DerivedData/passages-fvlgnkgwuqzcpqdcjgewfvbpcvob/Build/Products/Debug-iphonesimulator/RNAudioPcmStream/libRNAudioPcmStream.a(RNLiveAudioStream.o) 2)warning: no rule to process file '/Users/ventura/Desktop/reactNative/folder/passages/node_modules/@flyskywhy/react-native-gcanvas/core/src/gcanvas/shaders/shadow.glsl' of type 'text' for architecture 'x86_64' (in target 'GCanvas' from project 'Pods') warning: no rule to process file

/Users/ventura/Library/Developer/Xcode/DerivedData/passages-fvlgnkgwuqzcpqdcjgewfvbpcvob/Build/Products/Debug-iphonesimulator/RNAudioRecord/libRNAudioRecord.a(RNAudioRecord.o) ld: 1 duplicate symbol for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

The following build commands failed: Ld /Users/ventura/Library/Developer/Xcode/DerivedData/passages-fvlgnkgwuqzcpqdcjgewfvbpcvob/Build/Products/Debug-iphonesimulator/passages.app/passages normal (in target 'passages' from project 'passages') (1 failure) ]

flyskywhy commented 6 months ago

Maybe you can try real iPhone but not simulator, because iPhone is arm not x86_64, and gcanvas is not support x86.

ahmedIcots commented 6 months ago

did you test it? on real ios device?

On Thu, Mar 28, 2024, 5:20 AM Li Zheng @.***> wrote:

Maybe you can try real iPhone but not simulator, because iPhone is arm not x86_64, and gcanvas is not support x86.

— Reply to this email directly, view it on GitHub https://github.com/flyskywhy/react-native-gcanvas/issues/75#issuecomment-2024189078, or unsubscribe https://github.com/notifications/unsubscribe-auth/BDO7HELYHBEQ2TZOTNCIOJTY2NO3TAVCNFSM6AAAAABFLYH3GGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRUGE4DSMBXHA . You are receiving this because you authored the thread.Message ID: @.***>

ahmedIcots commented 6 months ago

are you sure @flyskywhy ? it works in ios real device and error is generically due to the ios simulator? or there is any way we can run this in ios simulator instead?

flyskywhy commented 6 months ago

Today I test again https://github.com/flyskywhy/GCanvasRNExamples which include https://github.com/flyskywhy/react-native-live-audio-fft on real iPhone7, and runs well.

https://github.com/flyskywhy/react-native-gcanvas/assets/1439846/7cd44887-6078-4dc1-a2a0-1cbe05388d48

I'm not interest in ios simulator, so I don't know wether it's OK.

ahmedIcots commented 6 months ago

right then. thanks for letting me know

On Fri, Mar 29, 2024, 10:29 AM Li Zheng @.***> wrote:

Today I test again https://github.com/flyskywhy/GCanvasRNExamples which include https://github.com/flyskywhy/react-native-live-audio-fft on real iPhone7, and runs well.

https://github.com/flyskywhy/react-native-gcanvas/assets/1439846/7cd44887-6078-4dc1-a2a0-1cbe05388d48

I'm not interest in ios simulator, so I don't know wether it's OK.

— Reply to this email directly, view it on GitHub https://github.com/flyskywhy/react-native-gcanvas/issues/75#issuecomment-2026680105, or unsubscribe https://github.com/notifications/unsubscribe-auth/BDO7HEI7U3RGOTQEKUTR65LY2T345AVCNFSM6AAAAABFLYH3GGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRWGY4DAMJQGU . You are receiving this because you authored the thread.Message ID: @.***>