Results 1 to 3 of 3

Thread: linking a google protobuf file and a QT file

  1. #1
    Join Date
    Jun 2010
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default linking a google protobuf file and a QT file

    Hi,

    I have written a QT program that has roughly 30 files (headers and cpp files). I needed to send data using UDP and so I chose protobuf to serialize the data.

    I am using qmake to generate the makefile. On doing so I get a errors for all the function in the *.pb.cc file generated by protoc. For other applications if I write the makefile on my own it works fine but I want to use qmake to generate the Makefile. I am guessing that I am not being able to add the cflags or lflags properly.

    I know it is a very small problem and I am making some silly mistake.

    Can some one help please.

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: linking a google protobuf file and a QT file

    Can you please post the contents of your .pro file?

  3. #3
    Join Date
    Jun 2010
    Posts
    2
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: linking a google protobuf file and a QT file

    without protobuf file which is "../vision/sujeeth_vision_data.pb.h" it works fine


    ################################################## ####################
    # Automatically generated by qmake (2.01a) Tue Jun 29 17:10:54 2010
    ################################################## ####################

    TEMPLATE = app
    TARGET =
    DEPENDPATH += .
    INCLUDEPATH += .
    LIB += -L/usr/local/lib -lprotobuf -lz

    # Input
    HEADERS += ../modules/standardModule.h \
    ../modules/visionModule.h \
    ../world/world.h \
    ../utils/geometry.h \
    ../world/robot.h \
    ../world/football.h \
    ../simulator/phySim.h \
    ../params/ground_det.h \
    ../params/gamePlay.h \
    ../simulator/collision.h \
    ../utils/timer/timer.h \
    ../info/condition.h \
    ../control/controlData.h \
    ../dataStructures/destination.h \
    ../vision/cameraData.h \
    ../networking/udp_receiver.h \
    ../vision/sujeeth_vision_data.pb.h \
    ../modules/strategyModule.h \
    ../strategy/plays/allPlays.h \
    ../strategy/plays/play.h \
    ../strategy/plays/try_play.h \
    ../strategy/skills/allSkills.h \
    ../strategy/skills/skill.h \
    ../strategy/skills/tryskill.h \
    ../strategy/skills/moveToBall.h \
    ../strategy/skills/minAngleGoalie.h \
    ../strategy/skills/minAngleDefender.h \
    ../strategy/skills/minAngleDefender2.h \
    ../strategy/skills/biggestNoShadowOponent.h \
    ../strategy/skills/rotateToGoal.h \
    ../modules/controlModule.h \
    ../control/tree.h \
    ../control/rrt.h \
    ../control/pc_uart.h \
    ../control/send_robot.h \
    ../networking/network_utils.h
    SOURCES += main.cpp \
    ../modules/standardModule.cpp \
    ../modules/visionModule.cpp \
    ../world/world.cpp \
    ../utils/geometry.cpp \
    ../world/robot.cpp \
    ../world/football.cpp \
    ../simulator/phySim.cpp \
    ../simulator/collision.cpp \
    ../utils/timer/timer.cpp \
    ../info/condition.cpp \
    ../control/controlData.cpp \
    ../dataStructures/destination.cpp \
    ../vision/cameraData.cpp \
    ../networking/udp_receiver.cpp \
    ../vision/sujeeth_vision_data.pb.cc \
    ../modules/strategyModule.cpp \
    ../strategy/plays/play.cpp \
    ../strategy/plays/try_play.cpp \
    ../strategy/skills/skill.cpp \
    ../strategy/skills/tryskill.cpp \
    ../strategy/skills/moveToBall.cpp \
    ../strategy/skills/minAngleGoalie.cpp \
    ../strategy/skills/minAngleDefender.cpp \
    ../strategy/skills/minAngleDefender2.cpp \
    ../strategy/skills/biggestNoShadowOponent.cpp \
    ../strategy/skills/rotateToGoal.cpp \
    ../modules/controlModule.cpp \
    ../control/rrt.cpp \
    ../control/pc_uart.cpp \
    ../control/send_robot.cpp \
    ../networking/network_utils.cpp

Similar Threads

  1. Replies: 4
    Last Post: 9th May 2010, 16:18
  2. Linking with dbf file
    By prasenjit in forum Qt Programming
    Replies: 3
    Last Post: 13th January 2010, 12:21
  3. Replies: 3
    Last Post: 28th March 2009, 15:37
  4. Replies: 0
    Last Post: 6th March 2009, 08:19
  5. Replies: 3
    Last Post: 25th May 2007, 07:49

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.