This is a doc bug. Where exactly is the broken documentation?


https://fdio-vpp.readthedocs.io/en/latest/gettingstarted/developers/buildsystem/cmakeandninja.html?highlight=g2
 is up to date. See below.



g2 has at least one worthwhile new feature in master/latest - automated anomaly 
detection - and the master/latest version will cheerfully work with event-logs 
from an 18.10 vpp image. So, I'd be tempted to pull master/latest and build it.



HTH... Dave



________________________________



Here’s how we build the g2 event data visualization tool:



option(VPP_BUILD_G2 "Build g2 tool." OFF)

if(VPP_BUILD_G2)

  find_package(GTK2 COMPONENTS gtk)

  if(GTK2_FOUND)

    include_directories(${GTK2_INCLUDE_DIRS})

    add_vpp_executable(g2

      SOURCES

      clib.c

      cpel.c

      events.c

      main.c

      menu1.c

      pointsel.c

      props.c

      g2version.c

      view1.c



      LINK_LIBRARIES vppinfra Threads::Threads m ${GTK2_LIBRARIES}

      NO_INSTALL

    )

  endif()

endif()

The g2 component is optional, and is not built by default. There are a couple 
of ways to tell cmake to include it in build.ninja [or in Makefile.]



When invoking cmake manually [rarely done and not very easy], specify 
-DVPP_BUILD_G2=ON:



$ cmake ... -DVPP_BUILD_G2=ON



Take a good look at …/build-data/packages/vpp.mk to see where and how the 
top-level Makefile and …/build-root/Makefile set all of the cmake arguments. 
One strategy to enable an optional component is fairly obvious. Add 
-DVPP_BUILD_G2=ON to vpp_cmake_args.



That would work, of course, but it’s not a particularly elegant solution.



The easy way to set VPP_BUILD_G2 - or frankly any cmake parameter - is to 
install the “cmake-curses-gui” package and use it.



Do a straightforward vpp build using the top level Makefile, “make build” or 
“make build-release”

Adjourn to …/build-root/build-vpp-native/vpp or 
…/build-root/build-vpp_debug-native/vpp

Invoke “ccmake .” to reconfigure the project as desired. In this case, set 
VPP_BUILD_G2 to ON.







-----Original Message-----
From: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> On Behalf Of Raj
Sent: Thursday, March 14, 2019 8:49 AM
To: vpp-dev <vpp-dev@lists.fd.io>
Subject: [vpp-dev] recipe for target 'g2-find-source' failed



Hello all,



According to docs I can compile g2 using make g2-install. But in 18.10 sources 
I get this



[raj@vpp-dev-01 build-root (stable-1810)]$ make g2-install @@@@ Arch for 
platform 'native' is native @@@@ @@@@ Finding source for g2 @@@@ @@@@ Package 
g2 not found with path /home/raj/vpp/build-root/.. @@@@

Makefile:773: recipe for target 'g2-find-source' failed

make: *** [g2-find-source] Error 1





Thanks and Regards,



Raj
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#12542): https://lists.fd.io/g/vpp-dev/message/12542
Mute This Topic: https://lists.fd.io/mt/30427633/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to