birdofpreyru / react-native-static-server

Embedded HTTP server for React Native
https://dr.pogodin.studio/docs/react-native-static-server
Other
154 stars 22 forks source link

Error when building: pcre2.h couldn't be found on windows10 #24

Closed ZoeLeee closed 1 year ago

ZoeLeee commented 1 year ago

The error is the same as #18 ,this question was closed, but on windows the problem persists

"@dr.pogodin/react-native-static-server": "^0.7.1", "react": "18.2.0", "react-native": "0.71.4", "react-native-webview": "^11.26.1" cmake version 3.23.0-rc2

 -- Performing Test HAVE_STRUCT_TM_GMTOFF - Success
  -- found pcre2-config: no
  -- Looking for include file pcre2.h
  -- Looking for include file pcre2.h - not found
  -- Looking for pcre_match in pcre2-8
  -- Looking for pcre_match in pcre2-8 - not found
  -- Configuring incomplete, errors occurred!
  See also "E:/projects/HCApp/node_modules/@dr.pogodin/react-native-static-server/android/.cxx/Debug/5h56646f/arm64-v8a/CMakeFiles/CMakeOutput.log".
  See also "E:/projects/HCApp/node_modules/@dr.pogodin/react-native-static-server/android/.cxx/Debug/5h56646f/arm64-v8a/CMakeFiles/CMakeError.log".

  C++ build system [configure] failed while executing:
      @echo off
      "G:\\Android\\SDK\\cmake\\3.18.1\\bin\\cmake.exe" ^
        "-HE:\\projects\\HCApp\\node_modules\\@dr.pogodin\\react-native-static-server" ^
        "-DCMAKE_SYSTEM_NAME=Android" ^
        "-DCMAKE_EXPORT_COMPILE_COMMANDS=ON" ^
        "-DCMAKE_SYSTEM_VERSION=28" ^
        "-DANDROID_PLATFORM=android-28" ^
        "-DANDROID_ABI=arm64-v8a" ^
        "-DCMAKE_ANDROID_ARCH_ABI=arm64-v8a" ^
        "-DANDROID_NDK=G:\\Android\\SDK\\ndk\\23.1.7779620" ^
        "-DCMAKE_ANDROID_NDK=G:\\Android\\SDK\\ndk\\23.1.7779620" ^
        "-DCMAKE_TOOLCHAIN_FILE=G:\\Android\\SDK\\ndk\\23.1.7779620\\build\\cmake\\android.toolchain.cmake" ^
        "-DCMAKE_MAKE_PROGRAM=G:\\Android\\SDK\\cmake\\3.18.1\\bin\\ninja.exe" ^
        "-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=E:\\projects\\HCApp\\node_modules\\@dr.pogodin\\react-native-static-server\\android\\build\\intermediates\\cxx\\Debug\\5h56646f\\obj\\arm64-v8a" ^
        "-DCMAKE_RUNTIME_OUTPUT_DIRECTORY=E:\\projects\\HCApp\\node_modules\\@dr.pogodin\\react-native-static-server\\android\\build\\intermediates\\cxx\\Debug\\5h56646f\\obj\\arm64-v8a" ^
        "-DCMAKE_BUILD_TYPE=Debug" ^
        "-BE:\\projects\\HCApp\\node_modules\\@dr.pogodin\\react-native-static-server\\android\\.cxx\\Debug\\5h56646f\\arm64-v8a" ^
        -GNinja ^
        "-DWITH_ANDROID_NDK_SYSLOG_INTERCEPT=ON" ^
        "-DWITH_JAVA_NATIVE_INTERFACE=ON" ^
        "-DBUILD_STATIC=ON"
    from E:\projects\HCApp\node_modules\@dr.pogodin\react-native-static-server\android
  CMake Warning (dev) at CMakeLists.txt:46:
    Syntax Warning in cmake code at column 29

    Argument not separated from preceding token by whitespace.
  This warning is for project developers.  Use -Wno-dev to suppress it.

  CMake Warning (dev) at CMakeLists.txt:47:
    Syntax Warning in cmake code at column 30

    Argument not separated from preceding token by whitespace.
  This warning is for project developers.  Use -Wno-dev to suppress it.

  CMake Warning (dev) at CMakeLists.txt:48:
    Syntax Warning in cmake code at column 30

    Argument not separated from preceding token by whitespace.
  This warning is for project developers.  Use -Wno-dev to suppress it.
birdofpreyru commented 1 year ago

Same as #20 as well, closing this one.