{"action":"created","issue":{"url":"https://api.github.com/repos/mumble-voip/mumble/issues/3135","repository_url":"https://api.github.com/repos/mumble-voip/mumble","labels_url":"https://api.github.com/repos/mumble-voip/mumble/issues/3135/labels{/name}","comments_url":"https://api.github.com/repos/mumble-voip/mumble/issues/3135/comments","events_url":"https://api.github.com/repos/mumble-voip/mumble/issues/3135/events","html_url":"https://github.com/mumble-voip/mumble/issues/3135","id":236673605,"number":3135,"title":"proto_path issues","user":{"login":"bashfulrobot","id":10782881,"avatar_url":"https://avatars2.githubusercontent.com/u/10782881?v=3","gravatar_id":"","url":"https://api.github.com/users/bashfulrobot","html_url":"https://github.com/bashfulrobot","followers_url":"https://api.github.com/users/bashfulrobot/followers","following_url":"https://api.github.com/users/bashfulrobot/following{/other_user}","gists_url":"https://api.github.com/users/bashfulrobot/gists{/gist_id}","starred_url":"https://api.github.com/users/bashfulrobot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bashfulrobot/subscriptions","organizations_url":"https://api.github.com/users/bashfulrobot/orgs","repos_url":"https://api.github.com/users/bashfulrobot/repos","events_url":"https://api.github.com/users/bashfulrobot/events{/privacy}","received_events_url":"https://api.github.com/users/bashfulrobot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-06-17T17:30:55Z","updated_at":"2017-06-17T17:49:25Z","closed_at":null,"body":"Hi there, working on a snap for Mumble and I have a few questions/issues regarding proto_path/protoc.\r\n\r\nMy build is essentially running the following command:\r\n\r\n```\r\ncd src/mumble/ && ( test -e Makefile || /usr/lib/x86_64-linux-gnu/qt5/bin/qmake /home/dustin/snapper-carr/snap-mumble/parts/mumble/src/src/mumble/mumble.pro 'CONFIG+=no-server -recursive' -o Makefile ) && make -f Makefile\r\n```\r\n\r\nI have a few warnings (snipped) such as (assuming they are ok since they are warnings):\r\n\r\n```\r\nWARNING: Failure to find: qt_cs.qm\r\nWARNING: Failure to find: qt_da.qm\r\n```\r\n\r\nI also have a few harder (snipped) such as:\r\n\r\n```\r\nRCC: Error in '../../../src/src/mumble/mumble.qrc': Cannot find file 'mumble_cs.qm'\r\nRCC: Error in '../../../src/src/mumble/mumble.qrc': Cannot find file 'mumble_da.qm'\r\nRCC: Error in '../../../src/src/mumble/mumble.qrc': Cannot find file 'mumble_de.qm'\r\n```\r\n\r\nBut where my build truly fails is:\r\n\r\n```\r\nmake[1]: Entering directory '/home/dustin/snapper-carr/snap-mumble/parts/mumble/build/src/mumble'\r\nmake -f Makefile.Release\r\nmake[2]: Entering directory '/home/dustin/snapper-carr/snap-mumble/parts/mumble/build/src/mumble'\r\nprotoc --cpp_out=. -I. -I.. ../../../src/src/Mumble.proto\r\n/usr/lib/x86_64-linux-gnu/qt5/bin/uic ../../../src/src/mumble/ConfigDialog.ui -o ui_ConfigDialog.h\r\n/usr/lib/x86_64-linux-gnu/qt5/bin/uic ../../../src/src/mumble/MainWindow.ui -o ui_MainWindow.h\r\n/usr/lib/x86_64-linux-gnu/qt5/bin/uic ../../../src/src/mumble/ConnectDialogEdit.ui -o ui_ConnectDialogEdit.h\r\n../../../src/src/Mumble.proto: File does not reside within any path specified using --proto_path (or -I).  You must specify a --proto_path which encompasses this file.  Note that the proto_path must be an exact prefix of the .proto file names -- protoc is too dumb to figure out when two paths (e.g. absolute and relative) are equivalent (it's harder than you think).\r\nMakefile.Release:636: recipe for target 'Mumble.pb.cc' failed\r\nmake[2]: *** [Mumble.pb.cc] Error 1\r\n```\r\n\r\nI can see that you have the path specified :\r\n```\r\nmake[2]: Entering directory '/home/dustin/snapper-carr/snap-mumble/parts/mumble/build/src/mumble'\r\nprotoc --cpp_out=. -I. -I.. ../../../src/src/Mumble.proto\r\n```\r\nBased on being in the `home/dustin/snapper-carr/snap-mumble/parts/mumble/build/src/mumble` directory, I followed the `../../../src/src/Mumble.proto` path, and confirmed that the file is there (it is). Now I also noticed that in `--cpp_out=. -I. -I.. ../../../src/src/Mumble.proto` there is no `-I` preceding the `../../../src/src/Mumble.proto`.\r\n\r\nShould there be?\r\n"},"comment":{"url":"https://api.github.com/repos/mumble-voip/mumble/issues/comments/309229932","html_url":"https://github.com/mumble-voip/mumble/issues/3135#issuecomment-309229932","issue_url":"https://api.github.com/repos/mumble-voip/mumble/issues/3135","id":309229932,"user":{"login":"mkrautz","id":36527,"avatar_url":"https://avatars3.githubusercontent.com/u/36527?v=3","gravatar_id":"","url":"https://api.github.com/users/mkrautz","html_url":"https://github.com/mkrautz","followers_url":"https://api.github.com/users/mkrautz/followers","following_url":"https://api.github.com/users/mkrautz/following{/other_user}","gists_url":"https://api.github.com/users/mkrautz/gists{/gist_id}","starred_url":"https://api.github.com/users/mkrautz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkrautz/subscriptions","organizations_url":"https://api.github.com/users/mkrautz/orgs","repos_url":"https://api.github.com/users/mkrautz/repos","events_url":"https://api.github.com/users/mkrautz/events{/privacy}","received_events_url":"https://api.github.com/users/mkrautz/received_events","type":"User","site_admin":false},"created_at":"2017-06-17T17:49:25Z","updated_at":"2017-06-17T17:49:25Z","body":"Possibly unrelated to the error you're getting, but: are you trying to build 1.2.x with Qt 5? That's not possible."}}
{"actor":{"display_login":"mkrautz"}}