Anylsite / anyl-wallet

🏦 Anyl Embedded Wallet for Internet of Things
Apache License 2.0
30 stars 16 forks source link

Cannot find source file: app/main.c #177

Open lorepieri8 opened 5 years ago

lorepieri8 commented 5 years ago

Describe the bug Cannot find source file: app/main.c

To Reproduce the do the anyledger zephyr build and cmake -GNinja -DBOARD=nrf52840_pca10056 -DBUILD_XCOMPILE=1 ../

Desktop (please complete the following information):

Additional context

root@3e5b46fa1a8b:/zephyrproject/zephyr/samples/anyledger/anyledger-wallet/build# cmake -GNinja -DBOARD=nrf52840_pca10056 -DBUILD_XCOMPILE=1 ../
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.6.7", minimum required is "3") 
-- The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is GNU 7.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
Zephyr version: 1.14.99
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.6.7", minimum required is "3.4") 
-- Selected BOARD nrf52840_pca10056
-- Loading /zephyrproject/zephyr/boards/arm/nrf52840_pca10056/nrf52840_pca10056.dts as base
-- Overlaying /zephyrproject/zephyr/dts/common/common.dts
nrf52840_pca10056.dts.pre.tmp:312.23-315.5: Warning (simple_bus_reg): /soc/virtualcom: missing or empty reg/ranges property
Parsing Kconfig tree in /zephyrproject/zephyr/Kconfig
Loading /zephyrproject/zephyr/boards/arm/nrf52840_pca10056/nrf52840_pca10056_defconfig as base
Merging /zephyrproject/zephyr/samples/anyledger/anyledger-wallet/prj.conf
Configuration written to '/zephyrproject/zephyr/samples/anyledger/anyledger-wallet/build/zephyr/.config'

warning: TEST_RANDOM_GENERATOR (defined at subsys/random/Kconfig:8) was assigned the value 'y' but
got the value 'n'. You can check symbol information (including dependencies) in the 'menuconfig'
interface (see the Application Development Primer section of the manual), or in the Kconfig
reference at
http://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_TEST_RANDOM_GENERATOR.html (which is
updated regularly from the master branch). See the 'Setting configuration values' section of the
Board Porting Guide as well.
-- Cache files will be written to: /root/.cache/zephyr
-- The ASM compiler identification is GNU
-- Found assembler: /root/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc
-- Performing Test toolchain_is_ok
-- Performing Test toolchain_is_ok - Success
CMake Warning (dev) at cmake/zephyr.cmake:20 (set):
  Cannot set "CMAKE_C_FLAGS": current scope has no parent.
Call Stack (most recent call first):
  CMakeLists.txt:18 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring done
CMake Error at /zephyrproject/zephyr/cmake/extensions.cmake:378 (add_library):
  Cannot find source file:

    app/main.c

  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .m .M .mm .h .hh .h++ .hm
  .hpp .hxx .in .txx
Call Stack (most recent call first):
  /zephyrproject/zephyr/cmake/app/boilerplate.cmake:465 (zephyr_library_named)
  cmake/zephyr.cmake:6 (include)
  CMakeLists.txt:18 (include)

CMake Error at /zephyrproject/zephyr/cmake/extensions.cmake:378 (add_library):
  No SOURCES given to target: app
Call Stack (most recent call first):
  /zephyrproject/zephyr/cmake/app/boilerplate.cmake:465 (zephyr_library_named)
  cmake/zephyr.cmake:6 (include)
  CMakeLists.txt:18 (include)

-- Build files have been written to: /zephyrproject/zephyr/samples/anyledger/anyledger-wallet/build