{"action":"created","issue":{"url":"https://api.github.com/repos/silvioprog/brookframework/issues/160","repository_url":"https://api.github.com/repos/silvioprog/brookframework","labels_url":"https://api.github.com/repos/silvioprog/brookframework/issues/160/labels{/name}","comments_url":"https://api.github.com/repos/silvioprog/brookframework/issues/160/comments","events_url":"https://api.github.com/repos/silvioprog/brookframework/issues/160/events","html_url":"https://github.com/silvioprog/brookframework/issues/160","id":382343611,"node_id":"MDU6SXNzdWUzODIzNDM2MTE=","number":160,"title":"Use legacy application with tardigrade","user":{"login":"Al-Muhandis","id":26924147,"node_id":"MDQ6VXNlcjI2OTI0MTQ3","avatar_url":"https://avatars0.githubusercontent.com/u/26924147?v=4","gravatar_id":"","url":"https://api.github.com/users/Al-Muhandis","html_url":"https://github.com/Al-Muhandis","followers_url":"https://api.github.com/users/Al-Muhandis/followers","following_url":"https://api.github.com/users/Al-Muhandis/following{/other_user}","gists_url":"https://api.github.com/users/Al-Muhandis/gists{/gist_id}","starred_url":"https://api.github.com/users/Al-Muhandis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Al-Muhandis/subscriptions","organizations_url":"https://api.github.com/users/Al-Muhandis/orgs","repos_url":"https://api.github.com/users/Al-Muhandis/repos","events_url":"https://api.github.com/users/Al-Muhandis/events{/privacy}","received_events_url":"https://api.github.com/users/Al-Muhandis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-19T18:39:53Z","updated_at":"2018-11-20T14:08:38Z","closed_at":null,"author_association":"NONE","body":"When I try to use the tardigrade broker (4.0.0 tag) came across some problems that will list here. Maybe it's not a problem, and my lack of understanding of the mechanism of tardigrade. So...\r\nFirst I try to build sagui library for my Debian webserver. \r\n\r\n  1. Since there is not much difference between Ubuntu and Debian, I decided to build a library on my Lubuntu computer according to [this ](https://github.com/risoflora/libsagui/blob/master/INSTALL.md) document. _Notice: that to build requires CMake 3.5 or above, but many Debian systems has CMake version below. However I think it's not a problem: I have no problem to build for Debian in Ubuntu_\r\n\r\n  2. Next, I don't really know what to do with the compiled library, but I just copied the `libsagui.so.1.0.0` library with simlinks to the application folder on my webserver.\r\n\r\n  3. When I trying to change an existing unit of the broker to the `brooktardigradebroker` FPC can't compile the app because it doesn't find the following units: `BrookLibraryLoader, BrookUtility,\r\n  BrookStringMap, BrookHTTPUploads, BrookHTTPRequest, BrookHTTPResponse, BrookHTTPServer`. I suggest that these are in the 5.0.0 branch. But then why add this broker to 4.0.0 at all? Also note, as I pointed out earlier, the [example ](https://github.com/silvioprog/brookframework/tree/v4.0.0/demos/tardigrade) with tardigrade also requires to add the package `tardigrade.lpk`, which in the branch 4.0.0 is simply not.\r\n"},"comment":{"url":"https://api.github.com/repos/silvioprog/brookframework/issues/comments/440285473","html_url":"https://github.com/silvioprog/brookframework/issues/160#issuecomment-440285473","issue_url":"https://api.github.com/repos/silvioprog/brookframework/issues/160","id":440285473,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MDI4NTQ3Mw==","user":{"login":"daecccp","id":45200496,"node_id":"MDQ6VXNlcjQ1MjAwNDk2","avatar_url":"https://avatars3.githubusercontent.com/u/45200496?v=4","gravatar_id":"","url":"https://api.github.com/users/daecccp","html_url":"https://github.com/daecccp","followers_url":"https://api.github.com/users/daecccp/followers","following_url":"https://api.github.com/users/daecccp/following{/other_user}","gists_url":"https://api.github.com/users/daecccp/gists{/gist_id}","starred_url":"https://api.github.com/users/daecccp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daecccp/subscriptions","organizations_url":"https://api.github.com/users/daecccp/orgs","repos_url":"https://api.github.com/users/daecccp/repos","events_url":"https://api.github.com/users/daecccp/events{/privacy}","received_events_url":"https://api.github.com/users/daecccp/received_events","type":"User","site_admin":false},"created_at":"2018-11-20T14:08:38Z","updated_at":"2018-11-20T14:08:38Z","author_association":"NONE","body":"Hi Silvio, @Al-Muhandis \r\n\r\nPut here some information about my first check out the tardigrade version.\r\n\r\n1) ‘tardigrade’ hello word project (Brook 4) compiled x32 and x64 successfully on win 10. It works, but CPU activity is 25% constantly (!).\r\n\r\n2) My legacy application is compiled successfully. According to “Legacy applications (Win32 and 64)” wiki.\r\n- Get an error “Library 'libsagui-1.dll' not loaded.”. The file “libsagui-1.dll” is placed correctly. The proc TbrookLibraryLoader.InternalOpen was never raised. \r\nFixed when use Application.Initialize before BrookApp.Run.\r\n- CPU activity is 25% constantly (!).\r\n\r\n3)  Examples from Brook 5 work fine.\r\n- Checked Win 10 x64\r\n- Checked Linux Mint 19 x32\r\n- Checked the cross-compile from Linux to Win i386.\r\n\r\n\r\nWin 10 x64, Lazarus x64 1.8.4, fpc 3.0.4\r\nLinux Mint 19 x32, Lazarus 2RC2, fpc 3.0.4"}}
{"actor":{"display_login":"daecccp"}}