Cmake project to Qt qmake project, problem with -msse3
I'm very new to Qt and Linux, but hopefully you could help to find a solution for the following problem.
I have a couple of complex Qt projects which are working fine. But now I want to use a CMake project (library for visual odometry) together with my other Qt projects (camera frame grabber, projects based on OpenCV...).
Therefore I used the following command to import all header and source files from the cmake project.
Then my .pro file looks like this:
@TEMPLATE = app
#DEPENDPATH += .
#INCLUDEPATH += .
added by me
QT += core
QT -= gui
TARGET = libvisoT
CONFIG += console
CONFIG -= app_bundle
HEADERS += filter.h
SOURCES += filter.cpp
When I Run the project I got lots of errors, like:
/usr/lib/gcc/i686-linux-gnu/4.6/include/emmintrin.h:32: error: #error "SSE2 instruction set not enabled"
/usr/lib/gcc/i686-linux-gnu/4.6/include/pmmintrin.h:32: error: #error "SSE3 instruction set not enabled"
This is the place where the error occures in the emmintrin.h file:
error "SSE2 instruction set not enabled"
I think thats because I haven't set the msse3 instruction, like it is done with the following code in the CMakeLists.txt file:
@# use sse3 instruction set
The whole CMakeLists.txt file:
cmake_minimum_required (VERSION 2.6)
set (LIBVISO2_SRC_DIR src)
use sse3 instruction set
FILE(GLOB LIBVISO2_SRC_FILES "src/*.cpp")
make release version
target_link_libraries (viso2 png)@
How can I give or set in Qt the following msse3 information from CMake?
Or how can I make a Qt project out of this CMake project?
Many thanks for any help!!!
bq. How can I give or set in Qt the following msse3 information from CMake?
QMAKE_CXXFLAGS += -msse3
Many Thanks!!! It worked!