-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build error on OS X Lion #3
Comments
Updated to Python 2.7.3: running install |
Should be fixed in master
|
I pulled the latest version of master and tried again. I got the same result as in the comment, but not the original issue above it. I 'brew rm CImg' and 'brew install CImg' to try to get a more recent version. Still have the same issue. Do I need to be on a newer CImg? I have CImg 1.4.9. Should I update my brew formula for CImg to point to the latest? |
Please post the build log. |
Python 2.7.3, latest py-phash, CImg 1.4.9
Python 2.7.3, latest py-phash, CImg 1.5.0
|
So this is resolved, I guess? |
Seems to be. Should there be a list of dependencies listing CImg >= 1.5.0? |
Hello, I'm getting the following build error on OS X Lion 10.7.4, Python 2.7.1. Any ideas?
$ python setup.py install
running install
running build
running build_ext
building 'pHash' extension
llvm-gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict
-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototyp
es -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -ar
ch i386 -arch x86_64 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/inclu
de/python2.7 -c phashmodule.C -o build/temp.macosx-10.7-intel-2.7/phashmodule.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not
for C++
phashmodule.C:40: warning: deprecated conversion from string constant to 'char_'
phashmodule.C:40: warning: deprecated conversion from string constant to 'char_'
phashmodule.C:40: warning: deprecated conversion from string constant to 'char_'
phashmodule.C:40: warning: deprecated conversion from string constant to 'char_'
phashmodule.C:40: warning: deprecated conversion from string constant to 'char_'
phashmodule.C:40: warning: deprecated conversion from string constant to 'char_'
phashmodule.C: In function 'void initpHash()':
phashmodule.C:51: warning: deprecated conversion from string constant to 'char_'
phashmodule.C:58: error: expected primary-expression before '{' token
phashmodule.C:58: error: expected
;' before '{' token phashmodule.C:45: warning: unused variable 'coeffs' phashmodule.C: In function 'PyObject_ phash_image_digest(PyObject_, PyObject_)': phashmodule.C:86: warning: unused variable 'coeff' /usr/local/include/pHash.h: At global scope: /usr/local/include/pHash.h:326: warning: 'cimg_library::CImg<float>\* ph_dct_matrix(int)' de clared 'static' but never defined /usr/local/include/pHash.h:341: warning: 'cimg_library::CImgList<unsigned char>\* ph_getKeyF ramesFromVideo(const char_)' declared 'static' but never defined /usr/local/include/pHash.h:452: warning: 'MVPRetCode _ph_query_mvptree(MVPFile_, DP_, int, float, float, DP__, int&, int)' declared 'static' but never defined /usr/local/include/pHash.h:473: warning: 'MVPRetCode _ph_save_mvptree(MVPFile_, DP**, int, int, int, FileIndex_)' declared 'static' but never defined /usr/local/include/pHash.h:490: warning: 'MVPRetCode _ph_add_mvptree(MVPFile_, DP_, int)' d eclared 'static' but never defined cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++ phashmodule.C:40: warning: deprecated conversion from string constant to 'char_' phashmodule.C:40: warning: deprecated conversion from string constant to 'char_' phashmodule.C:40: warning: deprecated conversion from string constant to 'char_' phashmodule.C:40: warning: deprecated conversion from string constant to 'char_' phashmodule.C:40: warning: deprecated conversion from string constant to 'char_' phashmodule.C:40: warning: deprecated conversion from string constant to 'char_' phashmodule.C: In function 'void initpHash()': phashmodule.C:51: warning: deprecated conversion from string constant to 'char_' phashmodule.C:58: error: expected primary-expression before '{' token phashmodule.C:58: error: expected
;' before '{' tokenphashmodule.C:45: warning: unused variable 'coeffs'
phashmodule.C: In function 'PyObject* phash_image_digest(PyObject_, PyObject_)':
phashmodule.C:86: warning: unused variable 'coeff'
/usr/local/include/pHash.h: At global scope:
/usr/local/include/pHash.h:326: warning: 'cimg_library::CImg* ph_dct_matrix(int)' de
clared 'static' but never defined
/usr/local/include/pHash.h:341: warning: 'cimg_library::CImgList* ph_getKeyF
ramesFromVideo(const char_)' declared 'static' but never defined
/usr/local/include/pHash.h:452: warning: 'MVPRetCode ph_query_mvptree(MVPFile, DP*, int,
float, float, DP**, int&, int)' declared 'static' but never defined
/usr/local/include/pHash.h:473: warning: 'MVPRetCode ph_save_mvptree(MVPFile, DP__, int,
int, int, FileIndex_)' declared 'static' but never defined
/usr/local/include/pHash.h:490: warning: 'MVPRetCode ph_add_mvptree(MVPFile, DP_, int)' d
eclared 'static' but never defined
lipo: can't open input file: /var/folders/gx/2c9g2zn92v5_vqxkqf0np7fr0000gn/T//ccgL1lfm.out
(No such file or directory)
error: command 'llvm-gcc-4.2' failed with exit status 1
The text was updated successfully, but these errors were encountered: