Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

cross-compile opencv for arm : c++: error: unrecognized command line option ‘-mthumb’; did you mean ‘-mtbm’?

Dear All,

I am trying to cross-compile opencv 4.0/3.4 for a Tinker Board - ARM-based processor — the Rockchip RK3288

I am using Ubuntu 18.04 as host machine.

I pretty much followed everything mentioned here.

But when I try the cmake using below:

mike@mike-laptop:~/opencv-3.4.5/build$ cmake -DCMAKE_TOOLCHAIN_FILE=../platforms/linux/arm-gnueabi.toolchain.cmake ../ I am getting the below error:

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: /usr/bin/c++ Build flags: -mthumb;;-fdata-sections;-Wa,--noexecstack;-fsigned-char;-Wno-psabi Id flags:

The output was: 1 c++: error: unrecognized command line option ‘-mthumb’; did you mean ‘-mtbm’?

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: /usr/bin/c++ Build flags: -mthumb;;-fdata-sections;-Wa,--noexecstack;-fsigned-char;-Wno-psabi Id flags: -c

The output was: 1 c++: error: unrecognized command line option ‘-mthumb’; did you mean ‘-mtbm’?

and tons of more messages

click to hide/show revision 2
merged revision

cross-compile opencv for arm : c++: error: unrecognized command line option ‘-mthumb’; did you mean ‘-mtbm’?

Dear All,

I am trying to cross-compile opencv 4.0/3.4 for a Tinker Board - ARM-based processor — the Rockchip RK3288

I am using Ubuntu 18.04 as host machine.

I pretty much followed everything mentioned here.

But when I try the cmake using below:

mike@mike-laptop:~/opencv-3.4.5/build$ cmake -DCMAKE_TOOLCHAIN_FILE=../platforms/linux/arm-gnueabi.toolchain.cmake ../ I am getting the below error:

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: /usr/bin/c++ Build flags: -mthumb;;-fdata-sections;-Wa,--noexecstack;-fsigned-char;-Wno-psabi Id flags:

The output was: 1 c++: error: unrecognized command line option ‘-mthumb’; did you mean ‘-mtbm’?

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: /usr/bin/c++ Build flags: -mthumb;;-fdata-sections;-Wa,--noexecstack;-fsigned-char;-Wno-psabi Id flags: -c

The output was: 1 c++: error: unrecognized command line option ‘-mthumb’; did you mean ‘-mtbm’?

and tons of more messages

Dear All,

I am trying to cross-compile opencv 4.0/3.4 for a Tinker Board - ARM-based processor — the Rockchip RK3288

I am using Ubuntu 18.04 as host machine.

I pretty much followed everything mentioned here.

But when I try the cmake using below:

mike@mike-laptop:~/opencv-3.4.5/build$ cmake -DCMAKE_TOOLCHAIN_FILE=../platforms/linux/arm-gnueabi.toolchain.cmake ../ I am getting the below error:

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: /usr/bin/c++ Build flags: -mthumb;;-fdata-sections;-Wa,--noexecstack;-fsigned-char;-Wno-psabi Id flags:

The output was: 1 c++: error: unrecognized command line option ‘-mthumb’; did you mean ‘-mtbm’?

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: /usr/bin/c++ Build flags: -mthumb;;-fdata-sections;-Wa,--noexecstack;-fsigned-char;-Wno-psabi Id flags: -c

The output was: 1 c++: error: unrecognized command line option ‘-mthumb’; did you mean ‘-mtbm’?

and tons of more messages

cross-compile opencv for arm : c++: error: unrecognized command line option ‘-mthumb’; did you mean ‘-mtbm’?

Dear All,

I am trying to cross-compile opencv 4.0/3.4 for a Tinker Board - ARM-based processor — the Rockchip RK3288

I am using Ubuntu 18.04 as host machine.

I pretty much followed everything mentioned here.

But when I try the cmake using below:

mike@mike-laptop:~/opencv-3.4.5/build$ cmake -DCMAKE_TOOLCHAIN_FILE=../platforms/linux/arm-gnueabi.toolchain.cmake ../ I am getting the below error:

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: /usr/bin/c++ Build flags: -mthumb;;-fdata-sections;-Wa,--noexecstack;-fsigned-char;-Wno-psabi Id flags:

The output was: 1 c++: error: unrecognized command line option ‘-mthumb’; did you mean ‘-mtbm’?

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: /usr/bin/c++ Build flags: -mthumb;;-fdata-sections;-Wa,--noexecstack;-fsigned-char;-Wno-psabi Id flags: -c

The output was: 1 c++: error: unrecognized command line option ‘-mthumb’; did you mean ‘-mtbm’?

and tons of more messages

Dear All,

I am trying to cross-compile opencv 4.0/3.4 for a Tinker Board - ARM-based processor — the Rockchip RK3288

I am using Ubuntu 18.04 as host machine.

I pretty much followed everything mentioned here.

But when I try the cmake using below:

mike@mike-laptop:~/opencv-3.4.5/build$ cmake -DCMAKE_TOOLCHAIN_FILE=../platforms/linux/arm-gnueabi.toolchain.cmake ../ I am getting the below error:

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: /usr/bin/c++ Build flags: -mthumb;;-fdata-sections;-Wa,--noexecstack;-fsigned-char;-Wno-psabi Id flags:

The output was: 1 c++: error: unrecognized command line option ‘-mthumb’; did you mean ‘-mtbm’?

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: /usr/bin/c++ Build flags: -mthumb;;-fdata-sections;-Wa,--noexecstack;-fsigned-char;-Wno-psabi Id flags: -c

The output was: 1 c++: error: unrecognized command line option ‘-mthumb’; did you mean ‘-mtbm’?

and tons of more messagesEDIT: Duplicate Question

cross-compile opencv for arm : c++: error: unrecognized command line option ‘-mthumb’; did you mean ‘-mtbm’?

Dear All,

I am trying to cross-compile opencv 4.0/3.4 for a Tinker Board - ARM-based processor — the Rockchip RK3288

I am using Ubuntu 18.04 as host machine.

I pretty much followed everything mentioned here.

But when I try the cmake using below:

mike@mike-laptop:~/opencv-3.4.5/build$ cmake -DCMAKE_TOOLCHAIN_FILE=../platforms/linux/arm-gnueabi.toolchain.cmake ../ I am getting the below error:

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: /usr/bin/c++ Build flags: -mthumb;;-fdata-sections;-Wa,--noexecstack;-fsigned-char;-Wno-psabi Id flags:

The output was: 1 c++: error: unrecognized command line option ‘-mthumb’; did you mean ‘-mtbm’?

Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: /usr/bin/c++ Build flags: -mthumb;;-fdata-sections;-Wa,--noexecstack;-fsigned-char;-Wno-psabi Id flags: -c

The output was: 1 c++: error: unrecognized command line option ‘-mthumb’; did you mean ‘-mtbm’?

and tons of more messages

EDIT: Duplicate Question