View Single Post
  #1   Spotlight this post!  
Unread 27-03-2016, 21:47
connor.worley's Avatar
connor.worley connor.worley is offline
Registered User
FRC #0973 (Greybots)
Team Role: Mentor
 
Join Date: Mar 2011
Rookie Year: 2010
Location: Berkeley/San Diego
Posts: 601
connor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond reputeconnor.worley has a reputation beyond repute
Issues with JNI .so for FRC

We are attempting to build a JNI shared library for use in our java code. We are using ant to build the library as follows:
Code:
  <target name="CowMXP_JNI-build">
      <echo>Building CowGyroJNI shared object for RoboRIO...</echo>
      <apply executable="/usr/local/bin/arm-frc-linux-gnueabi-g++">
      <arg value="-I${user.home}/wpilib/cpp/current/include"/>
          <arg value="-I${java.home}/../include"/>
          <arg value="-I${java.home}/../include/darwin"/>
          <arg value="-std=c++14"/>
          <arg value="-fPIC"/>
          <arg value="-shared"/>
          <arg value="-oCowMXP_JNI.so"/>
          <arg value="-Wl,--whole-archive"/>
          <arg value="-L${user.home}/wpilib/cpp/current/lib"/>
          <arg value="-lwpilib_nonshared"/>
          <arg value="-lntcore"/>
          <arg value="-lHALAthena"/>
          <arg value="-Wl,--no-whole-archive"/>
          <fileset dir="src/com/team1538/lib/c">
            <include name="*.cpp"/>
        </fileset>
      </apply>
  </target>
and running into an error resolving _ZN5nFPGA16nFRC_2016_16_1_020g_currentTargetClassE . Does anyone know what static library provides this? We are already using all static libraries available in wpilib/cpp/current/lib.
__________________
Team 973 (2016-???)
Team 5499 (2015-2016)
Team 254 (2014-2015)

Team 1538 (2011-2014)
2014 Driver (25W 17L 1T)
日本語でOK