[Rock-dev] Enable SSE2 typedefs (emmintrin.h)
Leif Christensen
leif.christensen at dfki.de
Wed May 2 19:09:56 CEST 2012
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
on my 32 bit ubuntu, the compilation of components, that include
libelas/elas.h fails, because the type __m128i is not declared.
elas.h includes the mmx extension header emmintrin.h, which checks for
the define __SSE2__ and only then declares __m128i and others.
On my machine (where /proc/cpuinfo has the sse2 flag), __SSE2__ is
only defined if I add -msse2 to my cxx flags.
I would suggest to use something like FindSSE.cmake (for example from
http://gitorious.org/vc/vc/blobs/master/cmake/FindSSE.cmake) to check
for SSE-extensions and then use SSEx_FOUND in the CMakeList.txt files
of packages that use libelas, e.g.
IF(SSE2_FOUND)
ADD_DEFINITIONS(-msse2)
ENDIF(SSE2_FOUND)
[...]
The only standard CMAKE_MODULE_PATH in rock seems to be
[...]/base/types/cmake, so we could put FindSSE.cmake there. There are
already other .cmake files, even though I don't know what they have to
do with base types.
Thoughts on that?
Regards,
Leif
- --
Leif Christensen
DFKI Bremen
Robotics Innovation Center
Robert-Hooke-Straße 5
28359 Bremen, Germany
Phone: +49 (0)421 17845-4149
Fax: +49 (0)421 17845-4150
E-Mail: leif.christensen at dfki.de
Weitere Informationen: http://www.dfki.de/robotik
-----------------------------------------------------------------------
Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH
Firmensitz: Trippstadter Straße 122, D-67663 Kaiserslautern
Geschaeftsfuehrung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster
(Vorsitzender) Dr. Walter Olthoff
Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes
Amtsgericht Kaiserslautern, HRB 2313
Sitz der Gesellschaft: Kaiserslautern (HRB 2313)
USt-Id.Nr.: DE 148646973
Steuernummer: 19/673/0060/3
-----------------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk+hamQACgkQgrIQzq7NbhEt8ACeNQsQWfGSgC5f33qENvLMGfwx
PPoAoLG8JQI7v7dlWOzgOFTew99pmIIa
=vwGH
-----END PGP SIGNATURE-----
More information about the Rock-dev
mailing list