Home > Mobile >  [QT + Android] first Android program error: : 1: error: error: always find - lc++
[QT + Android] first Android program error: : 1: error: error: always find - lc++

Time:10-09




: 1: error: error: always find - lc++
: 1: error: would the command failed with exit code 1 (use the -v to see invocation)

Code is nothing, the first run to this wrong, he didn't seem to find any online related information, is the JDK, SDK version is not corresponding to the problem????

CodePudding user response:

You can consider this, just I modify the file name under Linux compiled a success

Download the latest version of the Android SDK + yesterday the NDK r20 + QT5.12.4

Compilation always prompt always find - a lc++

Turned out to be the NDK R18 to library after modified LN link name, and QT haven't make a corresponding change, led to can not find the corresponding library, R17 version is ok, so modify the library name is directed libc++ _shared. So the
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Copyright statement: this article to CSDN blogger (ant) streets of original articles, follow by CC 4.0 - sa the copyright agreement, reproduced and this statement, please attach the original source link
The original link: https://blog.csdn.net/X_Nazgul/article/details/93525780

CodePudding user response:

reference 1st floor vbcomtuper response:
you can consider this, just I modify the file name under Linux compiled a success

Download the latest version of the Android SDK + yesterday the NDK r20 + QT5.12.4

Compilation always prompt always find - a lc++

Turned out to be the NDK R18 to library after modified LN link name, and QT haven't make a corresponding change, led to can not find the corresponding library, R17 version is ok, so modify the library name is directed libc++ _shared. So the
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Copyright statement: this article to CSDN blogger (ant) streets of original articles, follow by CC 4.0 - sa the copyright agreement, reproduced and this statement, please attach the original source link
The original link: https://blog.csdn.net/X_Nazgul/article/details/93525780



Boy dull, also don't know how to change...
  •  Tags:  
  • Qt
  • Related