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
已解决! 转到解答。
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)