Skip to content

Unable to compile the SDK on windows/Linux #49

@sandeepReddyG

Description

@sandeepReddyG

Please fill in the following fields:

open-source from this repo:
Firebase C++ SDK version: master
Firebase plugins in use (Auth, Database, etc.): None
Additional SDKs you are using (Facebook, AdMob, etc.):None
Platform you are using the C++ SDK on (Mac, Windows, or Linux): Windows
Platform you are targeting (iOS, Android, and/or desktop): Windows Desktop

Please describe the issue here:

I have downloaded the SDK from github and trying to compile it as per the mentioned instructions using Visual studio code .But I am facing compiler missing issue below

$ cmake ..
-- Building for: NMake Makefiles
-- The C compiler identification is unknown
CMake Error at CMakeLists.txt:75 (enable_language):
  The CMAKE_C_COMPILER:

    cl

  is not a full path and was not found in the PATH.

  To use the NMake generator with Visual C++, cmake must be run from a shell
  that can use the compiler cl from the command line.  This environment is
  unable to invoke the cl compiler.  To fix this problem, run cmake from the
  Visual Studio Command Prompt (vcvarsall.bat).

  Tell CMake where to find the compiler by setting either the environment
  variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
  the compiler, or to the compiler name if it is in the PATH.


-- Configuring incomplete, errors occurred!
See also "C:/Users/shiva/Downloads/Sandeep/firebase-cpp-sdk-master/fcm_build/CMakeFiles/CMakeOutput.log".
See also "C:/Users/shiva/Downloads/Sandeep/firebase-cpp-sdk-master/fcm_build/CMakeFiles/CMakeError.log".

Actually , I want to understand that Messaging can be used with Desktop applications in Linux or not. If yes, could you please share me the steps to compile the sdk and sample app to receive Firebase Cloud Messaging in linux.
Also let me know if this is not the SDK meant for Desktops ,how can I achieve Messaging for Desktops?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions