Shauwe / typhoon-blade

Automatically exported from code.google.com/p/typhoon-blade
0 stars 1 forks source link

Examples can not been bladed~~~ #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
cd the directory example and run the command "blade build ...",
then I get this error message: 
Blade(info): loading BUILDs...
Blade(error): //proto:contact_proto: target //#:protobuf does not exists

I read the wiki and the blade.conf but I do not know how to fix the protobuf 
path yet!
I install the protobuf already and can complie the example of google protobuf 
with this command:
g++ -o test test.c first.pb.cc -lprotobuf -pthread

But the blade  just cann't  work! The configure  about protobuf is like this:
 19     proto_library_config(
 20     protoc='protoc',
 21     protobuf_libs=['#protobuf', '#glog', '#gflags', '#pthread'],
 22     protobuf_path='thirdparty',
 23     protobuf_include_path = 'thirdparty',
 24     )

When I delete this part from th blade.conf, it doesn't work yet!
My protobuf is installed in the default directory: /usr/local/

What's the problem about my configure file. Hope I have described my question 
clearly.
If you have any idea, I really appreciate to hear that! 
Thanks a lot!

Original issue reported on code.google.com by muyepiao...@gmail.com on 23 Aug 2012 at 2:56

GoogleCodeExporter commented 9 years ago
It is ok after adding the deps=['#protobuf','#pthread'] to the BUILD file in 
proto directory! 

Original comment by muyepiao...@gmail.com on 23 Aug 2012 at 3:31

GoogleCodeExporter commented 9 years ago
By the way, about the examples, gtest and protobuf are necessary!

You can install the gtest by this:
http://blog.csdn.net/chengwenyao18/article/details/7181514

and besides you should create the libgtest_main.a and gtest_main.o just like 
creating libgtest.a 

Original comment by muyepiao...@gmail.com on 23 Aug 2012 at 6:06

GoogleCodeExporter commented 9 years ago
it should be a bug,we will fix it asap. thank you!

Original comment by chen3feng on 24 Aug 2012 at 6:30

GoogleCodeExporter commented 9 years ago
This issue has been fixed.

Original comment by lapsa...@gmail.com on 25 Aug 2012 at 5:34

GoogleCodeExporter commented 9 years ago

Original comment by chen3feng on 29 Jan 2013 at 8:51