{"action":"opened","issue":{"url":"https://api.github.com/repos/AravisProject/aravis/issues/89","repository_url":"https://api.github.com/repos/AravisProject/aravis","labels_url":"https://api.github.com/repos/AravisProject/aravis/issues/89/labels{/name}","comments_url":"https://api.github.com/repos/AravisProject/aravis/issues/89/comments","events_url":"https://api.github.com/repos/AravisProject/aravis/issues/89/events","html_url":"https://github.com/AravisProject/aravis/issues/89","id":245726824,"number":89,"title":"arv_buffer_get_data undefined reference?","user":{"login":"lionfish0","id":7914304,"avatar_url":"https://avatars2.githubusercontent.com/u/7914304?v=4","gravatar_id":"","url":"https://api.github.com/users/lionfish0","html_url":"https://github.com/lionfish0","followers_url":"https://api.github.com/users/lionfish0/followers","following_url":"https://api.github.com/users/lionfish0/following{/other_user}","gists_url":"https://api.github.com/users/lionfish0/gists{/gist_id}","starred_url":"https://api.github.com/users/lionfish0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lionfish0/subscriptions","organizations_url":"https://api.github.com/users/lionfish0/orgs","repos_url":"https://api.github.com/users/lionfish0/repos","events_url":"https://api.github.com/users/lionfish0/events{/privacy}","received_events_url":"https://api.github.com/users/lionfish0/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-07-26T13:44:11Z","updated_at":"2017-07-26T13:44:11Z","closed_at":null,"body":"Hi,\r\nI'm trying to modify the `arvcameratest.c` example to let us check the data from the camera makes sense. I've just changed the `new_buffer_cb` function (line 106) to include a call to `arv_buffer_get_data` (see below), however when I try to compile (by calling make at the command line) I get:\r\n\r\n```\r\npi@raspberrypi:~/aravis_2/tests $ make\r\n  CC       arvcameratest.o\r\n  CCLD     arv-camera-test\r\narvcameratest.o: In function `new_buffer_cb':\r\n/home/pi/aravis_2/tests/arvcameratest.c:116: undefined reference to `arv_buffer_get_data'\r\n```\r\n\r\nI'm not sure why that method is undefined, when other methods (also listed on the [library's reference manual](https://aravisproject.github.io/docs/aravis-0.4/ArvBuffer.html) are used in the code).\r\n\r\nThanks for any advice,\r\n\r\nModified code fragment:\r\n```\r\nstatic void\r\nnew_buffer_cb (ArvStream *stream, ApplicationData *data)\r\n{\r\n        ArvBuffer *buffer;\r\n        char *buffer_data;\r\n\r\n        buffer = arv_stream_try_pop_buffer (stream);\r\n        if (buffer != NULL) {\r\n                if (buffer->status == ARV_BUFFER_STATUS_SUCCESS)\r\n                        data->buffer_count++;\r\n                size_t size = 0;\r\n                buffer_data = (char *) arv_buffer_get_data (buffer, &size);\r\n                printf(\"%d\\n\",buffer_data[0]);\r\n                /* Image processing here */\r\n                arv_stream_push_buffer (stream, buffer);\r\n        } \r\n}\r\n```"}}
{"actor":{"display_login":"lionfish0"}}