Re: problem linking Cascade with cross-compile toolchain

Sujal Patel <[email protected]>
Newsgroups gmane.comp.hardware.roku.technical
Message-ID <[email protected]>
You're probably not picking up the right libraries...  Here is the top of
my CascadeSDKProject.mk.  Pay particular attention to the LDFLAGS.

# -*- Makefile -*-
# Cascade SDK project makefile
# Author: [email protected]

.EXPORT_ALL_VARIABLES:

CC     := /usr/tools/roku/bin/mipsel-linux-gcc
CXX    := /usr/tools/roku/bin/mipsel-linux-g++
TARGET_CFLAGS   := -L/home/roku/lib/ -msoft-float
TARGET_CXXFLAGS := -L/home/roku/lib/ -msoft-float

CASCADE_SDK_INCLUDE_DIR := /home/roku/include/roku/

CFLAGS := $(TARGET_CFLAGS) $(EXTRA_CFLAGS)
CFLAGS += -I$(CASCADE_SDK_INCLUDE_DIR)

CXXFLAGS := $(TARGET_CXXFLAGS) $(EXTRA_CXXFLAGS)
CXXFLAGS += -I$(CASCADE_SDK_INCLUDE_DIR)

LDFLAGS  := -L/home/roku/lib -Xlinker -rpath-link=/home/roku/lib -Xlinker -rpath=/home/roku/lib $(EXTRA_LDFLAGS)


Sujal

> Jon Lech Johansen wrote:
> 
> >On Mon, May 24, 2004 at 08:31:39PM +0200, Jean-Paul Saman ([email protected]) wrote:
> >  
> >
> >>I have a problem with linking the Cascade library to VLC. After 
> >>inspecting the libraries on the HD1000 I found out the Cascade library 
> >>is linked to glibc-2.2.4 is that correct ?
> >>The cross-compile toolchain provided by jjl was built against 
> >>glibc-2.2.5 and that won't mix properly ;-(
> >>    
> >>
> >
> >Copy the system libs from the HD1000 to your PC and it should work.
> >
> >  
> >
> That is what I did, but it doesn't work ;-) Any other suggestions ??
> 
> -- 
> 
> Many greetings,
> Jean-Paul Saman
> 
> Consultant
> --------------------------------------------------------------
> VLC iPAQ maintainer                    http://www.videolan.org
> RedHat Certified Engineer         RHCE number: 807202745005548
> --------------------------------------------------------------
> 
> 
> _______________________________________________
> Roku-tech mailing list
> [email protected]
> http://lists.rokulabs.com/mailman/listinfo/roku-tech
> 
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.