{"id":8,"date":"2019-10-04T20:53:07","date_gmt":"2019-10-04T20:53:07","guid":{"rendered":"http:\/\/metajack.org\/blog\/?p=8"},"modified":"2019-10-13T03:23:33","modified_gmt":"2019-10-13T03:23:33","slug":"getting-started-developing-for-the-westlicht-performer","status":"publish","type":"post","link":"http:\/\/metajack.org\/blog\/2019\/10\/04\/getting-started-developing-for-the-westlicht-performer\/","title":{"rendered":"Getting started developing for the Westlicht Performer"},"content":{"rendered":"\n<p>Here are my annotated notes on setting up OSX to contribute to the Westlicht performer sequencer.<\/p>\n\n\n\n<p>1st step is cloning the github repository:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mkdir performer-sequencer\ncd performer-sequencer\ngit clone --recursive https:\/\/github.com\/westlicht\/performer.git<\/code><\/pre>\n\n\n\n<p>I don&#8217;t recall if git is pre-installed on modern macs. If not you&#8217;ll need to install git as well. One item which is not installed is is cmake. Realizing I needed cmake and possibly other items is what prompted me to create this post.<\/p>\n\n\n\n<p>I already had homebrew installed, so tried :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>brew upgrade cmake\nbrew install sdl2\nbrew install libusb # perhaps not needed\nbrew install libusb-compat<\/code><\/pre>\n\n\n\n<p>which, after updating brew, worked (we&#8217;ll need sdl2 and libusb later on)<\/p>\n\n\n\n<p>A first attempt at compiling is done with:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd performer\nmake tools_install<\/code><\/pre>\n\n\n\n<p>Note that this step appears to install the arm compiler tools. I wish I would have skipped this and saw if things worked without them. Eventually I&#8217;ll need them but in case I do not move forward on this I&#8217;d prefer to not have the tools installed on my computer &#8211; especially as they are not under package management.<\/p>\n\n\n\n<p>My install failed anyway with:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>configure: error: libusb-1.x is required for the MPSSE mode of FTDI based devices\nmake[1]: *** No targets specified and no makefile found.  Stop.\nmake[1]: Nothing to be done for `install'.<\/code><\/pre>\n\n\n\n<p>so moving on&#8230;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>make setup_stm32<\/code><\/pre>\n\n\n\n<p>sets up the build dirs according to the developers readme. Ran without fail.<\/p>\n\n\n\n<p>Next up is:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>make setup_sim<\/code><\/pre>\n\n\n\n<p>My first results i below. However as a note I performed a parallel install and had a different error:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>libopencm3 submodule not found!<\/code><\/pre>\n\n\n\n<p>which was fixed with :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git submodule update --init --recursive<\/code><\/pre>\n\n\n\n<p>The first time I tried, it exited with:<\/p>\n\n\n\n<p><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>-- Building for platform sim ...\nCMake Error at \/usr\/local\/Cellar\/cmake\/3.15.4\/share\/cmake\/Modules\/FindPackageHandleStandardArgs.cmake:137 (message):\n  Could NOT find SDL2 (missing: SDL2_LIBRARY SDL2_INCLUDE_DIR)\nCall Stack (most recent call first):\n  \/usr\/local\/Cellar\/cmake\/3.15.4\/share\/cmake\/Modules\/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)\n  cmake\/FindSDL2.cmake:173 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)\n  src\/platform\/sim\/CMakeLists.txt:8 (find_package)\n\n\n-- Configuring incomplete, errors occurred!\nSee also \"\/Users\/jack\/performer-sequencer\/performer\/build\/sim\/debug\/CMakeFiles\/CMakeOutput.log\".\nmake: *** [setup_sim] Error 1\n<\/code><\/pre>\n\n\n\n<p>I need to fix this but first I may as well try compiling the sequencer itself:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd build\/stm32\/release\nmake -j<\/code><\/pre>\n\n\n\n<p>which, surprisingly worked :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>[100%] Built target sequencer<\/code><\/pre>\n\n\n\n<p>To build for the simulator:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>make setup_sim\ncd build\/sim\/debug\nmake -j<\/code><\/pre>\n\n\n\n<p>To run the simulator<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.\/src\/apps\/sequencer\/sequencer<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Here are my annotated notes on setting up OSX to contribute to the Westlicht performer sequencer. 1st step is cloning the github repository: I don&#8217;t recall if git is pre-installed on modern macs. If not you&#8217;ll need to install git as well. One item which is not installed is is cmake. Realizing I needed cmake &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/metajack.org\/blog\/2019\/10\/04\/getting-started-developing-for-the-westlicht-performer\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Getting started developing for the Westlicht Performer&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-8","post","type-post","status-publish","format-standard","hentry","category-uncategorized","entry"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/metajack.org\/blog\/wp-json\/wp\/v2\/posts\/8","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/metajack.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/metajack.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/metajack.org\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/metajack.org\/blog\/wp-json\/wp\/v2\/comments?post=8"}],"version-history":[{"count":3,"href":"http:\/\/metajack.org\/blog\/wp-json\/wp\/v2\/posts\/8\/revisions"}],"predecessor-version":[{"id":57,"href":"http:\/\/metajack.org\/blog\/wp-json\/wp\/v2\/posts\/8\/revisions\/57"}],"wp:attachment":[{"href":"http:\/\/metajack.org\/blog\/wp-json\/wp\/v2\/media?parent=8"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/metajack.org\/blog\/wp-json\/wp\/v2\/categories?post=8"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/metajack.org\/blog\/wp-json\/wp\/v2\/tags?post=8"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}