Linux 64-bit support and a Work Around

73 views
Skip to first unread message

Kent Bowling

unread,
Apr 10, 2014, 12:21:22 PM4/10/14
to cmake-maven-...@googlegroups.com
First, I just want to say thanks for making this plugin. It's helping me out immensely and I appreciate your efforts.

I had some problems getting it to work on my Linux build, and finally realized it could be because I'm running 64-bit. I went into the target/dependency/cmake/bin directory and would try to run cmake manually and would always get a "file not found". I executed "file cmake" on the binary version in the previously mentioned directory and got: 

cmake: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.0.0, stripped

It's clear that the cmake being downloaded is a 32-bit version. In theory, I suppose it could download a 64-bit version of cmake. I'm not sure it's worth your effort honestly, as the workaround isn't too bad.

The obvious workaround in hindsight was simply installing the 32-bit libraries for my 64-bit machine ("sudo apt-get install ia32-libs"). Once I did that I got past the problem and was successfully building.

I'm mainly posting this in case anyone else runs into this problem and asking you to possibly consider the bitness of the machine when downloading cmake so that nobody else runs into this error. It's easy to work around, but it's possible someone might not realize the issue.

Thanks again,
Kent

Kevin S. Clarke

unread,
Apr 10, 2014, 12:49:05 PM4/10/14
to cmake-maven-...@googlegroups.com
I don't believe cmake provides a downloadable 64 bit version for
Linux: http://www.cmake.org/cmake/resources/software.html

Their argument is that the 32 bit version can be used to build 64 bit
programs and there is no performance benefit to offering a 64 bit
binary version:
http://www.cmake.org/pipermail/cmake/2010-May/036811.html

It's not something that is specific to cmake-maven-project, but I
wonder if some documentation on the cmake-maven-project would be
useful?

Kevin
> --
> You received this message because you are subscribed to the Google Groups
> "cmake-maven-project-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to cmake-maven-projec...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



--
"There are two kinds of people in this world: those who believe there
are two kinds of people in this world and those who know better."

Kent Bowling

unread,
Apr 10, 2014, 1:02:06 PM4/10/14
to cmake-maven-...@googlegroups.com
A documentation effort could have possibly saved me some time, but I have no idea where that should go (and whether I would have noticed it :)) Perhaps it could log something out when running on 64-bit and explain that it will be running a 32-bit version and the libraries need to be installed?

I didn't realize they don't release a 64-bit version. I definitely have a 64-bit version at /usr/bin/cmake, but obviously that's someone creating packages for Ubuntu (12.04 LTS in my case).

The annoying part of it was the simple "file not found". Did it not find the CMakeFiles? What file? It was frustrating for a bit and it had me confirming my paths for much longer than I'm willing to admit :).

-Kent

Mark Doyle

unread,
Oct 29, 2015, 8:26:00 AM10/29/15
to cmake-maven-project-users
Thanks for this, I was also confirming paths for far too long :)

Perhaps this is another use case for an option that lets the plugin use the cmake on the system PATH rather than downloading it's own binary.
Reply all
Reply to author
Forward
0 new messages