I am using qmake to generate my Makefile.

I have written a .proto file and I am using it for sending data over
network using UDP. The code works fine when i write my own makefile.

all : listen

proto_message : sujeeth_vision_data.proto
        protoc -I=. --cpp_out=. sujeeth_vision_data.proto

listen : listener.cpp proto_message sujeeth_vision_data.proto
udp_receiver.h
        pkg-config --cflags protobuf
        g++ listener.cpp sujeeth_vision_data.pb.cc udp_receiver.cpp -o listen
`pkg-config --cflags --libs protobuf`

My final program has a lot of files and it is not feasible to write
the makefile on my own and so I am using qmake.

But when I  run qmake -project , qmake and then make i get loads of
errors. I guess I am not setting the path to the protobuf library. Can
someone please tell me the changes that I need to make in my project
or makefile generated by qmake to solve the problem.

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to