robertknight/Qt-Inspector

cmake src

roydekleijn opened this issue · 2 comments

Hello,

I'm getting the following error:

MacBook-Pro:projects user$ cmake Qt-Inspector/
Building with Qt 4. Enable the USE_QT5 option to build with Qt 5
-- Could NOT find PROTOBUF (missing: PROTOBUF_LIBRARY PROTOBUF_INCLUDE_DIR)
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
PROTOBUF_INCLUDE_DIR (ADVANCED)
used as include directory in directory /Users/user/develop/projects/Qt-Inspector/lib
PROTOBUF_LIBRARY (ADVANCED)
linked by target "QtInspector" in directory /Users/user/develop/projects/Qt-Inspector/lib

-- Configuring incomplete, errors occurred!
See also "/Users/user/develop/projects/Qt-Inspector/CMakeFiles/CMakeOutput.log".
See also "/Users/user/develop/projects/Qt-Inspector/CMakeFiles/CMakeError.log".

What can I do to resolve this issue ?

Thanks,
Roy de Kleijn

Hello Roy,

You'll need to install the protocol buffers library. I believe the easiest way to do this on Mac would be to use Homebrew via brew install protobuf. See http://brewformulas.org/Protobuf

I get "Failed to start gdb helper to attach to 21762" if I try to attach QT inspector to a running process

entire log:
Local socket state changed QLocalSocket::ConnectingState
Local socket reported error QLocalSocket::ServerNotFoundError
Local socket state changed QLocalSocket::UnconnectedState
Failed to connect to local socket server in target process 54236
Failed to inject helper library into process
Failed to send top-level widget request fetch to child process

and if I do:
/Volumes/Cura - Ultimaker/Cura/Cura.app/Contents/MacOS/Cura -psn_0_12405716

The application starts but not the inspector.