$ make distclean $ ./configure CC=arm-linux-gnueabihf-gcc CXX=arm-linux-gnueabihf-g++ \ --host=arm-linux-gnueabihf --build=x86_64-linux-gnu --target=arm-linux-gnueabihf --disable-ipv6 \ ac_cv_file__dev_ptmx=yes ac_cv_file__dev_ptc=yes --prefix=$(TOOLS_TOP_DIR)/bin/ \ --with-openssl=$(TOOLS_TOP_DIR)/bin/ --enable-shared \ LDFLAGS="-L$(TOOLS_TOP_DIR)/bin/lib -I$(TOOLS_TOP_DIR)/bin/include -lffi -lz" \ CFLAGS="-L$(TOOLS_TOP_DIR)/bin/lib -I$(TOOLS_TOP_DIR)/bin/include" \ CPPFLAGS="-L$(TOOLS_TOP_DIR)/bin/lib -I$(TOOLS_TOP_DIR)/bin/include" \ CFLAGS="-L$(TOOLS_TOP_DIR)/bin/lib -I$(TOOLS_TOP_DIR)/bin/include" $ make -j16 # 编译完后提示 # Python build finished successfully! # The necessary bits to build these optional modules were not found: # _bz2 _curses _curses_panel # _dbm _gdbm _lzma # _sqlite3 _tkinter _uuid # readline # To find the necessary bits, look in setup.py in detect_modules() for the module's name. # # # The following modules found by detect_modules() in setup.py, have been # built by the Makefile instead, as configured by the Setup files: # _abc atexit pwd # time # 基本的模块都已经安装完毕 make install