2011-11-25 18 views
5

पर एंड्रॉयड के लिए बढ़ावा संकलन मैं बयान following articleगैर मान्यता प्राप्त आदेश पंक्ति विकल्प जबकि cygwin

की मदद से cygwin पर बढ़ावा संकलित करने के लिए कोशिश कर रहा हूँ लेकिन निम्नलिखित जब मैं भागा

bjam --without-python --without-serialization toolset=gcc-android4.4.3 link=static runtime-link=static target-os=linux --stagedir=android 

यह संकलन शुरू कर दिया लेकिन असफल होने के कारण निम्न त्रुटि:

cc1plus.exe: error: unrecognized command line option "-mthreads" 

मैं नवीनतम cygwin उपयोग कर रहा हूँ और 1.48.0

को बढ़ावा देने के

अगर कोई मुझे इस त्रुटि को हटाने के लिए संकेत दे सकता है तो मैं सराहना करता हूं।

अद्यतन:

मुझे समाधान मिला। बूस्ट ने माना कि सिगविन में मिंगडब्ल्यू जीसीसी कंपाइलर है, इसलिए यह कॉन्फ़िगरेशन फ़ाइल "gcc.jam" में विशेष विकल्प जोड़ा गया है जब मैंने विकल्प हटा दिया तो यह ठीक चला गया।

+0

आप जवाब और अपने खुद के सवाल को स्वीकार करने के लिए यह ठीक है पर निर्भर करता है। मुझे लगता है कि आपको स्टैक ओवरफ्लो करने से पहले कुछ समय इंतजार करना होगा। –

उत्तर

0

लघु

पास target-os=androidb2

को

स्पष्टीकरण मैं बूस्ट 1.59

अनुसार boost/tools/build/src/tools/gcc.jam लाइन के लिए एक ही मुद्दे का सामना करना पड़ 1024

rule setup-threading (targets * : sources * : properties *) 
{ 
    local threading = [ feature.get-values threading : $(properties) ] ; 
    if $(threading) = multi 
    { 
     local target = [ feature.get-values target-os : $(properties) ] ; 
     local option ; 
     local libs ; 

     switch $(target) 
     { 
      case android : # No threading options, everything is in already. 
      case windows : option = -mthreads ; 
      case cygwin : option = -mthreads ; 
      case solaris : option = -pthreads ; libs = rt ; 
      case beos : # No threading options. 
      case haiku : option = ; 
      case *bsd : option = -pthread ; # There is no -lrt on BSD. 
      case sgi  : # gcc on IRIX does not support multi-threading. 
      case darwin : # No threading options. 
      case *  : option = -pthread ; libs = rt ; 
     } 

     if $(option) 
     { 
      OPTIONS on $(targets) += $(option) ; 
     } 
     if $(libs) 
     { 
      FINDLIBS-SA on $(targets) += $(libs) ; 
     } 
    } 
} 

आप देख सकते हैं -mthreadstarget-os परम

संबंधित मुद्दे