Unable to deploy blinky app on raspberry

19 views
Skip to first unread message

Neha Singh

unread,
Apr 2, 2019, 7:36:23 AM4/2/19
to virtualwire
Hi All,

I am trying to deploy Blinky app on my raspberry pi however, I am getting below error.


CMake Error at CMakeLists.txt:8 (add_executable):
  Cannot find source file:

    wiring.h

  Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
  .hxx .in .txx


My CMake file is as follows

cmake_minimum_required(VERSION 2.8.11)

if (CMAKE_C_COMPILER_ID STREQUAL "GNU")
    set (CMAKE_C_FLAGS "--std=c99 -g ${CMAKE_C_FLAGS}")
endif()

set(SOURCE main.c wiring.h)
add_executable(app ${SOURCE})

if (CMAKE_SYSTEM_PROCESSOR MATCHES "^arm")
    target_link_libraries(app wiringPi)
else()
    target_link_libraries(app)
endif()


Please let me know why the program is not able to detect wiring.h file.

Reply all
Reply to author
Forward
0 new messages