Code Monkey home page Code Monkey logo

Comments (5)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 28, 2024
This seems to be an issue with the order of link arguments. Putting 
"-lbluetooth" further down in build.xml resolves this issue.

Original comment by [email protected] on 23 May 2014 at 10:14

from bluecove.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 28, 2024
I encountered the same problem and what u suggest "Putting -bluetooth further 
down" cannot resolve the problem.

Original comment by [email protected] on 24 May 2014 at 10:11

from bluecove.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 28, 2024
I had the same issue. Putting -L<lib path> -lbluetooth arguments last when 
linking solved the problem (using custom makefile to build the lib).

Original comment by [email protected] on 1 Sep 2014 at 9:54

from bluecove.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 28, 2024
Even after moving the parameter to the end, I still get this:

compile-native-lib:
     [echo] compiling  .c -> .o
    [apply] /home/inventmarine/bluecove/bluecove-gpl-2.1.0/src/main/c/BlueCoveBlueZ_SDPServer.c: In function ‘bluecove_sdp_extract_pdu’:
    [apply] /home/inventmarine/bluecove/bluecove-gpl-2.1.0/src/main/c/BlueCoveBlueZ_SDPServer.c:94:47: warning: assignment from incompatible pointer type [enabled by default]
     [echo] linking    .o -> libbluecove_arm.so
     [echo] ldd libbluecove_arm.so
     [exec]     libbluetooth.so.3 => /usr/lib/arm-linux-gnueabihf/libbluetooth.so.3 (0xb6ee6000)
     [exec]     libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xb6e01000)
     [exec]     /lib/ld-linux-armhf.so.3 (0xb6f21000)
     [exec] 
     [exec]     Version information:
     [exec]     /usr/lib/arm-linux-gnueabihf/libbluetooth.so.3:
     [exec]         ld-linux-armhf.so.3 (GLIBC_2.4) => /lib/ld-linux-armhf.so.3
     [exec]         libc.so.6 (GLIBC_2.7) => /lib/arm-linux-gnueabihf/libc.so.6
     [exec]         libc.so.6 (GLIBC_2.15) => /lib/arm-linux-gnueabihf/libc.so.6
     [exec]         libc.so.6 (GLIBC_2.4) => /lib/arm-linux-gnueabihf/libc.so.6
     [exec]     /lib/arm-linux-gnueabihf/libc.so.6:
     [exec]         ld-linux-armhf.so.3 (GLIBC_2.4) => /lib/ld-linux-armhf.so.3
     [exec]         ld-linux-armhf.so.3 (GLIBC_PRIVATE) => /lib/ld-linux-armhf.so.3
     [copy] Copying 1 file to /home/inventmarine/bluecove/bluecove-gpl-2.1.0/src/main/resources
     [copy] Copying 1 file to /home/inventmarine/bluecove/bluecove-gpl-2.1.0/target/classes

native-lib:


Also, that is how my build.xml looks like:

 <apply executable="${CC}" parallel="true" failonerror="true">
             <arg value="-shared"/>
             <!--
                This is used on Build Server to create Universal binary
                 ldd libbluecove.so
                     linux-gate.so.1 =>
                     libbluetooth.so =>
                The directory should contain libbluetooth.so binary edited to remove version from name e.g.
                   libbluetooth.so.2 -> libbluetooth.so
                   libbluetooth.so.3 -> libbluetooth.so
             -->
             <arg value="-nodefaultlibs"/>
             <arg value="-o"/>
             <arg value="${target}/${library_name}"/>
             <fileset dir='${build_native}' includes="*.o"/>
             <srcfile/>


             <arg value="-L${libs-universal}"/>
             <arg value="-lbluetooth"/>
        </apply>

Original comment by [email protected] on 19 Sep 2014 at 9:02

from bluecove.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 28, 2024
I've also tried:
<arg value="-nodefaultlibs"/>
             <arg value="-L${libs-universal}"/>
             <arg value="-lbluetooth"/>

             <arg value="-o"/>
             <arg value="${target}/${library_name}"/>
             <fileset dir='${build_native}' includes="*.o"/>
             <srcfile/>

Original comment by [email protected] on 19 Sep 2014 at 10:37

from bluecove.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.