# 海科館問題- 已解決檔案產生問題
## 重新將c call python old(copy) 資料夾, 重新整理與eye 的結構相同, 新增&覆蓋新給的包的資料, 並將資料夾取名為 ```c_call_python_example_renew_old```
## 1. 資料夾內的.h 軟連結設好後, 就不會出現錯誤如下圖
軟連結 (.h檔再不同資料夾的 /include/裡):
#### ln -sf ./rIOD_core_interface_v1.3.h ./rIOD_core_interface.h

#### 執行 bash build_libs.sh 產出.show.so & .noshow.so (from lib.cpp to build .so files)

## 2. permission denied ( switch to root / sudo):
1.
``` sudo XXXX (rmb to edit the files as part 3.)```
2.
```
sudo -i
(enter the password)
cd /home/jetson/aquarium_reference/c_call_python_example_renew_old/obj_core_Test
sudo bash make_obj_core_Test.sh simulator
```
## 3. built 測試 monado 介面用執行檔
obj_core_Test.c 建立 obj_core_Test 執行檔
執行時請注意以下部分:
[
](https://)
#### 再執行 sudo bash make_obj_core_Test.sh simulator 指令時; 執行完成cp_lib_obj_core.sh 會產出3個檔案如下:

執行sudo bash make_obj_core_Test.sh simulator 指令時, 會出現錯誤如下圖右邊, function 找不到, function 定義再.h 檔裡, 所以如下圖右邊, 需要**將.h 檔搬至與.c 檔相同的路近底下, 並下軟連結**```/home/jetson/aquarium_reference/c_call_python_example_renew_old/obj_core_Test/src```

#### 下sudo bash make_obj_core_Test.sh 指令, 在 ./c_call_python_example_renew_old/obj_core_Test/build/simulator 即可產出obj_core_Test 執行檔

## 4. 在python_venv中產生venv資料夾(python套件)
#### 複製```eye_core_test.sh```更改檔名&檔案中的執行檔名, 如下圖, 複製```config_files```到此目錄底下(不確定是否有用, 只是follow >>> test_eye_core 資料夾內的結構)- 如下右圖
#### 執行 ```bash obj_core_test.sh 4 0 1 /dev/video4 0``` 完成後如下圖的左邊
### ```(沒有鏡頭開啟)```
#### path: ```cd ./c_call_python_example_renew_old/obj_core_Test/build/simulator```

## 5. Python 開發測試, 成功執行python test.py ```有鏡頭開啟```
/home/jetson/aquarium_reference/c_call_python_example_renew_old/lib_eye_core_mediapipe_src
python test.py
