Comments (19)
what command you enter to compile?
from protobuf-objc.
Thank you for taking the time!
i am trying to run protocol buffers on iphone, when i type the protoc command in my Terminal i got a error, such as:
My command: protoc person.proto --objc_out="./"
and the error message is :
protoc-gen-objc: program not found or is not executable
–objc_out: protoc-gen-objc: Plugin failed with status code 1.
I'm installed proto step by step https://github.com/alexeyxo/protobuf-objc.
from protobuf-objc.
Try:
which protoc-gen-objc
Give me please the log to the following commands:
./configure
make
make install
from protobuf-objc.
I am try 'protoc-gen-objc', Without success:
command> protoc-gen-objc person.proto --objc_out="./"
error:
-bash: protoc-gen-objc: command not found
from protobuf-objc.
./configure:
checking build system type... x86_64-apple-darwin14.0.0
checking host system type... x86_64-apple-darwin14.0.0
checking target system type... x86_64-apple-darwin14.0.0
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking C++ compiler flags...... use default: -g -O2 -DNDEBUG
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm
checking the name lister (/usr/bin/nm) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 196608
checking how to convert x86_64-apple-darwin14.0.0 file names to x86_64-apple-darwin14.0.0 format... func_convert_file_noop
checking how to convert x86_64-apple-darwin14.0.0 file names to toolchain format... func_convert_file_noop
checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld option to reload object files... -r
checking for objdump... no
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @file support... no
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for dsymutil... dsymutil
checking for nmedit... nmedit
checking for lipo... lipo
checking for otool... otool
checking for otool64... no
checking for -single_module linker flag... yes
checking for -exported_symbols_list linker flag... yes
checking for -force_load linker flag... yes
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking for gcc option to produce PIC... -fno-common -DPIC
checking if gcc PIC flag -fno-common -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin14.0.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no
checking whether the g++ linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fno-common -DPIC
checking if g++ PIC flag -fno-common -DPIC works... yes
checking if g++ static flag -static works... no
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... darwin14.0.0 dyld
checking how to hardcode library paths into programs... immediate
checking for ANSI C header files... (cached) yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for inttypes.h... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for stdlib.h... (cached) yes
checking for unistd.h... (cached) yes
checking for working memcmp... yes
checking for working strtod... yes
checking for ftruncate... yes
checking for memset... yes
checking for mkdir... yes
checking for strchr... yes
checking for strerror... yes
checking for strtol... yes
checking google/protobuf/stubs/common.h usability... no
checking google/protobuf/stubs/common.h presence... no
checking for google/protobuf/stubs/common.h... no
configure: error:
ERROR: protobuf headers are required.
You must either install protobuf from google,
or if you have it installed in a custom location
you must add '-Iincludedir' to CXXFLAGS
and '-Llibdir' to LDFLAGS.
If you did not specify a prefix when installing
protobuf, try
'./configure CXXFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib'
In some 64-bit environments, try LDFLAGS=-L/usr/local/lib64.
from protobuf-objc.
'make' not success:
make: *** No targets specified and no makefile found. Stop.
from protobuf-objc.
You have a compile errors.
Look this https://code.google.com/p/protobuf-c/issues/detail?id=88
from protobuf-objc.
You should reinstall original Google Protocol Buffers
from protobuf-objc.
The original Google Protocol Buffers can compile .proto file to .h, .m ?
from protobuf-objc.
I am reinstalled Google Protocol Buffers form https://github.com/google/protobuf, but it not working.
from protobuf-objc.
The current version of protobuf-objc can compatible be with Google Protocol Buffers 2.6.1?
from protobuf-objc.
The current version supports PB 2.6.1
from protobuf-objc.
Hi, alexeyxo:
I'm reinstalled Google Protocol Buffers:
download URL: https://github.com/google/protobuf
Open a Terminal
Navigate to the protocol buffers directory (protobuf-2.6.1)
Type ./configure and press return
Type make and press return
Type make check to see if it installed correctly
Type make install to install the programs
have no error.
Install protobuf-objc:
Navigate to the protocol buffers directory(protobuf-objc):
./build.sh
and i got the error:
configure: error:
ERROR: protobuf headers are required.
You must either install protobuf from google,
or if you have it installed in a custom location
you must add '-Iincludedir' to CXXFLAGS
and '-Llibdir' to LDFLAGS.
OMG, I'm going crazy. help!!
from protobuf-objc.
Development environment:
OSX Yosemite 10.10.1(iMac)
from protobuf-objc.
try this:
./configure CXXFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib
or
./configure CXXFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib64
make && make install
After than will be ok
from protobuf-objc.
Got it?
from protobuf-objc.
sorry,i am in vocation
from protobuf-objc.
It works, thanks.
from protobuf-objc.
i try './configure CXXFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib';but it's also hanpen this error;how to solve this problem?
from protobuf-objc.
Related Issues (20)
- Fail to build - newer version of protoc HOT 2
- Build Fail #import <ProtocolBuffers/ProtocolBuffers.h> Not Found HOT 3
- Encode Delimited HOT 1
- Bug feedback
- Did this has the Nano version? thks HOT 1
- Zombie object HOT 1
- Pod version must be 3 numbers long
- Duplicate symbol cause clang error HOT 2
- How to get extentions HOT 1
- InvalidProtocolBuffer thrown when serialising array data
- Are packages and options available? HOT 8
- objectivec-descriptor.proto incorrect import
- "repeated" fields with 0 elements should produce empty NSArray, not nil
- Runtime is too old.
- When I. / scripts/build.sh, this error occurred HOT 1
- Can't build protobuf-objc compiler HOT 1
- fatal error: too many errors emitted, stopping now [-ferror-limit=]
- your protobuf version is too old!!!!!!
- case sensitive in import protobuf header file
- <!-- This is the repository for IPython command line, if you can try to make sure this question/bug/feature belong here and not on one of the Jupyter repositories. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from protobuf-objc.