Jonathan Valks

Codewarrior 10 for Linux command line build problem.

Discussion created by Jonathan Valks on Aug 11, 2010
Latest reply on Aug 13, 2010 by Jonathan Valks

I am trying to build a project from the command line using Codewarrior 10 for Linux.


When I run the following rule on every source file:


mwccmcf -c -g -model far -intsize 2 -align coldfire -abi register -proc CFM5100 -once ${INCLUDE} $<

I get the following error (marked in bold):


mwccmcf -c -g -model far -intsize 2 -align coldfire -abi register -proc CFM5100 -once -I. -I- -ir "/usr/local/Freescale/CodeWarrior_MCU_10.0/MCU/ColdFire_Support/" bdate.c
mwccmcf: error while loading shared libraries: cannot open shared object file: No such file or directory
make: *** [bdate.o] Error 127


I have set the the environment variables in the makefile as follows:


PATH := ${PATH}:/usr/local/Freescale/CodeWarrior_MCU_10.0/MCU/ColdFire_Tools/Command_Line_Tools/
LD_LIBARY_PATH := /usr/local/Freescale/CodeWarrior_MCU_10.0/MCU/CodeWarrior/lib/


It seems that although LD_LIBRARY_PATH points to the correct directory, the compiler cannot find the shared library.


Am I using the correct variable and is the syntax correct?