Jump to content
Sign in to follow this  
biorobot

using external Codes in Linux LabVIEW

Recommended Posts

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"

Share this post


Link to post
Share on other sites
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"

6038[/snapback]

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

Share this post


Link to post
Share on other sites
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"

Share this post


Link to post
Share on other sites
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:

6040[/snapback]

Okay, looks like you may be missing some of the development packages. Try this:

dpkg-query -s libc6-dev

and if you don't get something like this:

Package: libc6-devStatus: install ok installed

then you're missing the C library development package, which means you need to install it using this:

apt-get install libc6-dev

If that doesn't fix it, let me know.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

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