lcm-proj / lcm

Lightweight Communications and Marshalling
GNU Lesser General Public License v2.1
991 stars 392 forks source link

Make warning/error source and target option no longer supported #221

Open jaguardo opened 6 years ago

jaguardo commented 6 years ago

followed directions from: http://lcm-proj.github.io/index.html

git clone https://github.com/lcm-proj/lcm lcm
cd lcm
 ./bootstrap.sh
./configure
make 

I get the following warning during the make command: warning: [options] bootstrap class path not set in conjunction with -source 5 and these errors:

error: Source option 5 is no longer supported. Use 6 or later.
error: Target option 1.5 is no longer supported. Use 1.6 or later.
make[1]: *** [classnoinst.stamp] Error 2
make: *** [all-recursive] Error 1

java -version output:

java version "10" 2018-03-20
Java(TM) SE Runtime Environment 18.3 (build 10+46)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10+46, mixed mode)

seems to be a remanent of issue #103

jaguardo commented 6 years ago

I used jenv to make use of a older version of java, and set it to java 6:

$ java -version
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-468)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-468, mixed mode)

same error results.

jaguardo commented 6 years ago

As posted in the other issue, switching to v1.3-lts still solve this... I thought it would have been incorporated into the main branch by now.

tprk77 commented 6 years ago

The bug here is the build instructions are out of date, and still refer to the old Autoconf and Automake build. The LCM project has since switched to CMake. (But the v1.3-lts version is still using the old build, so the instructions will work for that.)

The new build instructions are something like:

~/lcm$ mkdir build && cd build
~/lcm/build$ cmake ..
~/lcm/build$ make