{"action":"created","issue":{"url":"https://api.github.com/repos/gitaeuber/mbrtu/issues/3","repository_url":"https://api.github.com/repos/gitaeuber/mbrtu","labels_url":"https://api.github.com/repos/gitaeuber/mbrtu/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/gitaeuber/mbrtu/issues/3/comments","events_url":"https://api.github.com/repos/gitaeuber/mbrtu/issues/3/events","html_url":"https://github.com/gitaeuber/mbrtu/issues/3","id":255059104,"number":3,"title":"libmodbus not found","user":{"login":"andig","id":184815,"avatar_url":"https://avatars1.githubusercontent.com/u/184815?v=4","gravatar_id":"","url":"https://api.github.com/users/andig","html_url":"https://github.com/andig","followers_url":"https://api.github.com/users/andig/followers","following_url":"https://api.github.com/users/andig/following{/other_user}","gists_url":"https://api.github.com/users/andig/gists{/gist_id}","starred_url":"https://api.github.com/users/andig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andig/subscriptions","organizations_url":"https://api.github.com/users/andig/orgs","repos_url":"https://api.github.com/users/andig/repos","events_url":"https://api.github.com/users/andig/events{/privacy}","received_events_url":"https://api.github.com/users/andig/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-04T14:32:48Z","updated_at":"2017-09-04T18:24:52Z","closed_at":null,"author_association":"NONE","body":"I'm trying first-time install:\r\n\r\n> compile static libmodbus library\r\n\r\ndone:\r\n\r\n    libmodbus 3.1.4\r\n    ===============\r\n\r\n    prefix:                 /usr/local\r\n    sysconfdir:             ${prefix}/etc\r\n    libdir:                 ${exec_prefix}/lib\r\n    includedir:             ${prefix}/include\r\n\r\n    compiler:               gcc\r\n    cflags:                 -g -O2\r\n    ldflags:                \r\n\r\n    documentation:          no\r\n    tests:                  yes\r\n\r\n> copy the resulting libmodbus.a to /usr/local/lib or into this directory and adapt Makefile\r\n\r\nNot sure where to find `libmodbus.a`. It's not in its expected place though:\r\n\r\n\tpi@uv:~/mbrtu $ make\r\n\tcc -std=c99 -O3 -Wall -D_BSD_SOURCE -I/usr/local/include/modbus/ mbrtu.c -o mbrtu /usr/local/lib/libmodbus.a\r\n\tcc: error: /usr/local/lib/libmodbus.a: No such file or directory\r\n\tMakefile:8: recipe for target 'mbrtu' failed\r\n\tmake: *** [mbrtu] Error 1\r\n\r\nI'm sure I'm doing something wrong- but not quite what exactly?\r\n"},"comment":{"url":"https://api.github.com/repos/gitaeuber/mbrtu/issues/comments/327012027","html_url":"https://github.com/gitaeuber/mbrtu/issues/3#issuecomment-327012027","issue_url":"https://api.github.com/repos/gitaeuber/mbrtu/issues/3","id":327012027,"user":{"login":"gitaeuber","id":5138148,"avatar_url":"https://avatars0.githubusercontent.com/u/5138148?v=4","gravatar_id":"","url":"https://api.github.com/users/gitaeuber","html_url":"https://github.com/gitaeuber","followers_url":"https://api.github.com/users/gitaeuber/followers","following_url":"https://api.github.com/users/gitaeuber/following{/other_user}","gists_url":"https://api.github.com/users/gitaeuber/gists{/gist_id}","starred_url":"https://api.github.com/users/gitaeuber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gitaeuber/subscriptions","organizations_url":"https://api.github.com/users/gitaeuber/orgs","repos_url":"https://api.github.com/users/gitaeuber/repos","events_url":"https://api.github.com/users/gitaeuber/events{/privacy}","received_events_url":"https://api.github.com/users/gitaeuber/received_events","type":"User","site_admin":false},"created_at":"2017-09-04T18:24:52Z","updated_at":"2017-09-04T18:24:52Z","author_association":"OWNER","body":"Hi andig,\n\n\nOn Mon, 04 Sep 2017 14:32:49 +0000 (UTC)\nandig <notifications@github.com> wrote:\n\n> I'm trying first-time install:\n> \n> > compile static libmodbus library  \n> \n> done:\n> \n>     libmodbus 3.1.4\n>     ===============\n> \n>     prefix:                 /usr/local\n>     sysconfdir:             ${prefix}/etc\n>     libdir:                 ${exec_prefix}/lib\n>     includedir:             ${prefix}/include\n> \n>     compiler:               gcc\n>     cflags:                 -g -O2\n>     ldflags:                \n> \n>     documentation:          no\n>     tests:                  yes\n\nit seems you successfully compiled the library. Now you can either do \"make install\". Then the library will be copied into /usr/local/lib or you copie the libmodbus.a manually into the source directory of mbrtu.\nWith the libmodbus.a file in the mbrtu source directory you have to change the Makefile look for the library in the local directory:\nchange this line:\n\t$(CC) $(CFLAGS) $(LFLAGS) $(SRCS) -o $@ /usr/local/lib/libmodbus.a\ninto this line:\n\t$(CC) $(CFLAGS) $(LFLAGS) $(SRCS) -o $@ ./libmodbus.a\n\n\nI hope this is a correct diagnosis of your problem.\n\nGood luck,\nLars\n\n \n> > copy the resulting libmodbus.a to /usr/local/lib or into this directory and adapt Makefile  \n> \n> Not sure where to find `libmodbus.a`. It's not in its expected place though:\n> \n> \tpi@uv:~/mbrtu $ make\n> \tcc -std=c99 -O3 -Wall -D_BSD_SOURCE -I/usr/local/include/modbus/ mbrtu.c -o mbrtu /usr/local/lib/libmodbus.a\n> \tcc: error: /usr/local/lib/libmodbus.a: No such file or directory\n> \tMakefile:8: recipe for target 'mbrtu' failed\n> \tmake: *** [mbrtu] Error 1\n> \n> I'm sure I'm doing something wrong- but not quite what exactly?\n> \n> \n> -- \n> You are receiving this because you are subscribed to this thread.\n> Reply to this email directly or view it on GitHub:\n> https://github.com/gitaeuber/mbrtu/issues/3\n\n\n-- \nSchöne Grüße\nLars Täuber\n"}}
{"actor":{"display_login":"gitaeuber"}}