Skip to content

Commit 9da55df

Browse files
committed
now using differentiated share-jevois and share-jevoispro
1 parent 5be4d08 commit 9da55df

7 files changed

Lines changed: 18 additions & 25 deletions

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ jevois_setup_modules(src/Modules "")
6868
target_link_libraries(SampleModule ${JEVOIS_OPENCV_LIBS} opencv_imgproc opencv_core)
6969

7070
## Install any shared resources (cascade classifiers, neural network weights, etc) in the share/ sub-directory:
71-
install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/share"
72-
DESTINATION "${JEVOIS_MODULES_ROOT}" COMPONENT bin)
71+
install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/share-${JEVOIS}/"
72+
DESTINATION "${JEVOIS_MODULES_ROOT}/share" COMPONENT bin)
7373

7474
########################################################################################################################
7575
# Debian packaging:

rebuild-host.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
#!/bin/sh
22

3-
# On ARM hosts like Raspberry Pi3, we will likely run out of memory if attempting more than 1 compilation thread:
4-
ncpu=`cat /proc/cpuinfo |grep processor|wc -l`
5-
if [ `cat /proc/cpuinfo | grep ARM | wc -l` -gt 0 ]; then ncpu=1; fi
6-
73
/bin/rm -rf hbuild \
84
&& mkdir hbuild \
95
&& cd hbuild \
106
&& cmake "$@" .. \
11-
&& make -j ${ncpu} \
7+
&& make -j \
128
&& sudo make install

rebuild-platform.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,10 @@ if [ "X$1" = "X--staging" ]; then extra="-DJEVOIS_MODULES_TO_STAGING=ON"; shift;
1212
if [ "X$1" = "X--microsd" ]; then extra="-DJEVOIS_MODULES_TO_MICROSD=ON"; shift; fi
1313
if [ "X$1" = "X--live" ]; then extra="-DJEVOIS_MODULES_TO_LIVE=ON"; shift; fi
1414

15-
# On ARM hosts like Raspberry Pi3, we will likely run out of memory if attempting more than 1 compilation thread:
16-
ncpu=`cat /proc/cpuinfo |grep processor|wc -l`
17-
if [ `cat /proc/cpuinfo | grep ARM | wc -l` -gt 0 ]; then ncpu=1; fi
18-
1915
sudo /bin/rm -rf pbuild \
2016
&& mkdir pbuild \
2117
&& cd pbuild \
2218
&& cmake "${extra} $@" -DJEVOIS_PLATFORM=ON .. \
23-
&& make -j ${ncpu} \
19+
&& make -j \
2420
&& sudo make install
2521

rebuild-pro-host.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
#!/bin/sh
22

3-
# On JeVoisPro, limit the number of compile threads to not run out of memory:
4-
ncpu=`grep -c processor /proc/cpuinfo`
5-
if [ `grep -c JeVois /proc/cpuinfo` -gt 0 ]; then ncpu=4; fi
6-
73
# Build everything:
84
sudo /bin/rm -rf phbuild \
95
&& mkdir phbuild \
106
&& cd phbuild \
117
&& cmake "$@" -DJEVOIS_HARDWARE=PRO .. \
12-
&& make -j ${ncpu} \
8+
&& make -j \
139
&& sudo make install

rebuild-pro-platform-pdeb.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
#!/bin/bash
22
# USAGE: rebuild-pro-platform-pdeb.sh [cmake opts]
33

4-
# On JeVoisPro, limit the number of compile threads to not run out of memory:
5-
ncpu=`grep -c processor /proc/cpuinfo`
6-
if [ `grep -c JeVois /proc/cpuinfo` -gt 0 ]; then ncpu=4; fi
7-
84
# Let's build it:
95
sudo /bin/rm -rf ppdbuild \
106
&& mkdir ppdbuild \
117
&& cd ppdbuild \
128
&& cmake -DJEVOIS_HARDWARE=PRO -DJEVOIS_PLATFORM=ON -DJEVOIS_MODULES_TO_STAGING=ON -DJEVOISPRO_PLATFORM_DEB=ON $@ .. \
13-
&& make -j ${ncpu} \
9+
&& make -j \
1410
&& sudo make install \
1511
&& sudo cpack
1612

rebuild-pro-platform.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/bin/bash
2+
# USAGE: rebuild-pro-platform-pdeb.sh [cmake opts]
3+
4+
# Let's build it:
5+
sudo /bin/rm -rf ppdbuild \
6+
&& mkdir ppdbuild \
7+
&& cd ppdbuild \
8+
&& cmake -DJEVOIS_HARDWARE=PRO -DJEVOIS_PLATFORM=ON -DJEVOIS_MODULES_TO_STAGING=ON $@ .. \
9+
&& make -j \
10+
&& sudo make install \
11+
&& sudo cpack
12+

share/README.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)