{"id":948,"date":"2014-02-05T09:06:08","date_gmt":"2014-02-04T20:06:08","guid":{"rendered":"http:\/\/www.signsofsuccess.co.nz\/?p=948"},"modified":"2014-02-05T09:06:08","modified_gmt":"2014-02-04T20:06:08","slug":"porting-lazarus-development-linux","status":"publish","type":"post","link":"https:\/\/glover.gen.nz\/wordpress\/porting-lazarus-development-linux\/","title":{"rendered":"Porting Lazarus development to Linux"},"content":{"rendered":"<p>This morning I downloaded and installed the Lazarus RAD IDE, Free pascal and its resources to my workshop PC Ubuntu 12.04 image. It all went very smoothly. I tried to run my project (Sudoku Solver) from a USB key, but the permissions on the FAT32 file system were not right, so just for now I have moved it to the home directory. The program almost worked first time, but I had an issue creating the drop down list box. In the windows version, I had moved the text entries to the list items using \u00a0puzzlelistbox.items.strings [i], but this gave a floating point problem in Ubuntu, so I changed it to the more normal (and probably much better) \u00a0puzzlelistbox.list.add(string). It now compiles clean and runs perfectly.<\/p>\n<p>I also was a bit concerned at the large .exe file size on the windows side, so changed the Profile to Build in\u00a0 &#8216;Configure Build Lazarus&#8217; option in the tools section to &#8216;Optimised IDE&#8217;, which rebuilt Lazarus, and the next time I created an .exe it was down to 3meg from 15meg.<\/p>\n<p>So all is good, next step to create a Linux executable of the project.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This morning I downloaded and installed the Lazarus RAD IDE, Free pascal and its resources to my workshop PC Ubuntu 12.04 image. It all went very smoothly. I tried to run my project (Sudoku Solver) from a USB key, but &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/glover.gen.nz\/wordpress\/porting-lazarus-development-linux\/\"> <span class=\"screen-reader-text\">Porting Lazarus development to Linux<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-948","post","type-post","status-publish","format-standard","hentry","category-programming"],"_links":{"self":[{"href":"https:\/\/glover.gen.nz\/wordpress\/wp-json\/wp\/v2\/posts\/948","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/glover.gen.nz\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/glover.gen.nz\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/glover.gen.nz\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/glover.gen.nz\/wordpress\/wp-json\/wp\/v2\/comments?post=948"}],"version-history":[{"count":0,"href":"https:\/\/glover.gen.nz\/wordpress\/wp-json\/wp\/v2\/posts\/948\/revisions"}],"wp:attachment":[{"href":"https:\/\/glover.gen.nz\/wordpress\/wp-json\/wp\/v2\/media?parent=948"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/glover.gen.nz\/wordpress\/wp-json\/wp\/v2\/categories?post=948"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/glover.gen.nz\/wordpress\/wp-json\/wp\/v2\/tags?post=948"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}