IMX 53 QSB: Application not getting launched.

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

IMX 53 QSB: Application not getting launched.

754 次查看
Swamy
Contributor III

Hello All,

I have built the module on IMX 53 QSB. If I run the output(viewer) I need to see the Navigation screen. But as I launch the binary, there is no output.

 

I have built the kernel, rootfs and u-boot having FSL GNOME using LTIB.

 

$ uname -a
Linux lucid-desktop 2.6.35.3-744-g27fdf7b #1 PREEMPT Thu Jan 27 15:10:16 CST 201
1 armv7l GNU/Linux

 

Request you to please help.

 

Regards,

Swamy

 

This is my Makefile...

##############################
# Viewer Makefile
##############################
TARGET?=linux

CROSS=
CC=$(CROSS)gcc
CFLAGS+= -O2 -g
CPPFLAGS = $(CFLAGS)
APP_BINARY=viewer
OBJECTS=viewer.o event.o audio.o video.o
LIBS=-lpthread -lm -lrt -losal -lasound

# Common files
all: libosal.a viewer


# OS specific files
ifeq ($(TARGET), linux)
# Linux (Ubuntu) rules
OBJECTS+=/usr/lib/libX11.so.6
OSAL_LIBPATH=osal/linux/lib

# Applications:

libosal.a:
    make -C $(OSAL_LIBPATH)/..

viewer:        $(OBJECTS) $(OSAL_LIBPATH)/libosal.a
    $(CC) -L$(OSAL_LIBPATH) $(CFLAGS) $(OBJECTS) -o $(APP_BINARY) -Bdynamic -Bstatic $(LIBS)
    chmod 755 $(APP_BINARY)

endif

# Common clean rule
clean:
    @echo "Cleaning up directory."
    rm -f *.a *.o $(APP_BINARY) core *~
    @echo "Cleaning OSAL library."
    make -C $(OSAL_LIBPATH)/.. clean

标签 (1)
标记 (2)
0 项奖励
回复
1 回复

713 次查看
hake
NXP Employee
NXP Employee

the gnome rootfs does not support x11, you need use the ubuntu rootfs instead. also if you cross build your app, below should changed:

OBJECTS+=/usr/lib/libX11.so.6
OSAL_LIBPATH=osal/linux/lib

0 项奖励
回复