{"action":"created","issue":{"url":"https://api.github.com/repos/ApolloAuto/apollo/issues/4846","repository_url":"https://api.github.com/repos/ApolloAuto/apollo","labels_url":"https://api.github.com/repos/ApolloAuto/apollo/issues/4846/labels{/name}","comments_url":"https://api.github.com/repos/ApolloAuto/apollo/issues/4846/comments","events_url":"https://api.github.com/repos/ApolloAuto/apollo/issues/4846/events","html_url":"https://github.com/ApolloAuto/apollo/issues/4846","id":338807687,"node_id":"MDU6SXNzdWUzMzg4MDc2ODc=","number":4846,"title":"关于新的CAN卡的添加——如何将新的CAN卡头文件（二次开发函数加入到apollo）","user":{"login":"linpanusst","id":37352923,"node_id":"MDQ6VXNlcjM3MzUyOTIz","avatar_url":"https://avatars2.githubusercontent.com/u/37352923?v=4","gravatar_id":"","url":"https://api.github.com/users/linpanusst","html_url":"https://github.com/linpanusst","followers_url":"https://api.github.com/users/linpanusst/followers","following_url":"https://api.github.com/users/linpanusst/following{/other_user}","gists_url":"https://api.github.com/users/linpanusst/gists{/gist_id}","starred_url":"https://api.github.com/users/linpanusst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linpanusst/subscriptions","organizations_url":"https://api.github.com/users/linpanusst/orgs","repos_url":"https://api.github.com/users/linpanusst/repos","events_url":"https://api.github.com/users/linpanusst/events{/privacy}","received_events_url":"https://api.github.com/users/linpanusst/received_events","type":"User","site_admin":false},"labels":[{"id":867450511,"node_id":"MDU6TGFiZWw4Njc0NTA1MTE=","url":"https://api.github.com/repos/ApolloAuto/apollo/labels/Module:%20Canbus","name":"Module: Canbus","color":"c5def5","default":false}],"state":"open","locked":false,"assignee":{"login":"Capri2014","id":4761061,"node_id":"MDQ6VXNlcjQ3NjEwNjE=","avatar_url":"https://avatars1.githubusercontent.com/u/4761061?v=4","gravatar_id":"","url":"https://api.github.com/users/Capri2014","html_url":"https://github.com/Capri2014","followers_url":"https://api.github.com/users/Capri2014/followers","following_url":"https://api.github.com/users/Capri2014/following{/other_user}","gists_url":"https://api.github.com/users/Capri2014/gists{/gist_id}","starred_url":"https://api.github.com/users/Capri2014/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Capri2014/subscriptions","organizations_url":"https://api.github.com/users/Capri2014/orgs","repos_url":"https://api.github.com/users/Capri2014/repos","events_url":"https://api.github.com/users/Capri2014/events{/privacy}","received_events_url":"https://api.github.com/users/Capri2014/received_events","type":"User","site_admin":false},"assignees":[{"login":"Capri2014","id":4761061,"node_id":"MDQ6VXNlcjQ3NjEwNjE=","avatar_url":"https://avatars1.githubusercontent.com/u/4761061?v=4","gravatar_id":"","url":"https://api.github.com/users/Capri2014","html_url":"https://github.com/Capri2014","followers_url":"https://api.github.com/users/Capri2014/followers","following_url":"https://api.github.com/users/Capri2014/following{/other_user}","gists_url":"https://api.github.com/users/Capri2014/gists{/gist_id}","starred_url":"https://api.github.com/users/Capri2014/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Capri2014/subscriptions","organizations_url":"https://api.github.com/users/Capri2014/orgs","repos_url":"https://api.github.com/users/Capri2014/repos","events_url":"https://api.github.com/users/Capri2014/events{/privacy}","received_events_url":"https://api.github.com/users/Capri2014/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-07-06T05:13:48Z","updated_at":"2018-07-20T08:40:06Z","closed_at":null,"author_association":"NONE","body":"查看了apollo的框架，没有找到ntcan.h，遂猜想此头文件是添加到其他路径下了，不在主代码里面。那么问题来了，我应该如何添加其他的CAN卡信息？"},"comment":{"url":"https://api.github.com/repos/ApolloAuto/apollo/issues/comments/406530967","html_url":"https://github.com/ApolloAuto/apollo/issues/4846#issuecomment-406530967","issue_url":"https://api.github.com/repos/ApolloAuto/apollo/issues/4846","id":406530967,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNjUzMDk2Nw==","user":{"login":"linpanusst","id":37352923,"node_id":"MDQ6VXNlcjM3MzUyOTIz","avatar_url":"https://avatars2.githubusercontent.com/u/37352923?v=4","gravatar_id":"","url":"https://api.github.com/users/linpanusst","html_url":"https://github.com/linpanusst","followers_url":"https://api.github.com/users/linpanusst/followers","following_url":"https://api.github.com/users/linpanusst/following{/other_user}","gists_url":"https://api.github.com/users/linpanusst/gists{/gist_id}","starred_url":"https://api.github.com/users/linpanusst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linpanusst/subscriptions","organizations_url":"https://api.github.com/users/linpanusst/orgs","repos_url":"https://api.github.com/users/linpanusst/repos","events_url":"https://api.github.com/users/linpanusst/events{/privacy}","received_events_url":"https://api.github.com/users/linpanusst/received_events","type":"User","site_admin":false},"created_at":"2018-07-20T08:40:06Z","updated_at":"2018-07-20T08:40:06Z","author_association":"NONE","body":"I have solve this problem. I need to add the ***.so in BUILD. For example:\r\nin the folder of   apollo/modules/drivers/canbus/can_client/ . and in the file : BUILD \r\nadd  code like this:\r\n`cc_library(\r\n    name = \"usb_can_client\",\r\n    srcs = [\r\n        \"usb_can_client.cc\",\r\n        \"lib/libcontrolcan.so\",\r\n    ],\r\n    hdrs = [\r\n        \"usb_can_client.h\",\r\n        \"usbcan.h\",\r\n        \"controlcan.h\",\r\n    ],\r\n    deps = [\r\n        \"//modules/drivers/canbus/can_client\",\r\n    ],\r\n)`\r\nthe most important thing is the ***.so file. \r\nif you have problems, leave the massage. \r\n"}}
{"actor":{"display_login":"linpanusst"}}