{"id":1957,"date":"2015-12-30T05:04:41","date_gmt":"2015-12-29T20:04:41","guid":{"rendered":"https:\/\/hack.gpl.jp\/?p=1957"},"modified":"2015-12-30T05:04:41","modified_gmt":"2015-12-29T20:04:41","slug":"post-1957","status":"publish","type":"post","link":"https:\/\/hack.gpl.jp\/2015\/12\/30\/post-1957.html","title":{"rendered":"sigrok Pulsview \u3092 osx \u3067\u30d3\u30eb\u30c9\u306b\u6311\u6226"},"content":{"rendered":"
PulseView \u306e 0.3.0-git-f3697d3 \u3092\u30d3\u30eb\u30c9\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n
\u7d50\u8ad6\u304b\u3089\u8a00\u3048\u3070\u3001\u4eca\u306e\u3068\u3053\u308d\u8d77\u52d5\u3057\u3066\u3059\u3050\u843d\u3061\u307e\u3059\u3002\uff08\u6d99\uff09<\/p>\n
<\/p>\n
\u7121\u7406\u3084\u308a\u3001\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u958b\u3044\u3066\u307f\u308b\u3068\u30dd\u30fc\u30c8\u306e\u30aa\u30fc\u30d7\u30f3\u3067\u3053\u3051\u3066\u3044\u308b\u3088\u3046\u306a\u611f\u3058\u3067\u3059\u3002about \u306f\u898b\u308c\u307e\u3057\u305f\u3002<\/p>\n
<\/p>\n
\u30c7\u30d0\u30a4\u30b9\u306b\u3082\u30b3\u30cd\u30af\u30c8\u3057\u3001\u30b9\u30ad\u30e3\u30f3\u3059\u308c\u3070\u51fa\u3066\u304d\u307e\u3059\u3002<\/p>\n
<\/p>\n
\u3057\u304b\u3057\u3001OK \u3092\u62bc\u3059\u3068\u6700\u521d\u306e\u30c0\u30a4\u30a2\u30ed\u30b0\u8868\u793a\u304c\u51fa\u3066\u3001OK \u3092\u62bc\u3059\u3068\u3001SIGABRT \u3067\u843d\u3061\u307e\u3059\u3002<\/p>\n
Process: pulseview-bin [95174]\nPath: \/Applications\/PulseView.app\/Contents\/MacOS\/.\/pulseview-bin\nIdentifier: com.yourcompany.pulseview\nVersion: 0.3.0-git-5d73886 (???)\nCode Type: X86-64 (Native)\nParent Process: sh [95171]\nResponsible: sh [95171]\nUser ID: 501\n\nDate\/Time: 2015-12-30 03:51:25.054 +0900\nOS Version: Mac OS X 10.9.5 (13F34)\nReport Version: 11\nAnonymous UUID: C9AF270A-FCB7-7966-372A-2DF968A13DBE\n\n\nCrashed Thread: 0 Dispatch queue: com.apple.main-thread\n\nException Type: EXC_CRASH (SIGABRT)\nException Codes: 0x0000000000000000, 0x0000000000000000\n\nApplication Specific Information:\nabort() called\n\nThread 0 Crashed:: Dispatch queue: com.apple.main-thread\n0 libsystem_kernel.dylib 0x00007fff8f96d866 __pthread_kill + 10\n1 libsystem_pthread.dylib 0x00007fff8bb5535c pthread_kill + 92\n2 libsystem_c.dylib 0x00007fff85eefb1a abort + 125\n3 libglib-2.0.0.dylib 0x00000001022cae07 g_assertion_message + 387\n4 libglib-2.0.0.dylib 0x00000001022cae65 g_assertion_message_expr + 94\n5 libglib-2.0.0.dylib 0x00000001022e43a8 g_variant_type_info_check + 379\n6 libglib-2.0.0.dylib 0x00000001022e41fe g_variant_type_info_get_type_string + 16\n7 libglib-2.0.0.dylib 0x00000001022d7b7c g_variant_get_type + 22\n8 pulseview-bin 0x000000010112d4af pv::prop::Int::get_widget(QWidget*, bool) + 159 (int.cpp:72)\n9 pulseview-bin 0x000000010111733f pv::binding::Binding::add_properties_to_form(QFormLayout*, bool) const + 95 (binding.cpp:55)\n10 pulseview-bin 0x000000010111742d pv::binding::Binding::get_property_form(QWidget*, bool) const + 109 (binding.cpp:71)\n11 pulseview-bin 0x0000000101129599 pv::popups::DeviceOptions::DeviceOptions(std::__1::shared_ptr<sigrok::Device>, QWidget*) + 185 (qglobal.h:2436)\n12 pulseview-bin 0x000000010112f96b pv::toolbars::MainBar::update_device_config_widgets() + 171 (memory:4447)\n13 pulseview-bin 0x000000010112f82b pv::toolbars::MainBar::update_device_list() + 475 (list:565)\n14 pulseview-bin 0x00000001010eac9a pv::MainWindow::select_init_device() + 1594 (mainwindow.cpp:589)\n15 pulseview-bin 0x00000001010e759e pv::MainWindow::MainWindow(pv::DeviceManager&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, QWidget*) + 606 (mainwindow.cpp:128)\n16 pulseview-bin 0x00000001010e2880 main + 848 (main.cpp:163)\n17 libdyld.dylib 0x00007fff89c435fd start + 1<\/pre>\n\u3046\u30fc\u3093\u3001\u306a\u3093\u3067\u3057\u3087\u3046\u304b\u306d\u3002<\/p>\n
<\/p>\n
\u3068\u308a\u3042\u3048\u305a\u3001\u3044\u3064\u304b\u307e\u305f\u518d\u30c1\u30e3\u30ec\u30f3\u30b8\u3059\u308b\u3068\u304d\u306b\u5099\u3048\u3066\u3001\u30d3\u30eb\u30c9\u624b\u9806\u3092\u8f09\u305b\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n
\u25bc\u74b0\u5883<\/p>\n
\nosx 10.9.5<\/p>\n
qt-opensource-mac-4.8.7<\/p>\n
$ xcode-select -v
\n
xcode-select version 2333. <\/p>\n$ xcode-select -p
\n
\/Applications\/Xcode.app\/Contents\/Developer <\/p>\n$ xcode-select -print-path
\n
\/Applications\/Xcode.app\/Contents\/Developer <\/p>\n$ xcodebuild -version
\n
Xcode 6.2<\/p>\nBuild version 6C131e<\/p>\n
$ cmake –version
\n
cmake version 3.4.1<\/p>\n$ clang -v
\n
Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn)<\/p>\nTarget: x86_64-apple-darwin13.4.0<\/p>\n
Thread model: posix<\/p>\n<\/blockquote>\n
\u3053\u3093\u306a\u611f\u3058\u306e\u74b0\u5883\u3067\u3059\u3002\u30d3\u30eb\u30c9\u624b\u9806\u306f\u3001\u57fa\u672c\u4ee5\u4e0b\u306e\u3068\u304a\u308a\u3067\u3059\u3002cmake \u3059\u308b\u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u5c11\u3057\u8cb7\u3048\u307e\u3057\u305f\u3002<\/p>\n
\nhttps:\/\/sigrok.org\/wiki\/Mac_OS_X<\/a><\/p>\n<\/blockquote>\n
\u524d\u6e96\u5099\u3068\u3057\u3066\u3001Qt\u306e4\u7cfb\u6700\u7d42\u306e4.8.7 \u3092\u5165\u308c\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n
\u3042\u3068\u3001ports \u3067\u4ee5\u4e0b\u3092\u5165\u308c\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n
\n$ sudo port selfupdate
\n
$ sudo port install boost libusb libzip libftdi0<\/p>\n$ sudo port install autoconf automake cmake glib2 python33 libtool pkgconfig<\/p>\n<\/blockquote>\n
\u74b0\u5883\u5909\u6570\u3092\u53cd\u6620\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n
\n$ export PKG_CONFIG_PATH=\/usr\/local\/lib\/pkgconfig\/<\/p>\n<\/blockquote>\n
libserialport<\/p>\n
\n$ git clone git:\/\/sigrok.org\/libserialport
\n
$ cd libserialport<\/p>\n$ .\/autogen.sh<\/p>\n
$ .\/configure<\/p>\n
$ make<\/p>\n
$ sudo make install<\/p>\n<\/blockquote>\n
\u4ee5\u4e0b\u306b\u5165\u308a\u307e\u3057\u305f\u3002<\/p>\n
HOPE:libserialport junkhack$ sudo make install\n CC serialport.lo\n CC macosx.lo\n CCLD libserialport.la\n \/usr\/local\/bin\/gmkdir -p '\/usr\/local\/lib'\n \/bin\/sh .\/libtool --silent --mode=install \/usr\/local\/bin\/ginstall -c libserialport.la '\/usr\/local\/lib'\n \/usr\/local\/bin\/gmkdir -p '\/usr\/local\/include'\n \/usr\/local\/bin\/ginstall -c -m 644 libserialport.h '\/usr\/local\/include'\n \/usr\/local\/bin\/gmkdir -p '\/usr\/local\/lib\/pkgconfig'\n \/usr\/local\/bin\/ginstall -c -m 644 libserialport.pc '\/usr\/local\/lib\/pkgconfig'<\/pre>\n\u6b21\u3001libsigrok \u3067\u3059\u3002<\/p>\n
libsigrok<\/p>\n
\n$ git clone git:\/\/sigrok.org\/libsigrok
\n
$ cd libsigrok<\/p>\n$ .\/autogen.sh<\/p>\n
$ .\/configure<\/p>\n
$ make<\/p>\n
$ sudo make install<\/p>\n<\/blockquote>\n
\u4ee5\u4e0b\u306b\u5165\u308a\u307e\u3057\u305f\u3002<\/p>\n
HOPE:libsigrok junkhack$ sudo make install\n \/usr\/local\/bin\/gmkdir -p '\/usr\/local\/lib'\n \/bin\/sh .\/libtool --silent --mode=install \/usr\/local\/bin\/ginstall -c libsigrok.la bindings\/cxx\/libsigrokcxx.la '\/usr\/local\/lib'\n \/Applications\/Xcode.app\/Contents\/Developer\/Toolchains\/XcodeDefault.xctoolchain\/usr\/bin\/ranlib: file: \/usr\/local\/lib\/libsigrok.a(fallback.o) has no symbols\n \/usr\/local\/bin\/gmkdir -p '\/usr\/local\/include\/libsigrokcxx'\n \/usr\/local\/bin\/ginstall -c -m 644 bindings\/cxx\/include\/libsigrokcxx\/libsigrokcxx.hpp '\/usr\/local\/include\/libsigrokcxx'\n \/usr\/local\/bin\/gmkdir -p '\/usr\/local\/include\/libsigrok'\n \/usr\/local\/bin\/ginstall -c -m 644 include\/libsigrok\/libsigrok.h include\/libsigrok\/proto.h '\/usr\/local\/include\/libsigrok'\n \/usr\/local\/bin\/gmkdir -p '\/usr\/local\/include\/libsigrokcxx'\n \/usr\/local\/bin\/ginstall -c -m 644 bindings\/cxx\/include\/libsigrokcxx\/enums.hpp '\/usr\/local\/include\/libsigrokcxx'\n \/usr\/local\/bin\/gmkdir -p '\/usr\/local\/include\/libsigrok'\n \/usr\/local\/bin\/ginstall -c -m 644 include\/libsigrok\/version.h '\/usr\/local\/include\/libsigrok'\n \/usr\/local\/bin\/gmkdir -p '\/usr\/local\/lib\/pkgconfig'\n \/usr\/local\/bin\/ginstall -c -m 644 libsigrok.pc bindings\/cxx\/libsigrokcxx.pc '\/usr\/local\/lib\/pkgconfig'\n HOPE:libsigrok junkhack$ <\/pre>\n\u6b21\u3001\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u7248\u306e\u3067\u3059\u3002<\/p>\n
sigrok-cli<\/p>\n
\n$ git clone git:\/\/sigrok.org\/sigrok-cli
\n
$ cd sigrok-cli<\/p>\n$ .\/autogen.sh<\/p>\n
$ .\/configure<\/p>\n
$ make<\/p>\n
$ sudo make install<\/p>\n<\/blockquote>\n
\u4ee5\u4e0b\u306b\u5165\u308a\u307e\u3057\u305f\u3002<\/p>\n
HOPE:sigrok-cli junkhack$ sudo make install\n \/usr\/local\/bin\/gmkdir -p '\/usr\/local\/bin'\n \/usr\/local\/bin\/ginstall -c sigrok-cli '\/usr\/local\/bin'\n \/usr\/local\/bin\/gmkdir -p '\/usr\/local\/share\/man\/man1'\n \/usr\/local\/bin\/ginstall -c -m 644 doc\/sigrok-cli.1 '\/usr\/local\/share\/man\/man1'\n HOPE:sigrok-cli junkhack$ <\/pre>\n\u6b21\u304c\u3001\u554f\u984c\u306e\u3084\u3064\u3067\u3059\u3002<\/p>\n
PulseView<\/p>\n
\n$ git clone git:\/\/sigrok.org\/pulseview
\n
$ cd pulseview<\/p>\n$ cmake -DENABLE_TESTS=n -DDISABLE_WERROR=y .<\/p>\n
$ make<\/p>\n
$ sudo make install<\/p>\n<\/blockquote>\n
cmake \u3067\u30c6\u30b9\u30c8\u3092n \u306b\u3059\u308b\u304b\u3001\u8b66\u544a\u3092\u7121\u8996\u3059\u308b\u304b\u3092\u30c1\u30a7\u30c3\u30af\u3057\u3001\u9032\u307f\u307e\u3059\u3002\u4f55\u304b\u3001\u672a\u5b9a\u7fa9\u306e\u5909\u6570\u3084\u5ba3\u8a00\u306a\u3069\u304c\u3042\u308b\u3088\u3046\u3067\u3059\u3002\u76f4\u3059\u306e\u304c\u9762\u5012\u3060\u3063\u305f\u306e\u3067\u3001\u3068\u308a\u3042\u3048\u305a\u3002<\/p>\n
\u4ee5\u4e0b\u306b\u5165\u308a\u307e\u3057\u305f\u3002<\/p>\n
HOPE:pulseview junkhack$ sudo make install\n Password:\n [ 54%] Built target pulseview\n [100%] Built target pulseview-test\n Install the project...\n -- Install configuration: "RelWithDebInfo"\n -- Installing: \/usr\/local\/bin\/pulseview\n -- Installing: \/usr\/local\/share\/man\/man1\/pulseview.1\n HOPE:pulseview junkhack$ <\/pre>\n\u3067\u3001\u3044\u304d\u306a\u308a\u5b9f\u884c\u3059\u308b\u3082\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3002<\/p>\n
\n$ ll \/usr\/local\/bin\/pulseview
\n
-rwxr-xr-x 1 root admin 1913672 12 30 00:57 \/usr\/local\/bin\/pulseview<\/p>\n$ \/usr\/local\/bin\/pulseview
\n
Failed to import the site module<\/p>\nYour PYTHONPATH points to a site-packages dir for Python 2.x but you are running Python 3.x!<\/p>\n
PYTHONPATH is currently: "\/usr\/local\/lib\/python2.7\/site-packages"<\/p>\n
You should `unset PYTHONPATH` to fix this.<\/p>\n<\/blockquote>\n
otool \u3067\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30d1\u30b9\u3092\u898b\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u3067\u3059\u3002<\/p>\n
$ otool -L \/usr\/local\/bin\/pulseview\n\/usr\/local\/bin\/pulseview:\n \/opt\/local\/lib\/libboost_filesystem-mt.dylib (compatibility version 0.0.0, current version 0.0.0)\n \/opt\/local\/lib\/libboost_system-mt.dylib (compatibility version 0.0.0, current version 0.0.0)\n \/opt\/local\/lib\/libboost_thread-mt.dylib (compatibility version 0.0.0, current version 0.0.0)\n QtSvg.framework\/Versions\/4\/QtSvg (compatibility version 4.8.0, current version 4.8.7)\n QtGui.framework\/Versions\/4\/QtGui (compatibility version 4.8.0, current version 4.8.7)\n QtCore.framework\/Versions\/4\/QtCore (compatibility version 4.8.0, current version 4.8.7)\n \/usr\/local\/lib\/libsigrokcxx.2.dylib (compatibility version 3.0.0, current version 3.0.0)\n \/usr\/local\/lib\/libsigrok.2.dylib (compatibility version 3.0.0, current version 3.0.0)\n \/usr\/local\/lib\/libglibmm-2.4.1.dylib (compatibility version 5.0.0, current version 5.0.0)\n \/opt\/local\/lib\/libgobject-2.0.0.dylib (compatibility version 4601.0.0, current version 4601.2.0)\n \/usr\/local\/lib\/libsigc-2.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)\n \/usr\/local\/lib\/libsigrokdecode.2.dylib (compatibility version 3.0.0, current version 3.0.0)\n \/opt\/local\/lib\/libglib-2.0.0.dylib (compatibility version 4601.0.0, current version 4601.2.0)\n \/opt\/local\/lib\/libintl.8.dylib (compatibility version 10.0.0, current version 10.4.0)\n \/usr\/lib\/libc++.1.dylib (compatibility version 1.0.0, current version 120.0.0)\n \/usr\/lib\/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)<\/pre>\n\u3046\u30fc\u3093\u3001Python3.x \u3067\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u304c\u3001\u3042\u308a\u307e\u305b\u3093\u3002\u3042\u3068\u3001\u4ee5\u4e0b\u306e\uff13\u3064\u306f\u3069\u3053\u63a2\u3057\u3066\u3082\u3042\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u304c\u3001\u3001\u3001<\/p>\n
\nQtSvg.framework
\n
QtGui.framework<\/p>\nQtCore.framework<\/p>\n<\/blockquote>\n
\u3061\u306a\u307f\u306b\u3001Qt5.5 \u3067\u30d3\u30eb\u30c9\u3057\u305f\u3068\u304d\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u3067\u3057\u305f\u3002<\/p>\n
----- qt5.5\n HOPE:MacOS junkhack$ otool -L pulseview \n pulseview:\n \/opt\/local\/lib\/libboost_filesystem-mt.dylib (compatibility version 0.0.0, current version 0.0.0)\n \/opt\/local\/lib\/libboost_system-mt.dylib (compatibility version 0.0.0, current version 0.0.0)\n \/opt\/local\/lib\/libboost_thread-mt.dylib (compatibility version 0.0.0, current version 0.0.0)\n \/opt\/local\/lib\/libboost_unit_test_framework-mt.dylib (compatibility version 0.0.0, current version 0.0.0)\n @rpath\/QtSvg.framework\/Versions\/5\/QtSvg (compatibility version 5.5.0, current version 5.5.1)\n \/usr\/local\/lib\/libsigrokcxx.2.dylib (compatibility version 3.0.0, current version 3.0.0)\n \/usr\/local\/lib\/libsigrok.2.dylib (compatibility version 3.0.0, current version 3.0.0)\n \/usr\/local\/lib\/libglibmm-2.4.1.dylib (compatibility version 5.0.0, current version 5.0.0)\n \/opt\/local\/lib\/libgobject-2.0.0.dylib (compatibility version 4601.0.0, current version 4601.2.0)\n \/usr\/local\/lib\/libsigc-2.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)\n \/usr\/local\/lib\/libsigrokdecode.2.dylib (compatibility version 3.0.0, current version 3.0.0)\n \/opt\/local\/lib\/libglib-2.0.0.dylib (compatibility version 4601.0.0, current version 4601.2.0)\n \/opt\/local\/lib\/libintl.8.dylib (compatibility version 10.0.0, current version 10.4.0)\n @rpath\/QtWidgets.framework\/Versions\/5\/QtWidgets (compatibility version 5.5.0, current version 5.5.1)\n @rpath\/QtGui.framework\/Versions\/5\/QtGui (compatibility version 5.5.0, current version 5.5.1)\n @rpath\/QtCore.framework\/Versions\/5\/QtCore (compatibility version 5.5.0, current version 5.5.1)\n \/usr\/lib\/libc++.1.dylib (compatibility version 1.0.0, current version 120.0.0)\n \/usr\/lib\/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)\n HOPE:MacOS junkhack$ <\/pre>\n\u3053\u308c\u306f\u63a2\u305b\u3070\u3042\u308a\u307e\u3057\u305f\u3002\u306a\u3093\u3067\u3001Qt4 \u3060\u3068\u306a\u3044\u3093\u3067\u3057\u3087\u3046\u304b\uff1f\u4f55\u304b\u5165\u308c\u5fd8\u308c\u305f\u306e\u3067\u3059\u304b\u306d\u3002\u3061\u306a\u307f\u306b\u30010.2.0 \u306eELIAS \u3055\u3093\u306e\u30d3\u30eb\u30c9\u3057\u305f\u3082\u306e\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u3067\u3059\u3002<\/p>\n
$ otool -L pulseview-bin \npulseview-bin:\n @executable_path\/..\/Frameworks\/libboost_filesystem-mt.dylib (compatibility version 0.0.0, current version 0.0.0)\n @executable_path\/..\/Frameworks\/libboost_system-mt.dylib (compatibility version 0.0.0, current version 0.0.0)\n @executable_path\/..\/Frameworks\/QtSvg.framework\/Versions\/4\/QtSvg (compatibility version 4.8.0, current version 4.8.6)\n @executable_path\/..\/Frameworks\/QtGui.framework\/Versions\/4\/QtGui (compatibility version 4.8.0, current version 4.8.6)\n @executable_path\/..\/Frameworks\/QtCore.framework\/Versions\/4\/QtCore (compatibility version 4.8.0, current version 4.8.6)\n @executable_path\/..\/Frameworks\/libsigrokxx.2.dylib (compatibility version 3.0.0, current version 3.0.0)\n @executable_path\/..\/Frameworks\/libsigrok.2.dylib (compatibility version 3.0.0, current version 3.0.0)\n @executable_path\/..\/Frameworks\/libglibmm-2.4.1.dylib (compatibility version 5.0.0, current version 5.0.0)\n @executable_path\/..\/Frameworks\/libgobject-2.0.0.dylib (compatibility version 4201.0.0, current version 4201.0.0)\n @executable_path\/..\/Frameworks\/libglib-2.0.0.dylib (compatibility version 4201.0.0, current version 4201.0.0)\n @executable_path\/..\/Frameworks\/libintl.8.dylib (compatibility version 10.0.0, current version 10.2.0)\n @executable_path\/..\/Frameworks\/libsigc-2.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)\n @executable_path\/..\/Frameworks\/libsigrokdecode.2.dylib (compatibility version 3.0.0, current version 3.0.0)\n @executable_path\/..\/Frameworks\/Python.framework\/Versions\/3.4\/Python (compatibility version 3.4.0, current version 3.4.0)\n \/usr\/lib\/libc++.1.dylib (compatibility version 1.0.0, current version 120.0.0)\n \/usr\/lib\/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)<\/pre>\nFrameworks \u306f\u3001\u3053\u308c\u3092\u62dd\u501f\u3057\u307e\u3059\u3002<\/p>\n
\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u76f4\u4e0b\u306b\u30b3\u30d4\u30fc\u3057\u3066\u4e0a\u66f8\u304d\u3057\u3066\u304d\u307e\u3059\u3002<\/p>\n
$ cd \/Applications\/PulseView.app\/Contents\n\n$ pwd\n\/Applications\/PulseView.app\/Contents\n\ncp -p \/opt\/local\/lib\/libboost_filesystem-mt.dylib .\/Frameworks\ncp -p \/opt\/local\/lib\/libboost_system-mt.dylib .\/Frameworks\ncp -p \/opt\/local\/lib\/libboost_thread-mt.dylib .\/Frameworks\n\ncp -p \/usr\/local\/lib\/libsigrokcxx.2.dylib .\/Frameworks\ncp -p \/usr\/local\/lib\/libsigrok.2.dylib .\/Frameworks\ncp -p \/usr\/local\/lib\/libglibmm-2.4.1.dylib .\/Frameworks\ncp -p \/opt\/local\/lib\/libgobject-2.0.0.dylib .\/Frameworks\ncp -p \/usr\/local\/lib\/libsigc-2.0.0.dylib .\/Frameworks\ncp -p \/usr\/local\/lib\/libsigrokdecode.2.dylib .\/Frameworks\ncp -p \/opt\/local\/lib\/libglib-2.0.0.dylib .\/Frameworks\ncp -p \/opt\/local\/lib\/libintl.8.dylib .\/Frameworks<\/pre>\nQt \u3067\u4f5c\u3063\u305f\u306e\u3092osx \u3067\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u30ea\u30f3\u30af\u3059\u308b\u30c4\u30fc\u30eb\u3068\u304b\u3001\u305d\u3046\u3044\u3046\u306e\u306f\u306a\u3044\u306e\u3067\u3057\u3087\u3046\u304b\u306d\u3002<\/p>\n
\u30d0\u30a4\u30ca\u30ea\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u306f\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u3001\u66f8\u304d\u63db\u3048\u3089\u308c\u307e\u3059\u3002<\/p>\n
\ninstall_name_tool -change \u5909\u66f4\u3057\u305f\u3044\u30c7\u30a3\u30ec\u30af\u30c8\u30ea \u305d\u3053\u306b\u65b0\u3057\u304f\u66f8\u304d\u8fbc\u307f\u305f\u3044\u30c7\u30a3\u30ec\u30af\u30c8\u30ea \u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u540d\u524d<\/p>\n<\/blockquote>\n
\u30d1\u30b9\u3092\u5207\u308a\u51fa\u3057\u3066\u3001\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3067\u7de8\u96c6\u3057\u3001<\/p>\n
HOPE:MacOS junkhack$ otool -L .\/pulseview | cut -f 1 -d ' ' | cut -f 2\n.\/pulseview:\n\/opt\/local\/lib\/libboost_filesystem-mt.dylib\n\/opt\/local\/lib\/libboost_system-mt.dylib\n\/opt\/local\/lib\/libboost_thread-mt.dylib\nQtSvg.framework\/Versions\/4\/QtSvg\nQtGui.framework\/Versions\/4\/QtGui\nQtCore.framework\/Versions\/4\/QtCore\n\/usr\/local\/lib\/libsigrokcxx.2.dylib\n\/usr\/local\/lib\/libsigrok.2.dylib\n\/usr\/local\/lib\/libglibmm-2.4.1.dylib\n\/opt\/local\/lib\/libgobject-2.0.0.dylib\n\/usr\/local\/lib\/libsigc-2.0.0.dylib\n\/usr\/local\/lib\/libsigrokdecode.2.dylib\n\/opt\/local\/lib\/libglib-2.0.0.dylib\n\/opt\/local\/lib\/libintl.8.dylib\n\/usr\/lib\/libc++.1.dylib\n\/usr\/lib\/libSystem.B.dylib\nHOPE:MacOS junkhack$ <\/pre>\n\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30b3\u30de\u30f3\u30c9\u3092\u4f5c\u308a\u307e\u3057\u305f\u3002<\/p>\n
cd MacOS\/\ncp pulseview pulseview_bup487\n\ninstall_name_tool -change \/opt\/local\/lib\/libboost_filesystem-mt.dylib @executable_path\/..\/Frameworks\/libboost_filesystem-mt.dylib .\/pulseview\ninstall_name_tool -change \/opt\/local\/lib\/libboost_system-mt.dylib @executable_path\/..\/Frameworks\/libboost_system-mt.dylib .\/pulseview\ninstall_name_tool -change \/opt\/local\/lib\/libboost_thread-mt.dylib @executable_path\/..\/Frameworks\/libboost_thread-mt.dylib .\/pulseview\ninstall_name_tool -change QtSvg.framework\/Versions\/4\/QtSvg @executable_path\/..\/Frameworks\/QtSvg.framework\/Versions\/4\/QtSvg .\/pulseview\ninstall_name_tool -change QtGui.framework\/Versions\/4\/QtGui @executable_path\/..\/Frameworks\/QtGui.framework\/Versions\/4\/QtGui .\/pulseview\ninstall_name_tool -change QtCore.framework\/Versions\/4\/QtCore @executable_path\/..\/Frameworks\/QtCore.framework\/Versions\/4\/QtCore .\/pulseview\ninstall_name_tool -change \/usr\/local\/lib\/libsigrokcxx.2.dylib @executable_path\/..\/Frameworks\/libsigrokcxx.2.dylib .\/pulseview\ninstall_name_tool -change \/usr\/local\/lib\/libsigrok.2.dylib @executable_path\/..\/Frameworks\/libsigrok.2.dylib .\/pulseview\ninstall_name_tool -change \/usr\/local\/lib\/libglibmm-2.4.1.dylib @executable_path\/..\/Frameworks\/libglibmm-2.4.1.dylib .\/pulseview\ninstall_name_tool -change \/opt\/local\/lib\/libgobject-2.0.0.dylib @executable_path\/..\/Frameworks\/libgobject-2.0.0.dylib .\/pulseview\ninstall_name_tool -change \/usr\/local\/lib\/libsigc-2.0.0.dylib @executable_path\/..\/Frameworks\/libsigc-2.0.0.dylib .\/pulseview\ninstall_name_tool -change \/usr\/local\/lib\/libsigrokdecode.2.dylib @executable_path\/..\/Frameworks\/libsigrokdecode.2.dylib .\/pulseview\ninstall_name_tool -change \/opt\/local\/lib\/libglib-2.0.0.dylib @executable_path\/..\/Frameworks\/libglib-2.0.0.dylib .\/pulseview\ninstall_name_tool -change \/opt\/local\/lib\/libintl.8.dylib @executable_path\/..\/Frameworks\/libintl.8.dylib .\/pulseview<\/pre>\n\u30d1\u30b9\u3092\u66f8\u304d\u63db\u3048\u307e\u3057\u305f\u3002\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n
$ otool -L pulseview-bin \npulseview-bin:\n @executable_path\/..\/Frameworks\/libboost_filesystem-mt.dylib (compatibility version 0.0.0, current version 0.0.0)\n @executable_path\/..\/Frameworks\/libboost_system-mt.dylib (compatibility version 0.0.0, current version 0.0.0)\n @executable_path\/..\/Frameworks\/libboost_thread-mt.dylib (compatibility version 0.0.0, current version 0.0.0)\n @executable_path\/..\/Frameworks\/QtSvg.framework\/Versions\/4\/QtSvg (compatibility version 4.8.0, current version 4.8.7)\n @executable_path\/..\/Frameworks\/QtGui.framework\/Versions\/4\/QtGui (compatibility version 4.8.0, current version 4.8.7)\n @executable_path\/..\/Frameworks\/QtCore.framework\/Versions\/4\/QtCore (compatibility version 4.8.0, current version 4.8.7)\n @executable_path\/..\/Frameworks\/libsigrokcxx.2.dylib (compatibility version 3.0.0, current version 3.0.0)\n @executable_path\/..\/Frameworks\/libsigrok.2.dylib (compatibility version 3.0.0, current version 3.0.0)\n @executable_path\/..\/Frameworks\/libglibmm-2.4.1.dylib (compatibility version 5.0.0, current version 5.0.0)\n @executable_path\/..\/Frameworks\/libgobject-2.0.0.dylib (compatibility version 4601.0.0, current version 4601.2.0)\n @executable_path\/..\/Frameworks\/libsigc-2.0.0.dylib (compatibility version 1.0.0, current version 1.0.0)\n @executable_path\/..\/Frameworks\/libsigrokdecode.2.dylib (compatibility version 3.0.0, current version 3.0.0)\n @executable_path\/..\/Frameworks\/libglib-2.0.0.dylib (compatibility version 4601.0.0, current version 4601.2.0)\n @executable_path\/..\/Frameworks\/libintl.8.dylib (compatibility version 10.0.0, current version 10.4.0)\n \/usr\/lib\/libc++.1.dylib (compatibility version 1.0.0, current version 120.0.0)\n \/usr\/lib\/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)<\/pre>\n\u5148\u8f29\u304c\u4f5c\u3063\u305f\u306e\u306f\u3001MacOS \u914d\u4e0b\u306b\uff12\u3064\u3042\u3063\u3066\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u3067\u3059\u3002<\/p>\n
$ ll\ntotal 1936\n-rwxr-xr-x@ 1 junkhack admin 187 11 3 2014 pulseview\n-rwxr-xr-x@ 1 junkhack admin 983748 11 3 2014 pulseview-bin<\/pre>\n\u30d3\u30eb\u30c9\u3057\u305f\u3082\u306e\u3092 pulseview-bin \u306b\u66f8\u304d\u63db\u3048\u307e\u3057\u305f\u3002bin \u304c\u4ed8\u3044\u3066\u3044\u306a\u3044\u306e\u306f\u3001bash \u306e\u30d0\u30a4\u30ca\u30ea\u30d5\u30a1\u30a4\u30eb\u306e\u3088\u3046\u3067\u3059\u3002<\/p>\n
HOPE:MacOS junkhack$ hexdump -C pulseview\n00000000 23 21 2f 62 69 6e 2f 73 68 0a 0a 44 49 52 3d 22 |#!\/bin\/sh..DIR="|\n00000010 24 28 64 69 72 6e 61 6d 65 20 22 24 30 22 29 22 |$(dirname "$0")"|\n00000020 0a 63 64 20 22 24 44 49 52 22 0a 0a 65 78 70 6f |.cd "$DIR"..expo|\n00000030 72 74 20 50 59 54 48 4f 4e 48 4f 4d 45 3d 22 2e |rt PYTHONHOME=".|\n00000040 2e 2f 46 72 61 6d 65 77 6f 72 6b 73 2f 50 79 74 |.\/Frameworks\/Pyt|\n00000050 68 6f 6e 2e 66 72 61 6d 65 77 6f 72 6b 2f 56 65 |hon.framework\/Ve|\n00000060 72 73 69 6f 6e 73 2f 33 2e 34 2f 22 0a 65 78 70 |rsions\/3.4\/".exp|\n00000070 6f 72 74 20 53 49 47 52 4f 4b 44 45 43 4f 44 45 |ort SIGROKDECODE|\n00000080 5f 44 49 52 3d 22 2e 2e 2f 73 68 61 72 65 2f 6c |_DIR="..\/share\/l|\n00000090 69 62 73 69 67 72 6f 6b 64 65 63 6f 64 65 2f 64 |ibsigrokdecode\/d|\n000000a0 65 63 6f 64 65 72 73 2f 22 0a 0a 2e 2f 70 75 6c |ecoders\/"...\/pul|\n000000b0 73 65 76 69 65 77 2d 62 69 6e 0a |seview-bin.|\n000000bb\nHOPE:MacOS junkhack$ <\/pre>\n\u3053\u3046\u3044\u3046\u611f\u3058\u3067\u8d77\u52d5\u3057\u3066\u308b\u3093\u3067\u3059\u306d\u3002\u306a\u308b\u307b\u3069\u3067\u3059\u3002Frameworks \u4ee5\u4e0b\u306ePython \u304b\u3089\u547c\u3073\u51fa\u3057\u3066\u3044\u308b\u3093\u3067\u3059\u306d\u3002pulsview \u3092\u62dd\u501f\u3057\u3001\u30d3\u30eb\u30c9\u3057\u305f\u3082\u306e\u306f\u3001pulseview-bin \u306b\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u5909\u66f4\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n
\u30d0\u30fc\u30b8\u30e7\u30f3\u3092Info.plist \u306b\u52a0\u3048\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n
$ cat Info.plist \n<?xml version="1.0" encoding="UTF-8"?>\n<!DOCTYPE plist SYSTEM "file:\/\/localhost\/System\/Library\/DTDs\/PropertyList.dtd">\n<plist version="0.9">\n<dict>\n <key>NSPrincipalClass<\/key>\n <string>NSApplication<\/string>\n <key>CFBundleIconFile<\/key>\n <string>sigrok.icns<\/string>\n <key>CFBundlePackageType<\/key>\n <string>APPL<\/string>\n <key>CFBundleGetInfoString<\/key>\n <string>PulseView is a Qt based logic analyzer GUI for sigrok.<\/string>\n <key>CFBundleSignature<\/key>\n <string>????<\/string>\n <key>CFBundleExecutable<\/key>\n <string>pulseview<\/string>\n <key>CFBundleIdentifier<\/key>\n <string>com.yourcompany.pulseview<\/string>\n <key>CFBundleShortVersionString<\/key>\n <string>0.3.0-git-5d73886<\/string>\n<\/dict>\n<\/plist><\/pre>\n\u3055\u3066\u3001\u3053\u308c\u3067\u3044\u3044\u306f\u305a\u3067\u3059\u304c\u3001\u3001\u3001\u3001\u7d50\u679c\u306f\u5192\u982d\u306b\u66f8\u3044\u305f\u3068\u304a\u308a\u3067\u3059\u3002\u3061\u306a\u307f\u306b\u3001Qt5.5 \u3067\u3082\u4f3c\u305f\u3088\u3046\u306a\u611f\u3058\u3067\u3057\u305f\u3002<\/p>\n
git \u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u898b\u308b\u3068\u3001\u3053\u306e24\u6642\u9593\u304f\u3089\u3044\u3067\u305d\u3053\u305d\u3053\u624b\u304c\u5165\u3063\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n
\npulseview.git \/ summary
\n
http:\/\/sigrok.org\/gitweb\/?p=pulseview.git;a=summary<\/a><\/p>\n<\/blockquote>\n\u3042\u3068\u3001\u30aa\u30d5\u30a3\u30b7\u30e3\u30eb\u306ewiki \u306b\u3082\u30d3\u30eb\u30c9\u3059\u308b\u306e\u306b\u5fc5\u8981\u306a\u8981\u4ef6\u306a\u3069\u304c\u307e\u3068\u307e\u3063\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n
\nsigrok wiki : Building
\n
https:\/\/sigrok.org\/wiki\/Building#Building_from_source<\/a><\/p>\n<\/blockquote>\n\u25bc\u307e\u3068\u3081<\/p>\n
\u30fbPulseView \u306e 0.3.0-git-f3697d3 \u3067\u306f\u3001\u3060\u3081\u3060\u3063\u305f
\n
\u30fb\u30c7\u30d0\u30a4\u30b9\u306e\u30aa\u30fc\u30d7\u30f3\u3067\u3053\u3051\u3066\u3044\u308b\u3088\u3046\u3067\u3059<\/p>\n\u30fblibglib-2.0.0.dylib \u304b\u3089 \u3053\u3051\u3066\u3044\u308b\u611f\u3058\u3002<\/p>\n
\u30fb\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30b3\u30d4\u30fc\u304c\u60aa\u3044\u306e\u304b\u3082<\/p>\n
\u30fb0.2.0 \u306e\u30bd\u30fc\u30b9\u3067\u8a66\u3057\u3066\u3060\u3081\u306a\u3089\u3001Qt4 \u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u5165\u308c\u65b9\u306a\u3069\u304c\u60aa\u3044\u306e\u304b\u3082\u3002<\/p>\n
\u30fbQt \u3067 osx \u306e\u5b9f\u884c\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u308b\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u30fc\u3068\u304b\u306a\u3044\u304b\u306a\u3041<\/p>\n
\u30fb\u30af\u30ea\u30fc\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305fosx \u3067\u3084\u3063\u3066\u307f\u305f\u3044\u304c\u3001\u305d\u306e\u74b0\u5883\u304c\u306a\u3044<\/p>\n
\u30fbQt4 \u306e QtGui \u3068\u304b QtCore \u3068\u304b\u306e Framework \u306f\u3069\u3053\u306b\u3042\u308b\u306e\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n
\u30fb\u30bd\u30fc\u30b9\u306b\u624b\u3092\u3064\u3051\u308b\u4ee5\u524d\u306e\u554f\u984c\u3067\u75b2\u308c\u679c\u3066\u305f<\/p>\n
<\/p>\n
\u53c2\u8003<\/p>\n
Qt for OS X – Deployment
\n
http:\/\/doc.qt.io\/qt-5\/osx-deployment.html<\/a><\/p>\n<\/p>\n
Building OSX App Bundle
\n
http:\/\/stackoverflow.com\/questions\/1596945\/building-osx-app-bundle<\/a><\/p>\n\n
sigrok bugzilla<\/p>\n