Jetson NanoでOpenHSPのコンパイル

sudo apt-get update && sudo apt-get install libgtk2.0-dev && sudo apt-get install libglew-dev && sudo apt-get install libsdl1.2-dev && libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev && sudo apt-get install libgles2-mesa-dev libegl1-mesa-dev git clone https://github.com/onitama/OpenHSP.git cd OpenHSP bash pisetup.sh (途中でエラーになるけど、下の通りに続行。) OpenGLを使っているソースコードをjetsonにインストールされているバージョンに合わせて書き換える。 vi src/hsp3dish/emscripten/hgiox.cpp #if defined(HSPLINUX) || defined(HSPEMSCRIPTEN) #ifdef HSPRASPBIAN /* #include “bcm_host.h” */ /* #include “GLES/gl.h” */ #include “GL/gl.h” #include “GL/glut.h” #include “EGL/egl.h” #include “EGL/eglext.h” #include “SDL/SDL.h” libpngのコンパイルフラグをarm用に合わせる。 vi makefile CFLAGS_GP = -Wno-write-strings –exec-charset=UTF-8 -DHSPDISH -DHSPDISHGP -DHSPLINUX -DHSPDEBUG -DPNG_ARM_NEON_OPT=0 -I src/hsp3dish/extlib/src -I src/hsp3dish/extlib/src/glew -I src/hsp3dish/gameplay/src -std=c++11 ビルド make サンプルの実行 ./hspcmp -d -i -u sample/hsplogo.hsp cd sample ../hsp3dish hsplogo.ax 参考 NDK SDL2_image libpng build error: png_init_filter_functions_neon – SDL Development – Simple Directmedia Layer

ria | web server timeout (タイムアウト)

– apache 2.4   - apache2handler default     - TimeOut = 300 # 秒       - https://httpd.apache.org/docs/2.4/mod/core.html#timeout – php latest   - mod_php default     - max_execution_time = 30 # 秒       - http://php.net/manual/ja/info.configuration.php#ini.max-execution-time   - # RELATION     - memory_limit = 128M # PHP 5.2.0 より前は “8M”、PHP 5.2.0 では “16M”       - http://php.net/manual/ja/ini.core.php#ini.memory-limit – Adobe Air   - air 1.5 runtime default     - RemoteObject 60秒 (macOS)       - requestTimeoutをリセットできない(?)         - https://forums.adobe.com/thread/696177?tstart=0     - URLRequest ???     - NetConnection. httpIdleTimeout = ??? # milli second   - air 1.5.3 runtime default     - RemoteObject 30秒オーバー(?)       - requestTimeoutをリセットできる         - https://forums.adobe.com/message/3041722#3041722   - air 2.x runtime default     - RemoteObject 60秒 (macOS)       - requestTimeoutをリセットできない(?)         - https://forums.adobe.com/thread/696177?tstart=0     - URLRequest ??? milli second       - idleTimeoutをリセットできない(?)         - https://help.adobe.com/ja_JP/FlashPlatform/reference/actionscript/3/flash/net/URLRequest.html#idleTimeout         - https://peterkeating.co.uk/long-running-web-service-requests-in-adobe-air/

これ読まなきゃ、Sails.jsは始まらない。

http://sailsjs.com/documentation/reference/command-line-interface/sails-lift http://sailsjs.com/documentation/reference/command-line-interface/sails-generate http://sailsjs.com/documentation/reference/configuration/sails-config-routes http://sailsjs.com/documentation/concepts/routes http://sailsjs.com/documentation/concepts/routes/custom-routes http://sailsjs.com/documentation/concepts/controllers http://sailsjs.com/documentation/reference/blueprint-api http://sailsjs.com/documentation/concepts/views/locals http://sailsjs.com/documentation/concepts/models-and-orm/query-language https://github.com/balderdashy/sails-docs/blob/master/concepts/extending-sails/Hooks/hookspec/initialize.md http://sailsjs.com/documentation/concepts/logging http://www.embeddedjs.com/ #sails lift –verbose –models.migrate=’safe’

mono * nancy (Lightweight, low-ceremony, framework for building HTTP based services on .Net and Mono) on Ubuntu.

  Nancy – Lightweight, low-ceremony, framework for building HTTP based services on .Net and Mono、起動。   # building mono. sudo apt-get update -o Acquire::ForceIPv4=true sudo sudo apt-get install -y autoconf automake libtool g++ gettext cd ~/src git clone git://github.com/mono/mono.git cd mono cd ~/src/mono ./autogen.sh –prefix=/usr/local make -j8 get-monolite-latest make -j8 sudo make install   # building nancy. cd ~/src git clone https://github.com/NancyFx/Nancy.git cd Nancy ./build.sh   # compiling demo. cd ~/src mkdir nancydemo cd nancydemo mcs Program.cs HelloModule.cs -r:../Nancy/src/Nancy.Hosting.Self/bin/Release/net452/Nancy.dll -r:../Nancy/src/Nancy.Hosting.Self/bin/Release/net452/Nancy.Hosting.Self.dll -r:/usr/local/lib/mono/4.5-api/Mono.Posix.dll mono Program.exe