8000 Build error in new Expo project · Issue #17 · corasan/image-compressor · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Build error in new Expo project #17

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

Open
gtokman opened this issue Mar 25, 2025 · 5 comments
Open

Build error in new Expo project #17

gtokman opened this issue Mar 25, 2025 · 5 comments
< 8000 div data-view-component="true" class="Layout Layout--flowRow-until-md Layout--sidebarPosition-end Layout--sidebarPosition-flowRow-end">

Comments

@gtokman
Copy link
gtokman commented Mar 25, 2025

I followed the installation instructions into a new expo project, but got the following error:

npx create-expo-app@latest
npx expo install @corasan/image-compressor react-native-nitro-modules
npx expo prebuild
npm run ios
pp
› Compiling @corasan/image-compressor Pods/ImageCompressor » ImageUtils.cpp

❌  (node_modules/@corasan/image-compressor/cpp/ImageUtils.hpp:7:10)

   5 | #include "ImageAsset.hpp"
   6 | #include <filesystem>
>  7 | #include <opencv2/opencv.hpp>
     |          ^ 'opencv2/opencv.hpp' file not found
   8 | #include <string>
   9 | #include "FileUtils.hpp"
  10 | 

› Compiling @corasan/image-compressor Pods/ImageCompressor » 
@corasan
Copy link
Owner
corasan commented Mar 25, 2025

Strange, I'll look into it today 🤔

@gtokman
Copy link
Author
gtokman commented Mar 25, 2025

I'm on Xcode 16.2 & RN 76. It could be related to min deployment target, I can try 17+.

@corasan
Copy link
Owner
corasan commented Mar 26, 2025

@gtokman I released v0.3.3. Turns out the plugin export was messed up and the opencv.xcframework was not being A00E symlinked and properly included/built in projects.

Runnpx expo prebuild --clean just to make sure. Let me know if it works!

@gtokman
Copy link
Author
gtokman commented Mar 27, 2025
❌  (node_modules/@corasan/image-compressor/ios/opencv2.xcframework/ios-arm64/opencv2.framework/Versions/A/Headers/core/types.hpp:56:10)

  54 | #include <limits>
  55 | 
> 56 | #include "opencv2/core/cvdef.h"
     |          ^ 'opencv2/core/cvdef.h' file not found
  57 | #include "opencv2/core/cvstd.hpp"
  58 | #include "opencv2/core/matx.hpp"
  59 | 

I'm getting this error now.

@corasan
Copy link
Owner
corasan commented Apr 14, 2025

@gtokman sorry for the delay, I completely missed this. Are you still having issues? I will try to reproduce the issue on a new project.

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

2 participants
0