Jump to content

biorobot

Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Posts posted by biorobot

  1. That's usually caused by not having a dev package installed - ld (the linker) is being called without a path set correctly, or with a missing file (crti.o, one of the basic C runtime object files).

    To properly help, it'd be useful to know the following details:

    * Labview version

    * Linux distribution (Redhat, Debian, Slackware, etc)

    * Command you use to make the LSB file

    * The output of the "uname -a" command

    since Linux can come in many different shapes and forms.

    cheers,

    Tom

    6039[/snapback]

    Hi Tom,

    Thanks for your prompt answer.

    Labview version is 7.1

    Linux distribution ---> Debian

    I used "make" command to make *.lsb file, and Makefile content is as follows:

    #

    # This Makefile was generated automatically by lvmkmf.

    #

    CC=gcc-3.4

    LD=gcc-3.4

    LDFLAGS=-shared

    XFLAGS=-fPIC -O

    CINDIR=/usr/local/lv71/cintools

    CFLAGS=-I$(CINDIR) $(XFLAGS)

    CINLIB=$(CINDIR)/libcin.a

    MAKEGLUE=$(CINDIR)/makeglueLinux.awk

    AS=gcc-3.4 -fPIC -c

    .SUFFIXES: .lsb .lsb~ $(SUFFIXES)

    # Default rule to create an lsb from a C source file

    .c.lsb: ; make $*.o

    $(LD) $(LDFLAGS) -o $*.tmp \

    $(CINDIR)/cin.o $(XLDFLAGS) $*.o $(CINLIB)

    $(CINDIR)/lvsbutil -c $* -t CIN -d "`pwd`"

    @rm -f $*.tmp

    avgv1.lsb: avgv1.o

    $(LD) $(LDFLAGS) -o avgv1.tmp \

    $(CINDIR)/cin.o $(XLDFLAGS) avgv1.o $(CINLIB)

    $(CINDIR)/lvsbutil -c avgv1 -t CIN -d "`pwd`"

    @rm -f avgv1.tmp

    clean:

    $(RM) -f avgv1.o avgv1.tmp

    spotless: clean

    $(RM) -f avgv1.lsb

    And, finally, uname -a output is

    Linux dhcp-eng-staff-505-33 2.6.8-2-386 #1 Thu May 19 17:40:50 JST 2005 i686 GNU/Linux

    Thank you for your kind solution.

    Rgds,

    "biorobot"

  2. Hi all,

    I am a begineer to Labview and Linux. I would like to use external codes in Linux Labview. When I make *.lsb files, I encountered the following error:

    /usr/bin/ld: crti.o: No such file: No such file or directory

    collect2: ld returned 1 exit status

    make: *** [avgv1.lsb] Error 1

    Any one knows how to tackle this problem???

    Thanks in advance,

    "biorobot"

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.