Skip to content
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

glog/logging.h' file not found #23944

Closed
PareshPatel721 opened this issue Mar 15, 2019 · 15 comments
Closed

glog/logging.h' file not found #23944

PareshPatel721 opened this issue Mar 15, 2019 · 15 comments
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot. Type: Question Issues that are actually questions and not bug reports.

Comments

@PareshPatel721
Copy link

PareshPatel721 commented Mar 15, 2019

Hello Guys i just started to learn about React Native.
Mac OS Mojave (10.14)
Xcode 10.1

  • node --version -> v11.10.0
  • npm --version -> 6.7.0
  • react-native --version
    'react-native-cli: 2.0.1
    react-native: 0.59.1
  • yarn --version -> 1.13.0

I enter below command in my terminal

  • react-native init reactTutorialApp
    then cd reactTutorialApp
  • then react-native run-ios

I also tried it with run from xcode

i also did

  • ./configure for glog-0.3.5 file
    I am getting error like below.

  • /configure:-1: in `/Users/pareshpatel/Desktop/ReactNativeDemos/reactTutorialApp/node_modules/react-native/third-party/glog-0.3.5':

  • /configure:-1: C compiler cannot create executables

  • Command PhaseScriptExecution emitted errors but did not return a nonzero exit code to indicate failure

  • /Users/pareshpatel/Desktop/ReactNativeDemos/reactTutorialApp/node_modules/react-native/third-party/folly-2018.10.22.00/folly/detail/RangeCommon.h:22:10: 'glog/logging.h' file not found

Waiting for help.

@PareshPatel721 PareshPatel721 added the Type: Question Issues that are actually questions and not bug reports. label Mar 15, 2019
@react-native-bot
Copy link
Collaborator

We are automatically closing this issue because it does not appear to follow any of the provided issue templates.

👉 Click here if you want to report a reproducible bug or regression in React Native.

@react-native-bot react-native-bot added Ran Commands One of our bots successfully processed a command. Resolution: No Template labels Mar 15, 2019
@lucianokrebss
Copy link

Same issue here. Any news?

@aklein13
Copy link

In my case it was cause by manually interrupting the first react-native run-ios run and then running it again.

I resolved this with rm -rf ./node_modules && yarn && react-native run-ios.

@ajijoyo
Copy link

ajijoyo commented Jun 12, 2019

Same issue here. Any news?

did you resolve?
I have the same issue

even I trying this not working too

In my case it was cause by manually interrupting the first react-native run-ios run and then running it again.

I resolved this with rm -rf ./node_modules && yarn && react-native run-ios.

React Native Environment Info

React Native Environment Info:
    System:
      OS: macOS 10.14.5
      CPU: (4) x64 Intel(R) Core(TM) i5-5257U CPU @ 2.70GHz
      Memory: 70.13 MB / 8.00 GB
      Shell: 5.3 - /bin/zsh
    Binaries:
      Node: 10.9.0 - /usr/local/Cellar/node/10.9.0/bin/node
      npm: 6.7.0 - ~/.npm-packages/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    SDKs:
      iOS SDK:
        Platforms: iOS 12.2, macOS 10.14, tvOS 12.2, watchOS 5.2
      Android SDK:
        API Levels: 23, 25, 26, 27, 28
        Build Tools: 23.0.1, 25.0.2, 26.0.1, 26.0.2, 26.0.3, 27.0.3, 28.0.0, 28.0.3
        System Images: android-23 | Google APIs Intel x86 Atom, android-27 | Google APIs Intel x86 Atom
    IDEs:
      Android Studio: 3.1 AI-173.4907809
      Xcode: 10.2/10E125 - /usr/bin/xcodebuild
    npmPackages:
      react: ^16.8.3 => 16.8.6 
      react-native: ^0.59.9 => 0.59.9 
    npmGlobalPackages:
      react-native-cli: 2.0.1
      react-native-git-upgrade: 0.2.7

@VitorBrangioni
Copy link

Same problem, any solution?

@ajijoyo
Copy link

ajijoyo commented Jun 13, 2019

in my case ./configure && make && make install on glog directory
and make sure your xcode name without space you can check using xcode-select -p
I face issue beacuse i have xcode name with space and it make install failure

@lucianokrebss
Copy link

hey @VitorBrangioni @ajijoyo, I've added this to my package.json scripts section:

"ios:start": "cd node_modules/react-native/scripts && sudo ./ios-install-third-party.sh && cd third-party/glog-0.3.5/ && sudo ./configure && sudo ../../../scripts/ios-configure-glog.sh && cd ../../../../../ && sudo react-native run-ios --simulator \"iPhone 6s\""

You may have to adapt to your glog version (mine is 0.3.5)

@talebkhah
Copy link

in my case ./configure && make && make install on glog directory
and make sure your xcode name without space you can check using xcode-select -p
I face issue beacuse i have xcode name with space and it make install failure

That's Right.

the solution that worked for me was:
make sure your xcode name without space you can check using xcode-select -p

nothing more just remove space.

thanks @ajijoyo

@cinder92
Copy link

having this issue with a brand new project using Xcode 10.3, any help?

@thisisablock
Copy link

#22703 (comment)

@loveaurellu
Copy link

This happened to me while trying out a new xcode version. I named the new xcode application "Xcode 11" and put it beside the old one. This caused the problem for me.

Naming the new one (Xcode 11) "Xcode" and removing the old one from the Application folder resolved the issue.

@ymc-thzi
Copy link

Whut? Thank @loveaurellu. Did the same just renamed new XCode to "XCode GM 11" and got this error. Renaming back again to "XCode" and build succeeded :-D

@bitcrumb
Copy link

Hmm... hitting the same error. I am indeed also trying to build using Xcode that is named differently.

@cotispear
Copy link

Yep @loveaurellu that's exactly what I did.

@lincolnbf
Copy link

@loveaurellu thanks, it solved! o/

@facebook facebook locked as resolved and limited conversation to collaborators Mar 15, 2020
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Mar 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot. Type: Question Issues that are actually questions and not bug reports.
Projects
None yet
Development

No branches or pull requests