Re: gptp example project


Jukka Rissanen
 

Hi Kay Li,

the documentation seems to be wrong. The prj_base.conf was renamed to
prj.conf in commit 4e5300ba7f30a21862f68c2e4e2b651f1189d84a
So just do

cmake -GNinja -DBOARD=sam_e70_xplained ..

and the compilation should succeed.

I will send a patch that fixes the doc.

Cheers,
Jukka

On Thu, 2019-05-23 at 09:37 +0800, KAY LI NG wrote:
Hi,

I would like to ask if this gptp example project is possible to run
on windows?

I run this code.

# On Windows
cd %ZEPHYR_BASE%\samples\net\gptp
mkdir build & cd build
cmake -GNinja -DBOARD=sam_e70_xplained -DCONF_FILE=prj_base.conf ..

but this error occur.
Zephyr version: 1.14.0
-- Selected BOARD sam_e70_xplained
-- Found west: C:/Python37/Scripts/west.exe (found suitable version
"0.5.6", minimum required is "0.5.4")
-- Loading
C:/Users/kayling/zephyrproject/zephyr/boards/arm/sam_e70_xplained/sam
_e70_xplained.dts as base
-- Overlaying
C:/Users/kayling/zephyrproject/zephyr//dts/common/common.dts
CMake Error at
C:/Users/kayling/zephyrproject/zephyr/cmake/kconfig.cmake:132
(message):
File not found:

C:/Users/kayling/zephyrproject/zephyr/samples/net/gptp/prj_base.conf
Call Stack (most recent call first):

C:/Users/kayling/zephyrproject/zephyr/cmake/app/boilerplate.cmake:397
(include)
CMakeLists.txt:3 (include)


-- Configuring incomplete, errors occurred!
See also
"C:/Users/kayling/zephyrproject/zephyr/samples/net/gptp/build/CMakeFi
les/CMakeOutput.log".
See also
"C:/Users/kayling/zephyrproject/zephyr/samples/net/gptp/build/CMakeFi
les/CMakeError.log".
Whats the problem with this? i didnt modify anything from the example
code.

Regards,
Kay Li

Join users@lists.zephyrproject.org to automatically receive all group messages.