c++ - PvApi for prosilica camera -


i using prosilica camera on mac os x 10.8.5. downloaded sdk mac os x. try execute examples on sdk got errors.

> make sample g++-4.2   -o3  -mmacosx-version-min=10.5 -i/usr/include -d_x64 -d_osx -wall -i../../inc-pc -d_reentrant  listcameras.cpp -o listcameras -lpthread -lz -bdynamic -lm -lc -l../../bin-pc/x64 -lpvapi make: g++-4.2: no such file or directory make: *** [sample] error 1 

but when run g++ -v on terminal got:

configured with: --prefix=/applications/xcode.app/contents/developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 apple llvm version 5.1 (clang-503.0.38) (based on llvm 3.4svn) target: x86_64-apple-darwin12.5.0 thread model: posix 

what error ? me please ?

to understand error open arch file , see error

g++-4.2   -o3  -mmacosx-version-min=10.5 -i/usr/include -d_x64 -d_osx -wall -i../../inc-pc -d_reentrant  listcameras.cpp -o listcameras -lpthread -lz -bdynamic -lm -lc -l../../bin-pc/x64 -lpvapi make: g++-4.2: no such file or directory 

it running fine up-to 24 line of arch file printing g++-$(ver) after not able link.

so guess try change arch file according directories part

## few locations inc_dir   = ../../inc-pc bin_dir   = ../../bin-pc/$(cpu) lib_dir   = ../../lib-pc/$(cpu) obj_dir   = ./obj/$(cpu) extra_lib = -lpthread -lz  

complete paths of directories.

or needs path libpvapi.a library can change following part directly :

## libs (shared/static) pvlib   = -l$(bin_dir) -lpvapi 

to

pvlib   = -l/fullpath -lpvapi 

by fullpath mean -l/home/username/folder1/.../ .


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -