2014-05-23 4 views
0

MIPS 플랫폼에서 Zeromq 라이브러리를 교차 컴파일하려고합니다. 버전 2.2, 3.2.4, 4.0.4를 사용해 보았지만 구성 검사를 통과하지 못했습니다.zeromq 라이브러리 교차 컴파일 구성 오류, 지원되지 않는 시스템 : elf

환경 변수, CC, CPP, CXX, LD, AR, RANLIB가 설정되었습니다. 2.6.31
GCC 버전 : 은 그 때 나는

리눅스 커널 ./configure를 --host = MIPS

실행 당신이 얻을 경우 4.3.3

checking dynamic linker characteristics... no 
checking how to hardcode library paths into programs... immediate 
checking whether the C compiler works... yes 
checking whether we are using Intel C compiler... no 
checking whether we are using Sun Studio C compiler... no 
checking whether we are using clang C compiler... no 
checking whether we are using gcc >= 4 C compiler... yes 
checking whether the C++ compiler works... yes 
checking whether we are using Intel C++ compiler... no 
checking whether we are using Sun Studio C++ compiler... no 
checking whether we are using clang C++ compiler... no 
checking whether we are using gcc >= 4 C++ compiler... yes 
checking whether to enable debugging information... no 
checking whether to enable code coverage... no 
checking for pthread_create in -lpthread... yes 
checking for clock_gettime in -lrt... yes 
configure: error: unsupported system: elf 

답변

0

먼저, epoll 파일을 사용하지 않도록 설정이 잘못

기능 구현되지 (epoll.cpp : 41)

중단됨

구성하기 전에

수출 CXXFLAGS = -DZMQ_FORCE_POLL

시작

./configure를 --host = MIPS-리눅스

사용하여 크로스 컴파일하기

make[1]: Leaving directory `/home/justinyu/Development/project/askey_cc/zeromq-3.2.4'                  
[email protected]:~/Development/project/askey_cc/zeromq-3.2.4$ make 
Making all in src 
make[1]: Entering directory `/home/justinyu/Development/project/askey_cc/zeromq-3.2.4/src' 
make all-am 
make[2]: Entering directory `/home/justinyu/Development/project/askey_cc/zeromq-3.2.4/src' 
    CXX libzmq_la-address.lo 
    CXX libzmq_la-clock.lo 
    CXX libzmq_la-ctx.lo 
In file included from ctx.hpp:31, 
       from ctx.cpp:32: 
array.hpp:142:41: error: macro "index" requires 2 arguments, but only 1 given 
In file included from ctx.hpp:31, 
       from ctx.cpp:32: 
array.hpp:142: error: function definition does not declare parameters 
make[2]: *** [libzmq_la-ctx.lo] Error 1 
make[2]: Leaving directory `/home/justinyu/Development/project/askey_cc/zeromq-3.2.4/src' 
make[1]: *** [all] Error 2 
make[1]: Leaving directory `/home/justinyu/Development/project/askey_cc/zeromq-3.2.4/src' 
make: *** [all-recursive] Error 1 

수정을 array.hpp에 몇 줄을 추가하여 당신이 만드는 입력 할 때 오류가있을 수 있습니다

#ifdef index 
#undef index 
#endif 

#ifndef __ZMQ_ARRAY_INCLUDED__ 
#define __ZMQ_ARRAY_INCLUDED__ 

#include <vector> 
#include <algorithm> 

namespace zmq 
{