build LTIB BSP for FreeScale MPC8548e on Ubuntu 12.04.5 64bit

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

build LTIB BSP for FreeScale MPC8548e on Ubuntu 12.04.5 64bit

Jump to solution
1,324 Views
contributor3
Contributor III

Hi,

I am trying to build MPC8548CDS_20071214-ltib.iso on Ubuntu 12.04.5 LTS x86_64 .

I installed the dependencies using this script:

#/bin/bash
# Install LTIB dependant packages
sudo apt-get install gettext libgtk2.0-dev rpm bison m4 libfreetype6-dev
sudo apt-get install libdbus-glib-1-dev liborbit2-dev intltool
sudo apt-get install ccache ncurses-dev zlib1g zlib1g-dev gcc g++ libtool
sudo apt-get install uuid-dev liblzo2-dev
sudo apt-get install tcl dpkg
# Packages required for 64-bit Ubuntu
# Do "uname -a" and see if the word "x86_64" shows up.
if uname -a|grep -sq 'x86_64'; then
sudo apt-get install ia32-libs libc6-dev-i386 lib32z1
fi

apart from this I also installed 

sudo apt-get install lib32ncurses5-dev

sudo apt-get install lib32ncursesw5-dev

 

I got below errors when I run ltib:

gcc -lncurses mconf.o zconf.tab.o lxdialog/lxdialog.a -o mconf
lxdialog/lxdialog.a(checklist.o): In function `print_item':
checklist.c:(.text+0x42): undefined reference to `wmove'
checklist.c:(.text+0x5c): undefined reference to `waddch'
checklist.c:(.text+0x82): undefined reference to `wmove'
checklist.c:(.text+0xdc): undefined reference to `wprintw'
checklist.c:(.text+0x108): undefined reference to `wprintw'
checklist.c:(.text+0x144): undefined reference to `wmove'
checklist.c:(.text+0x163): undefined reference to `waddch'

Is there any fix / workaround for this issue?

 

Please find the full log attached.

Best Regards

 

 

0 Kudos
1 Solution
1,290 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please put the patch in /opt/freescale/pkgs folder.

 

 

View solution in original post

0 Kudos
5 Replies
1,316 Views
yipingwang
NXP TechSupport
NXP TechSupport

sudo apt-get install libncurses5 libncurses5-dev

0 Kudos
1,311 Views
contributor3
Contributor III

Hi ,

Thanks for reply,

I already installed this without success, and I am building on 64bit , so I installed below  packages as well

sudo apt-get install lib32ncurses5-dev

sudo apt-get install lib32ncursesw5-dev

/opt/freescale/ltib/usr/src/rpm/BUILD/lkc-1.4

I tried the below workaround for this issue and got rid of the errors, Is there a clean fix?
/opt/freescale/ltib/usr/src/rpm/BUILD/lkc-1.4/Makefile
-$(CC) $(LDFLAGS) $(mconf_LIBS) $^ -o $@
+$(CC) $(LDFLAGS) $^ -o $@ $(mconf_LIBS)

 

 

0 Kudos
1,308 Views
yipingwang
NXP TechSupport
NXP TechSupport

You could generate a patch for Makefile, then add the patch to the dist/lfs-5.1/<packagename>/<packagename>.spec.

0 Kudos
1,298 Views
contributor3
Contributor III

Thanks, how to add a patch file in ltib?

I added the patch name in .spec file but I am not sure where to save the .patch file. 

In which folder should I save the patch before running ltib?

0 Kudos
1,291 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please put the patch in /opt/freescale/pkgs folder.

 

 

0 Kudos