Skip to content

Commit fc84b38

Browse files
authored
Merge pull request #89 from n-kawauchi/update_tkcalibgui
TkCalibGUIがLinux環境で自動起動する他RTCを見つけられ、Windows環境ではexeファイルを生成できるように修正
2 parents 9321290 + 7ec9baf commit fc84b38

5 files changed

Lines changed: 10 additions & 12 deletions

File tree

opencv/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
cmake_minimum_required(VERSION 3.5.1)
22

3-
project(ImageProcessing VERSION 2.0.1)
3+
project(ImageProcessing VERSION 2.0.2)
44
set(TOP_PROJECT_NAME ${PROJECT_NAME})
55
string(TOLOWER ${TOP_PROJECT_NAME} TOP_PROJECT_NAME_LOWER)
66
set(ImageProcessing_VERSION_MAJOR "2")
77
set(ImageProcessing_VERSION_MINOR "0")
8-
set(ImageProcessing_VERSION_REVISION "1")
8+
set(ImageProcessing_VERSION_REVISION "2")
99
SUBDIRS(components)
1010
set(SolutionDir ${PROJECT_SOURCE_DIR})
1111

opencv/components/TkCalibGUI/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.5.1)
33
project(TkCalibGUI)
44
string(TOLOWER ${PROJECT_NAME} PROJECT_NAME_LOWER)
55
include("${PROJECT_SOURCE_DIR}/cmake/utils.cmake")
6-
set(PROJECT_VERSION 2.0.1 CACHE STRING "TkCalibGUI version")
6+
set(PROJECT_VERSION 2.0.2 CACHE STRING "TkCalibGUI version")
77
set(UPGRADE_GUID "")
88
DISSECT_VERSION()
99
set(PROJECT_SHORT_VER ${PROJECT_VERSION_MAJOR}${PROJECT_VERSION_MINOR}${PROJECT_VERSION_REVISION})

opencv/components/TkCalibGUI/tkcalibgui.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -358,10 +358,8 @@ def get_search_path(self):
358358
path = env + "examples\\C++\\opencv-rtcs\\"
359359
ret_path.append(path.replace('\\', '/'))
360360
else:
361-
import subprocess
362-
from subprocess import PIPE
363-
ret = subprocess.run("rtm-config --rtm-datadir", shell=True, stdout=PIPE, text=True)
364-
rtmdir = ret.stdout.strip()
361+
env = os.environ.get("RTM_IDL_DIR2")
362+
rtmdir = env + "/.."
365363
tmp = (
366364
rtmdir + "/components/c++/opencv-rtcs/OpenCVCamera/",
367365
rtmdir + "/components/c++/opencv-rtcs/ImageCalibration/",

opencv/ip-build.bat

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ if not DEFINED PYTHON_DIR set PYTHON_DIR=c:\python311
4343
if not DEFINED PYTHONPATH set PYTHONPATH=%PYTHON_DIR%\Lib
4444
if not DEFINED OpenCV_DIR set OpenCV_DIR=C:\localCV
4545
if not DEFINED RTM_ROOT set RTM_ROOT=C:\localRTM\2.0.2
46-
if not DEFINED OMNI_ROOT set OMNI_ROOT=%RTM_ROOT%\omniORB\4.3.1_vc16
46+
if not DEFINED OMNI_ROOT set OMNI_ROOT=%RTM_ROOT%\omniORB\4.3.2_vc16
4747

4848
set ARCH=x86_64
4949
set OpenRTM_DIR=%RTM_ROOT%\cmake
@@ -74,7 +74,8 @@ cmake --build . --verbose --config Release
7474
@rem ------------------------------------------------------------
7575
:MAKE_ZIP
7676
cd %OPENCV_RTC_ROOT%/bin
77-
python freeze.py
77+
if exist dist rmdir /s/q dist
78+
%PYTHON_DIR%\Scripts\pyinstaller --onefile --onedir TkCalibGUIComp.py
7879
if not "%ERRORLEVEL%" == "0" (
7980
goto END
8081
)

opencv/ip_make_package.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,8 @@ cd ${NEW_DIR}
2525
cp ${WORK_ROOT}/bin/*.conf .
2626
cp ${WORK_ROOT}/bin/*.dll .
2727
cp ${WORK_ROOT}/bin/*.exe .
28-
cp ${WORK_ROOT}/bin/dist/TkCalibGUIComp.exe .
29-
cp ${WORK_ROOT}/bin/dist/python*.dll .
30-
cp -r ${WORK_ROOT}/bin/dist/lib .
28+
cp ${WORK_ROOT}/bin/dist/TkCalibGUIComp/TkCalibGUIComp.exe .
29+
cp -r ${WORK_ROOT}/bin/dist/TkCalibGUIComp/_internal .
3130
cd ${WORK_ROOT}
3231
chmod -R 755 ${NEW_DIR}
3332

0 commit comments

Comments
 (0)