python 三方包源码编译错误

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/lovingprince/article/details/7245878

在编译jpype   python setup.py build 时遇到如下错误:

4-2.4/src/native/python/jpype_javaarray.o
In file included from src/native/python/jpype_javaarray.cpp:18:
src/native/python/include/jpype_python.h:24:20: error: Python.h: No such file or directory
src/native/python/include/jpype_python.h:28:20: error: pyport.h: No such file or directory
In file included from src/native/python/include/jpype_python.h:109,
                 from src/native/python/jpype_javaarray.cpp:18:
src/native/python/include/py_monitor.h:20:20: error: object.h: No such file or directory
src/native/python/include/pythonenv.h:40: error: ISO C++ forbids declaration of 'PyObject' with no type
src/native/python/include/pythonenv.h:40: error: expected ';' before '*' token
src/native/python/include/pythonenv.h:43: error: ISO C++ forbids declaration of 'PyObject' with no type
src/native/python/include/pythonenv.h:43: error: expected ';' before '*' token
src/native/python/include/pythonenv.h:44: error: ISO C++ forbids declaration of 'PyObject' with no type
src/native/python/include/pythonenv.h:44: error: expected ';' before '*' token
src/native/python/include/pythonenv.h:61: error: 'PyObject' has not been declared
src/native/python/include/pythonenv.h:62: error: 'PyObject' has not been declared
src/native/python/include/pythonenv.h:62: error: 'PyObject' has not been declared
src/native/python/include/pythonenv.h: In static member function 'static void JPyErr::check()':
src/native/python/include/pythonenv.h:65: error: 'PyObject' was not declared in this scope
src/native/python/include/pythonenv.h:65: error: '__ex' was not declared in this scope
src/native/python/include/pythonenv.h:65: error: 'PyErr_Occurred' was not declared in this scope
src/native/python/include/pythonenv.h: At global scope:

整了半天才找到原因,原来是python 开发包没有安装

yum  install python-devel-2.4.3-44.el5

搞定。

小注:在编译jpype时,还需要设定JAVA_HOME环境变量。


展开阅读全文

android 源码编译错误

09-13

今天编译android源码ubuntu64位jdk1.6 3.1 遇到如下问题求解决阿大仙们?rnframeworks/base/media/libstagefright/VideoSourceDownSampler.cpp: In member function 'void android::VideoSourceDownSampler::downSampleYUVImage(const android::MediaBuffer&, android::MediaBuffer**) const':rnframeworks/base/media/libstagefright/VideoSourceDownSampler.cpp:90: warning: 'yuvFormat' may be used uninitialized in this functionrntarget thumb C++: libstagefright <= frameworks/base/media/libstagefright/DataSource.cpprnIn file included from frameworks/base/media/libstagefright/DataSource.cpp:20:rnframeworks/base/media/libstagefright/include/SuperExtractor.h:33:29: error: NVOMX_TrackList.h: No such file or directoryrnframeworks/base/media/libstagefright/include/SuperExtractor.h:34:36: error: NVOMX_ParserExtensions.h: No such file or directoryrnIn file included from frameworks/base/media/libstagefright/include/SuperExtractor.h:32,rn from frameworks/base/media/libstagefright/DataSource.cpp:20:rnframeworks/base/media/libstagefright/include/sfQueue.h:12: warning: 'typedef' was ignored in this declarationrnIn file included from frameworks/base/media/libstagefright/DataSource.cpp:20:rnframeworks/base/media/libstagefright/include/SuperExtractor.h:87: error: 'ENvxStreamType' does not name a typernframeworks/base/media/libstagefright/include/SuperExtractor.h:88: error: 'ENvxStreamType' does not name a typernframeworks/base/media/libstagefright/include/SuperExtractor.h:132: error: 'NvxTrackInfo' does not name a typernmake: *** [out/target/product/generic/obj/SHARED_LIBRARIES/libstagefright_intermediates/DataSource.o] 错误 1rnmake: *** 正在等待未完成的任务....rn 论坛

请教音频源码编译错误

01-13

编译一个源码,竟然出现了下面一大堆错误:rntcaptureeffect.h(65) : error C2143: syntax error : missing ';' before '*'rntcaptureeffect.h(65) : error C2501: 'IDirectSoundFullDuplex8' : missing storage-class or type specifiersrntcaptureeffect.h(65) : error C2501: 'm_hInterface' : missing storage-class or type specifiersrntcaptureeffect.h(66) : error C2143: syntax error : missing ';' before '*'rntcaptureeffect.h(66) : error C2501: 'IDirectSoundCaptureBuffer8' : missing storage-class or type specifiersrntcaptureeffect.h(66) : error C2501: 'm_hCapture' : missing storage-class or type specifiersrntcaptureeffect.h(67) : error C2143: syntax error : missing ';' before '*'rntcaptureeffect.h(67) : error C2501: 'IDirectSoundBuffer8' : missing storage-class or type specifiersrntcaptureeffect.h(67) : error C2501: 'm_hPlay' : missing storage-class or type specifiersrntcaptureeffect.h(69) : error C2146: syntax error : missing ';' before identifier 'm_pDS'rntcaptureeffect.h(69) : error C2501: 'LPDIRECTSOUND8' : missing storage-class or type specifiersrntcaptureeffect.h(69) : error C2501: 'm_pDS' : missing storage-class or type specifiersrntcaptureeffect.h(70) : error C2146: syntax error : missing ';' before identifier 'm_pDSCapture'rntcaptureeffect.h(70) : error C2501: 'LPDIRECTSOUNDCAPTURE8' : missing storage-class or type specifiersrntcaptureeffect.h(70) : error C2501: 'm_pDSCapture' : missing storage-class or type specifiersrntcaptureeffect.h(78) : error C2146: syntax error : missing ';' before identifier 'm_hEffectScript'rntcaptureeffect.h(78) : error C2501: 'DSCEFFECTDESC' : missing storage-class or type specifiersrntcaptureeffect.h(78) : error C2501: 'm_hEffectScript' : missing storage-class or type specifiersrntcaptureeffect.h(80) : error C2146: syntax error : missing ';' before identifier 'm_aecParam'rntcaptureeffect.h(80) : error C2501: 'DSCFXAec' : missing storage-class or type specifiersrntcaptureeffect.h(80) : error C2501: 'm_aecParam' : missing storage-class or type specifiersrntcaptureeffect.h(81) : error C2146: syntax error : missing ';' before identifier 'm_noiseParam'rntcaptureeffect.h(81) : error C2501: 'DSCFXNoiseSuppress' : missing storage-class or type specifiersrntcaptureeffect.h(81) : error C2501: 'm_noiseParam' : missing storage-class or type specifiersrninclude\aec2.23.h(70) : warning C4305: 'initializing' : truncation from 'const double' to 'const float'rnDSAudioManager.cpp(217) : error C2065: 'DSDEVID_DefaultPlayback' : undeclared identifierrnDSAudioManager.cpp(217) : error C2440: 'initializing' : cannot convert from 'int' to 'struct _GUID'rn No constructor could take the source type, or constructor overload resolution was ambiguousrnDSAudioManager.cpp(218) : error C2065: 'DSDEVID_DefaultCapture' : undeclared identifierrnDSAudioManager.cpp(218) : error C2440: 'initializing' : cannot convert from 'int' to 'struct _GUID'rn No constructor could take the source type, or constructor overload resolution was ambiguousrndsound.cpprndsound.cpp(46) : error C2199: syntax error : found 'HRESULT (' at global scope (was a declaration intended?)rndsound.cpp(55) : error C2199: syntax error : found 'HRESULT (' at global scope (was a declaration intended?)rndsound.cpp(57) : error C2199: syntax error : found 'HRESULT (' at global scope (was a declaration intended?)我 论坛

android4.0源码编译错误

12-20

ubuntu11.10,32位操作系统,编译源码的时候出现一下错误,求帮助。rnrnhost Executable: test-librsloader (out/host/linux-x86/obj/EXECUTABLES/test-librsloader_intermediates/test-librsloader)rnout/host/linux-x86/obj/STATIC_LIBRARIES/libLLVMSupport_intermediates/libLLVMSupport.a(Signals.o): In function `PrintStackTrace':rn/data/Android4.0SourceCode2/Android4.0SourceCode/external/llvm/lib/Support/Unix/Signals.inc:219: undefined reference to `dladdr'rn/data/Android4.0SourceCode2/Android4.0SourceCode/external/llvm/lib/Support/Unix/Signals.inc:231: undefined reference to `dladdr'rnout/host/linux-x86/obj/STATIC_LIBRARIES/libLLVMSupport_intermediates/libLLVMSupport.a(Threading.o): In function `llvm::llvm_execute_on_thread(void (*)(void*), void*, unsigned int)':rn/data/Android4.0SourceCode2/Android4.0SourceCode/external/llvm/lib/Support/Threading.cpp:96: undefined reference to `pthread_create'rn/data/Android4.0SourceCode2/Android4.0SourceCode/external/llvm/lib/Support/Threading.cpp:91: undefined reference to `pthread_attr_setstacksize'rn/data/Android4.0SourceCode2/Android4.0SourceCode/external/llvm/lib/Support/Threading.cpp:100: undefined reference to `pthread_join'rnout/host/linux-x86/obj/STATIC_LIBRARIES/libLLVMSupport_intermediates/libLLVMSupport.a(Mutex.o): In function `MutexImpl':rn/data/Android4.0SourceCode2/Android4.0SourceCode/external/llvm/lib/Support/Mutex.cpp:69: undefined reference to `pthread_mutexattr_init'rn/data/Android4.0SourceCode2/Android4.0SourceCode/external/llvm/lib/Support/Mutex.cpp:75: undefined reference to `pthread_mutexattr_settype'rn/data/Android4.0SourceCode2/Android4.0SourceCode/external/llvm/lib/Support/Mutex.cpp:80: undefined reference to `pthread_mutexattr_setpshared'rn/data/Android4.0SourceCode2/Android4.0SourceCode/external/llvm/lib/Support/Mutex.cpp:89: undefined reference to `pthread_mutexattr_destroy'rnout/host/linux-x86/obj/STATIC_LIBRARIES/libLLVMSupport_intermediates/libLLVMSupport.a(Mutex.o): In function `llvm::sys::MutexImpl::tryacquire()':rn/data/Android4.0SourceCode2/Android4.0SourceCode/external/llvm/lib/Support/Mutex.cpp:143: undefined reference to `pthread_mutex_trylock'rncollect2: ld 返回 1rnmake: *** [out/host/linux-x86/obj/EXECUTABLES/test-librsloader_intermediates/test-librsloader] 错误 1rn 论坛

没有更多推荐了,返回首页