faith's blog

気まぐれ日記

crosswalk が gdb で追えない

先ほど書いた記事のエラーログですが、

[0626/133627:ERROR:command_buffer_proxy_impl.cc(151)] Could not send GpuCommandBufferMsg_Initialize.

該当箇所は、こんなのです。

   bool result;
   if (!Send(new GpuCommandBufferMsg_Initialize(
       route_id_, handle, &result, &capabilities_))) {
     LOG(ERROR) << "Could not send GpuCommandBufferMsg_Initialize.";
     return false;
   }

GpuCommandBufferMsg_Initialize なんですが、 gtags で引っかからないし、grepしても class 定義がない。 しかも、gdb で step 実行すると、すり抜けるという謎現象。 最適化が問題かと思ったんですが、 この class がマクロで定義されているようなんですね。

IPC_SYNC_MESSAGE_ROUTED1_2(GpuCommandBufferMsg_Initialize,
                           base::SharedMemoryHandle /* shared_state */,
                           bool /* result */,
                           gpu::Capabilities /* capabilities */)

↑これを性的に静的に追っていくと、↓に行き着きます。

#define IPC_SYNC_ROUTED_DECL(msg_class, in_cnt, out_cnt, in_list, out_list)   \
  class IPC_MESSAGE_EXPORT msg_class : public IPC::SyncMessage {              \
   public:                                                                    \
    typedef IPC::SyncMessageSchema Schema;  \
    typedef Schema::ReplyParam ReplyParam;                                    \
    typedef Schema::SendParam SendParam;                                      \
    enum { ID = IPC_MESSAGE_ID() };                                           \
    msg_class(int32 routing_id                                                \
              IPC_COMMA_OR_##in_cnt(IPC_COMMA_##out_cnt)                      \
              IPC_TYPE_IN_##in_cnt in_list                                    \
              IPC_COMMA_AND_##in_cnt(IPC_COMMA_##out_cnt)                     \
              IPC_TYPE_OUT_##out_cnt out_list);                               \
    virtual ~msg_class();                                                     \
    static bool ReadSendParam(const Message* msg, Schema::SendParam* p);      \
    static bool ReadReplyParam(                                               \
        const Message* msg,                                                   \
        TupleTypes::ValueTuple* p);                               \
    static void Log(std::string* name, const Message* msg, std::string* l);   \
    IPC_SYNC_MESSAGE_METHODS_##out_cnt                                        \
  };

コード上は、そんな class が存在しないので、gtags でも追えないし、gdb でもひっかからないと。 どうしたらいいんでしょうかね・・・。 ていうか、なんでこんなことするかなー。 デバッガで追えないような実装するとか、何考えてんだろ、馬鹿なの?死ぬの?

Tizen 環境復旧しました

おはようございます。

M2-March2014 のビルドがほぼほぼ終わって、 weston-simple-egl が起動する環境が復旧しました。

まぁ、crosswalk は動かないんですけどね。

Ubuntu の crosswalk build は、4123/5412 までいったので、もう少しってところですが、 ↓こんな感じのエラーが出て、もうわけがわかりません。

[4123/5412] CXX obj/xwalk/application/common/xwalk_application_lib.application_file_util.o
FAILED: c++ -MMD -MF obj/xwalk/application/common/xwalk_application_lib.application_file_util.o.d -DV8_DEPRECATION_WARNINGS -DBLINK_SCALE_FILTERS_AT_RECORD_TIME -D_FILE_OFFSET_BITS=64 -DDISABLE_NACL -DCHROMIUM_BUILD -DTOOLKIT_VIEWS=1 -DUI_COMPOSITOR_IMAGE_TRANSPORT -DUSE_AURA=1 -DUSE_CAIRO=1 -DUSE_GLIB=1 -DUSE_OZONE=1 -DUSE_DEFAULT_RENDER_THEME=1 -DUSE_
LIBJ
PEG_TURBO=1 -DUSE_MOJO=1 -DENABLE_ONE_CLICK_SIGNIN -DENABLE_REMOTING=1 -DENABLE_WEBRTC=1 -DUSE_PROPRIETARY_CODECS -DENABLE_PEPPER_CDMS -DENABLE_CONFIGURATION_POLICY -DENABLE_INPUT_SPEECH -DENABLE_NOTIFICATIONS -DENABLE_HIDPI=1 -DUSE_UDEV -DENABLE_EGLIMAGE=1 -DENABLE_TASK_MANAGER=1 -DENABLE_EXTENSIONS=1 -DENABLE_PLUGIN_INSTALLATION=1 -DENABLE_PLUGINS=1 -
DENA
BLE_SESSION_SERVICE=1 -DENABLE_THEMES=1 -DENABLE_AUTOFILL_DIALOG=1 -DENABLE_BACKGROUND=1 -DENABLE_AUTOMATION=1 -DENABLE_GOOGLE_NOW=1 -DCLD_VERSION=2 -DENABLE_FULL_PRINTING=1 -DENABLE_PRINTING=1 -DENABLE_SPELLCHECK=1 -DENABLE_CAPTIVE_PORTAL_DETECTION=1 -DENABLE_APP_LIST=1 -DENABLE_SETTINGS_APP=1 -DENABLE_MANAGED_USERS=1 -DENABLE_MDNS=1 -DENABLE_SERVICE_D
ISCO
VERY=1 -DSK_ENABLE_INST_COUNT=0 -DSK_SUPPORT_GPU=1 '-DGR_GL_CUSTOM_SETUP_HEADER="GrGLConfig_chrome.h"' -DSK_ENABLE_LEGACY_API_ALIASING=1 -DSK_ATTR_DEPRECATED=SK_NOTHING_ARG1 -DGR_GL_IGNORE_ES3_MSAA=0 -DSK_SUPPORT_LEGACY_LAYERRASTERIZER_API=1 -DSK_WILL_NEVER_DRAW_PERSPECTIVE_TEXT -DSK_SUPPORT_LEGACY_PUBLICEFFECTCONSTRUCTORS=1 -DSK_SUPPORT_LEGACY_GETCLIPT
YPE
-DSK_SUPPORT_LEGACY_GETTOTALCLIP -DSK_SUPPORT_LEGACY_GETTOPDEVICE -DSK_USE_POSIX_THREADS -DSK_DEFERRED_CANVAS_USES_FACTORIES=1 -DU_USING_ICU_NAMESPACE=0 -DU_STATIC_IMPLEMENTATION -DCHROME_PNG_WRITE_SUPPORT -DPNG_USER_CONFIG -DUSE_SYSTEM_LIBXML -DUSE_NSS=1 -DNDEBUG -DNVALGRIND -DDYNAMIC_ANNOTATIONS_ENABLED=0 -I../.. -I../../skia/config -I../../third_part
y/We
bKit/Source -I../../third_party/khronos -I../../gpu -I../../net/third_party/nss/ssl -I../../third_party/skia/src/core -I../../third_party/skia/include/core -I../../third_party/skia/include/effects -I../../third_party/skia/include/pdf -I../../third_party/skia/include/gpu -I../../third_party/skia/include/lazy -I../../third_party/skia/include/pathops -I../
../t
hird_party/skia/include/pipe -I../../third_party/skia/include/ports -I../../third_party/skia/include/utils -I../../skia/ext -I../../third_party/icu/source/i18n -I../../third_party/icu/source/common -I../../third_party/WebKit -I../../third_party/npapi -I../../third_party/npapi/bindings -I../../v8/include -I../../third_party/libpng -I../../third_party/zli
b -I
../../third_party/libwebp -I../../third_party/ots/include -I../../third_party/qcms/src -I../../third_party/iccjpeg -I../../third_party/libjpeg_turbo -Igen/xwalk -fstack-protector --param=ssp-buffer-size=4 -pthread -fno-exceptions -fno-strict-aliasing -Wno-unused-parameter -Wno-missing-field-initializers -fvisibility=hidden -pipe -fPIC -Wno-unused-local-
type
defs -pthread -I/usr/include/glib-2.0 -I/usr/lib/arm-linux-gnueabihf/glib-2.0/include -I/usr/include/nss -I/usr/include/nspr -I/usr/include/freetype2 -I/usr/include/libxml2 -I/usr/include/dbus-1.0 -I/usr/lib/arm-linux-gnueabihf/dbus-1.0/include -Wno-format -Wno-unused-result -march=armv7-a -mfpu=neon -mfloat-abi=softfp -mthumb -O2 -fno-ident -fdata-sect
ions
 -ffunction-sections -funwind-tables -O2 -g2 -feliminate-unused-debug-types -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=32 -Wformat -Wformat-security -fmessage-length=0 -march=armv7-a -mtune=cortex-a15 -mlittle-endian -mfpu=neon -mfloat-abi=hard -g -I/usr/include/arm-linux-gnueabihf -I/usr/include/arm-linux
-gnu
eabihf/c++/4.8 -Wno-deprecated-declarations -fno-rtti -fno-threadsafe-statics -fvisibility-inlines-hidden -Wno-deprecated -Wno-abi  -c ../../xwalk/application/common/application_file_util.cc -o obj/xwalk/application/common/xwalk_application_lib.application_file_util.o
In file included from /usr/include/libxml2/libxml/parser.h:811:0,
                 from /usr/include/libxml2/libxml/globals.h:18,
                 from /usr/include/libxml2/libxml/threads.h:35,
                 from /usr/include/libxml2/libxml/xmlmemory.h:218,
                 from ../../third_party/libxml/src/include/libxml/tree.h:1249,
                 from ../../xwalk/application/common/application_file_util.cc:26:
/usr/include/libxml2/libxml/xmlIO.h:132:5: error: 'xmlBufPtr' does not name a type
     xmlBufPtr buffer;    /* Local buffer encoded in UTF-8 */
     ^
/usr/include/libxml2/libxml/xmlIO.h:133:5: error: 'xmlBufPtr' does not name a type
     xmlBufPtr raw;       /* if encoder != NULL buffer for raw input */
     ^
/usr/include/libxml2/libxml/xmlIO.h:148:5: error: 'xmlBufPtr' does not name a type
     xmlBufPtr buffer;    /* Local buffer encoded in UTF-8 or ISOLatin */
     ^
/usr/include/libxml2/libxml/xmlIO.h:149:5: error: 'xmlBufPtr' does not name a type
     xmlBufPtr conv;      /* if encoder != NULL buffer for output */
     ^
[4123/5412] CXX obj/content/common/content_common.content_message_generator.o
ninja: build stopped: subcommand failed.

Tien crosswalk の方は、↓こんな感じ。

(gdb) run http://www.google.com
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /usr/lib/xwalk/xwalk http://www.google.com
warning: File "/lib/libthread_db.so.1" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available.
[0626/133623:INFO:desktop_factory_wayland.cc(15)] Ozone: DesktopFactoryWayland
[New LWP 691]
[0626/133624:INFO:desktop_factory_wayland.cc(15)] Ozone: DesktopFactoryWayland
libEGL warning: MESA-LOADER: malformed or no PCI ID

[New LWP 693]
[0626/133624:ERROR:desktop_drag_drop_client_wayland.cc(14)] Not implemented reached in views::DesktopDragDropClientWayland::DesktopDragDropClientWayland(aura::Window*)
[0626/133624:ERROR:desktop_window_tree_host_wayland.cc(632)] Not implemented reached in virtual void views::DesktopWindowTreeHostWayland::OnRootViewLayout() const
[0626/133624:ERROR:desktop_window_tree_host_wayland.cc(632)] Not implemented reached in virtual void views::DesktopWindowTreeHostWayland::OnRootViewLayout() const
[0626/133625:WARNING:proxy_service.cc(903)] PAC support disabled because there is no system implementation
[0626/133625:ERROR:tizen_platform_sensor.cc(53)] Connection to accelerometer sensor failed
[0626/133625:ERROR:tizen_platform_sensor.cc(68)] Connection to gyroscope sensor failed
[0626/133625:ERROR:tizen_platform_sensor.cc(53)] Connection to accelerometer sensor failed
[0626/133625:ERROR:tizen_platform_sensor.cc(68)] Connection to gyroscope sensor failed
[0626/133625:ERROR:desktop_window_tree_host_wayland.cc(611)] Not implemented reached in virtual void views::DesktopWindowTreeHostWayland::SetWindowIcons(const gfx::ImageSkia&, const gfx::ImageSkia&)
[0626/133625:ERROR:display.cc(140)] Not implemented reached in virtual void ozonewayland::WaylandDisplay::SetWidgetState(unsigned int, ui::WidgetState, unsigned int, unsigned int) SHOW 1
[0626/133626:WARNING:xwalk_external_extension.cc(57)] Error loading extension '/usr/lib/tizen-extensions-crosswalk/libtizen_callhistory.so': couldn't get XW_Initialize function.
[0626/133626:WARNING:xwalk_extension_server.cc(376)] Failed to initialize extension: /usr/lib/tizen-extensions-crosswalk/libtizen_callhistory.so
[New LWP 684]
[0626/133626:INFO:desktop_factory_wayland.cc(15)] Ozone: DesktopFactoryWayland
libEGL warning: MESA-LOADER: malformed or no PCI ID

[0626/133627:ERROR:webgraphicscontext3d_command_buffer_impl.cc(426)] Failed to initialize GLES2CmdHelper.
[0626/133627:ERROR:command_buffer_proxy_impl.cc(151)] Could not send GpuCommandBufferMsg_Initialize.
[0626/133627:ERROR:webgraphicscontext3d_command_buffer_impl.cc(394)] CommandBufferProxy::Initialize failed.
[0626/133627:ERROR:webgraphicscontext3d_command_buffer_impl.cc(413)] Failed to initialize command buffer.
[0626/133627:FATAL:window_state_change_handler.cc(26)] Check failed: !impl_. Replacing set WindowStateChangeHandler implementation.

Program received signal SIGABRT, Aborted.
0xb649a884 in raise () from /lib/libc.so.6

MESA_DEBUG=1 を付けても、とくに有益な情報は無し。 エラーも出てない様子。

gdb で crosswalk 追っかけるしかないのか・・・

近況報告

Tizen動きません(ToT)

おはようございます。

Tizen-IVI の arm RPM が snapshot ディレクトリに上がっていたので、 それを使って、mesa/libdrm/weston だけ差し替えてみたんですが、 weston は起動するが、weston-simple-egl は動かずといった状況です。

しかも、eglInitialize が失敗という、以前嵌った状態っぽいんですが、 そもそも前にその状態になったときは、次の日に試したら、eglInitializeじゃなくその後のeglChooseConfigでこけるようになっていたので、 解決方法がわからずです・・・

一応、Tizen と Ubuntugdb を走らせれば、比較はできるんですが、しんどいです。 (俺は休日に何やってんだorz、ってなりました)

そろそろ疲れてきたので、息抜きに tegra Ubuntu 環境で crosswalk をビルドしてきます。

crosswalk が動かない

おはようございます。

この週末も相変わらず Jetson TK1 を弄り倒してました。 Tizen で corsswalk が動かなかったので、解析してましたが、さっぱりわかりません。

↓こんなログが出てます。

root:~> xwalk /home/app/hello.html 
[0131/162138:INFO:desktop_factory_wayland.cc(15)] Ozone: DesktopFactoryWayland
[0131/162140:INFO:desktop_factory_wayland.cc(15)] Ozone: DesktopFactoryWayland
libEGL warning: MESA-LOADER: malformed or no PCI ID

[0131/162140:WARNING:xwalk_browser_main_parts.cc(171)] Ignoring non-existent extension directory: /usr/lib/tizen-extensions-crosswalk
[16:21:40.177] libwayland: disconnect from client 0x29cb78
[0131/162140:ERROR:desktop_drag_drop_client_wayland.cc(14)] Not implemented reached in views::DesktopDragDropClientWayland::DesktopDragDropClientWayland(aura::Window*)
[0131/162140:ERROR:desktop_window_tree_host_wayland.cc(632)] Not implemented reached in virtual void views::DesktopWindowTreeHostWayland::OnRootViewLayout() const
[0131/162140:ERROR:desktop_window_tree_host_wayland.cc(632)] Not implemented reached in virtual void views::DesktopWindowTreeHostWayland::OnRootViewLayout() const
[0131/162140:WARNING:proxy_service.cc(903)] PAC support disabled because there is no system implementation
[0131/162140:ERROR:tizen_platform_sensor.cc(53)] Connection to accelerometer sensor failed
[0131/162140:ERROR:tizen_platform_sensor.cc(68)] Connection to gyroscope sensor failed
[0131/162140:ERROR:tizen_platform_sensor.cc(53)] Connection to accelerometer sensor failed
[0131/162140:ERROR:tizen_platform_sensor.cc(68)] Connection to gyroscope sensor failed
[0131/162140:ERROR:desktop_window_tree_host_wayland.cc(611)] Not implemented reached in virtual void views::DesktopWindowTreeHostWayland::SetWindowIcons(const gfx::ImageSkia&, const gfx::ImageSkia&)
[0131/162140:ERROR:display.cc(140)] Not implemented reached in virtual void ozonewayland::WaylandDisplay::SetWidgetState(unsigned int, ui::WidgetState, unsigned int, unsigned int) SHOW 1
[0131/162140:INFO:cursor.cc(132)] The current cursor theme does not have a cursor for type 13. Falling back to the default cursor.
[16:21:41.007] already in the native mode
[   82.944256] nouveau E[     PFB][57000000.gpu] gk20a_ram_get: cannot allocate memory!
[   82.956571] nouveau E[     PFB][57000000.gpu] gk20a_ram_get: cannot allocate memory!
[0131/162141:ERROR:gles2_cmd_decoder.cc(9078)] Context lost because SwapBuffers failed.
[0131/162141:ERROR:gpu_scheduler.cc(94)] [0x2957000] GPU PARSE ERROR: 5
[16:21:41.065] libwayland: disconnect from client 0xc95f8
[0131/162141:ERROR:command_buffer_proxy_impl.cc(151)] Could not send GpuCommandBufferMsg_Initialize.
[0131/162141:ERROR:webgraphicscontext3d_command_buffer_impl.cc(394)] CommandBufferProxy::Initialize failed.
[0131/162141:ERROR:webgraphicscontext3d_command_buffer_impl.cc(413)] Failed to initialize command buffer.
[0131/162142:INFO:desktop_factory_wayland.cc(15)] Ozone: DesktopFactoryWayland
libEGL warning: MESA-LOADER: malformed or no PCI ID

[16:21:42.306] libwayland: disconnect from client 0xc95f8
[0131/162142:ERROR:command_buffer_proxy_impl.cc(151)] Could not send GpuCommandBufferMsg_Initialize.
[0131/162142:ERROR:webgraphicscontext3d_command_buffer_impl.cc(394)] CommandBufferProxy::Initialize failed.
[0131/162142:ERROR:webgraphicscontext3d_command_buffer_impl.cc(413)] Failed to initialize command buffer.
[0131/162142:ERROR:command_buffer_proxy_impl.cc(151)] Could not send GpuCommandBufferMsg_Initialize.
[0131/162142:ERROR:webgraphicscontext3d_command_buffer_impl.cc(394)] CommandBufferProxy::Initialize failed.
[0131/162142:ERROR:webgraphicscontext3d_command_buffer_impl.cc(413)] Failed to initialize command buffer.
[0131/162142:FATAL:window_state_change_handler.cc(26)] Check failed: !impl_. Replacing set WindowStateChangeHandler implementation.
Aborted

eglSwapBuffers が失敗しているのかな。

nouveau drm ドライバがエラーを吐いていることから、 weston では使っていない、nouveau drm ドライバが対応していない機能を、crosswalk が使っちゃっているんでしょうか。

さすがに疲れてきました。 crosswalk はしばらく置いておこうかな。

gbs / mic 実行時にエラーとなっているパッケージがそれなりにあるので、 それによって、なんか足りないパッケージがあることに起因しているという可能性が微レ存。

というか、mic 実行時に dependency じゃなく、rpm インストール時にエラーが発生しているパッケージがあるのが気になります。

[06/15 21:06:50 UTC] Installing: linux-firmware-ivi-2 +                                  [ 19/383]
[06/15 21:06:50 UTC] error: Not allowed character in access type: l
error: Failed to parse manifest for default-ac-domains
error: default-ac-domains-0.1-1.noarch: install failed

[06/15 21:06:51 UTC] Installing: elm-misc-0.1.31-1.no ++                                 [ 24/383]
[06/15 21:06:51 UTC] /var/tmp/rpm-tmp.fTrFmh: line 1: chown: command not found
/var/tmp/rpm-tmp.fTrFmh: line 2: chown: command not found
warning: %post(elm-misc-0.1.31-1.noarch) scriptlet failed, exit status 127

[06/15 21:06:58 UTC] Installing: fontconfig-2.10.91-0 ++++++++                           [ 94/383]
[06/15 21:06:59 UTC] qemu: uncaught target signal 11 (Segmentation fault) - core dumped
/var/tmp/rpm-tmp.Cz30Xa: line 12:  8203 Segmentation fault      (core dumped) HOME=/root /usr/bin/fc-cache -f
warning: %post(fontconfig-2.10.91-0.armv7l) scriptlet failed, exit status 139

[06/15 21:07:00 UTC] Installing: shared-mime-info-1.0 ++++++++                           [101/383]
[06/15 21:07:00 UTC] qemu: uncaught target signal 11 (Segmentation fault) - core dumped
/var/tmp/rpm-tmp.OyrW0i: line 1:  8216 Segmentation fault      (core dumped) /usr/bin/update-mime-database /usr/share/mime

[06/15 21:07:08 UTC] Installing: ail-0.2.73-1.armv7l. +++++++++++++++++                  [196/383]
[06/15 21:07:09 UTC] /bin/rm: cannot remove '/opt/dbspace/.app_info.db': No such file or directory
/bin/rm: cannot remove '/opt/dbspace/.app_info.db-journal': No such file or directory
[AIL_INITDB][D][main,257] AIL_INITDB : 0
[AIL_INITDB][D][initdb_load_directory,131] Loading desktop files from /opt/share/applications
[AIL_INITDB][D][initdb_load_directory,154] Application-Desktop process : Success [0], fail[0], total[0]

[AIL_INITDB][D][initdb_load_directory,131] Loading desktop files from /usr/share/applications
[AIL_INITDB][E][_desktop_to_package,101] defaults.list is not a desktop file
[AIL_INITDB][E][initdb_load_directory,142] Failed to convert file to package[defaults.list]
[AIL_INITDB][D][initdb_load_directory,154] Application-Desktop process : Success [0], fail[1], total[1]

[AIL_INITDB][E][initdb_change_perm,181] FAIL : chown /opt/dbspace/.app_info.db 0.6010, because No such file or directory
[AIL_INITDB][E][main,276] cannot chown.

[06/15 21:07:11 UTC] Installing: privacy-manager-serv +++++++++++++++++++                [223/383]
[06/15 21:07:12 UTC] qemu: uncaught target signal 11 (Segmentation fault) - core dumped
/usr/bin/privacy_manager_create_clean_db.sh: line 16:  8379 Segmentation fault      (core dumped) sqlite3 /opt/dbspace/.$name.db "$SQL"

[06/15 21:07:14 UTC] Installing: gcr-data-3.8.2-0.arm ++++++++++++++++++++++             [259/383]
[06/15 21:07:14 UTC] /var/tmp/rpm-tmp.kPc7C9: line 2:  8421 Segmentation fault      (core dumped) /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas &>/dev/null
/var/tmp/rpm-tmp.kPc7C9: line 3: fg: no job control
warning: %post(gcr-data-3.8.2-0.armv7l) scriptlet failed, exit status 1

[06/15 21:07:14 UTC] Installing: libfolks-data-0.9.3- +++++++++++++++++++++++            [260/383]
[06/15 21:07:15 UTC] /var/tmp/rpm-tmp.2iYjdF: line 2:  8424 Segmentation fault      (core dumped) /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas &>/dev/null

[06/15 21:07:21 UTC] Installing: ca-certificates-1-0. +++++++++++++++++++++++            [270/383]
[06/15 21:07:21 UTC] qemu: uncaught target signal 11 (Segmentation fault) - core dumped
/var/tmp/rpm-tmp.9ltFoz: line 9:  8432 Segmentation fault      (core dumped) update-ca-certificates -f

[06/15 21:07:23 UTC] Installing: tizen-branding-defau +++++++++++++++++++++++++          [289/383]
[06/15 21:07:23 UTC] /var/tmp/rpm-tmp.T52HNA: line 1: /usr/sbin/plymouth-set-default-theme: No such file or directory
warning: %post(tizen-branding-default-0.2-0.noarch) scriptlet failed, exit status 127

[06/15 21:07:23 UTC] Installing: ca-certificates-mozi +++++++++++++++++++++++++          [290/383]
[06/15 21:07:23 UTC] qemu: uncaught target signal 11 (Segmentation fault) - core dumped
/var/tmp/rpm-tmp.tEAuaD: line 1:  8449 Segmentation fault      (core dumped) update-ca-certificates

[06/15 21:07:26 UTC] Installing: cantarell-fonts-0.0. ++++++++++++++++++++++++++         [294/383]
[06/15 21:07:26 UTC] qemu: uncaught target signal 11 (Segmentation fault) - core dumped
/var/tmp/rpm-tmp.cGRSS2: line 1:  8469 Segmentation fault      (core dumped) /usr/bin/fc-cache /usr/share/fonts/cantarell

[06/15 21:07:26 UTC] Installing: google-droid-fonts-2 ++++++++++++++++++++++++++         [295/383]
[06/15 21:07:28 UTC] qemu: uncaught target signal 11 (Segmentation fault) - core dumped
/var/tmp/rpm-tmp.PirZfr: line 3:  8472 Segmentation fault      (core dumped) /usr/bin/fc-cache /usr/share/fonts/truetype

[06/15 21:07:31 UTC] Installing: pkgmgr-0.2.89-1.armv +++++++++++++++++++++++++++        [314/383]
[06/15 21:07:31 UTC] qemu: uncaught target signal 11 (Segmentation fault) - core dumped
/var/tmp/rpm-tmp.uGZ6js: line 5:  8498 Segmentation fault      (core dumped) update-mime-database /usr/share/mime
warning: %post(pkgmgr-0.2.89-1.armv7l) scriptlet failed, exit status 139

[06/15 21:07:33 UTC] Installing: evolution-data-serve +++++++++++++++++++++++++++++      [332/383]
[06/15 21:07:33 UTC] /var/tmp/rpm-tmp.KKCvlK: line 2:  8517 Segmentation fault      (core dumped) /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas &>/dev/null

エラーが多い気がします。 Ubuntu 14.04 環境がよろしくないのかなぁ。

Jetson TK1でTizenを動かしてみた

こんばんわ、faithです。

先日、weston が立ち上がったので、今度は Tizen(IVI) を動かしてみました。 IVI は arm 版の rpm は転がっていないので、一通りビルドしました。

kernel と boot は 流用して、rootfs を Tizen のものに変更して、電源を入れると、 weston のデスクトップ画面は出て、simple-egl は動きました。

crosswalk も試してみましたが動きませんでした、残念。

corsswalk は common の rpm を使いました(cross compileでもビルドに2時間弱かかるので)

crosswalk にも tegra 対応が必要なのかなぁ。

weston 立ち上げまとめ (1)

おはようございます。

昨日書いた、weston 立ち上げについて、repository と configure オプションのまとめです。 weston / wayland のバージョンは 1.4.0 です。

結局修正したのは、weston のみでした。

以下の順番でビルドしていきます

  • wayland
  • libdrm
  • glproto
  • dri2proto
  • mesa
  • libxkmcommon
  • pixman
  • cairo
  • weston

パッケージインストール

以下のパッケージをインストールしました。

  • libffi-dev
  • doxygen
  • libjpeg-dev
  • libpng12-dev
  • libfreetype6-dev
  • libfontconfig1-dev
  • libxcb-composite0-dev
  • libxcursor-dev
  • libxcb-shm0-dev
  • libmtdev-dev
  • libpam0g-dev

wayland

repository

git://anongit.freedesktop.org/wayland/wayland

configure

--prefix=/usr/local

libdrm

repository

git://gitorious.org/thierryreding/drm.git

configure

--prefix=/usr/local --enable-udev --enable-libkms \
--enable-nouveau --enable-tegra-experimental-api \
--disable-intel --disable-radeon \
--disable-vmwgfx

続きます。

simple-egl が動いた

おはようございます、faithです。

先日、weston は動いたけど、weston-simple-egl が動かないと書きましたが、 たった今、動きました。

原因は、mesa の configure オプションでした。 mesa の configure オプションを変更し、

make uninstall
reconfigure
make
make install

で動きました。

(make uninstall を実行せずに、reconfigure だと駄目だったみたいです)

元々、以下のようなオプションにしていたのですが、

./autogen.sh --prefix=/usr/local --enable-gles1 --enable-gles2 --with-egl-platforms=drm,wayland --enable-shared-glapi \
  --enable-gbm --enable-gallium-gbm --enable-gallium-egl --with-dri-drivers=nouveau --with-gallium-drivers="nouveau" --disable-dri3

--enable-gallium-gbm --enable-gallium-egl が駄目だったようです。

以下のオプションでビルドすると動きました。

./autogen.sh --prefix=/usr/local --enable-gles1 --enable-gles2 --with-egl-platforms=drm,wayland \
  --enable-shared-glapi --enable-gbm --with-dri-drivers=nouveau --with-gallium-drivers=nouveau --disable-dri3 \
  --enable-debug

デバッグコード(通らない箇所だった・・・)が入ったままの状態なので、 一旦、バックアップを取ったら、情報を整理して、まとめます。

記念写真

weston & simple-egl f:id:faith0x7dc:20140612073822j:plain

kmscube f:id:faith0x7dc:20140612073827j:plain

Display は ハンファのタッチパネル液晶 HM-TL7T です。 egalax の石が入っているはずなので、Linux でも使えるはずですが、 まだ試していません。 そのうち試します。

そろそろ、準備して仕事行ってきます。