AnsweredAssumed Answered

SystemC Model Build on Linux

Question asked by TNAKA on Oct 24, 2006
Latest reply on Nov 7, 2006 by TNAKA
Hi.

I tried to build SystemC FIR model(App. Note 1482) on Linux.

App. Note 1482 is described in Windows enviornment.
So I changed "src/make-defs" like followings.
Also I put "FIR.cpp" and "FIR.h" under "src" directory.

====================================================
# Defines for building an ADS Ptolemy model library
# Header and Library for SystemC
TARGET_ARCH = linux
SYSTEMC = $(HOME)/SystemC/systemc-2.1.v1

# Include the SDF kernel dependencies
SDFKERNEL = 1

# Include the TSDF kernel dependencies
TSDFKERNEL = 1

# Star Library Name
STAR_MK = SystemC

# Stars to compile
PL_SRCS = SystemC_Fir.pl

# Extra C and C++ sources to include into shared library
SRCS += FIR.cpp

# Extra objects to link into shared library
#OBJS +=

# Additional directories to add to include path
INCLUDEPATH += $(SYSTEMC)/include

# Additional directories to add to link path
LIBSPATH += $(SYSTEMC)/lib-$(TARGET_ARCH)

# Additional libraries to link in
LIBS += systemc
====================================================

Using this "src/make-defs", "hpeesofmake" was completed without any error.

But I got error in "hpeesofmake ael" and "hpeesofmake bitmap" like following.

hoge [496] aho:hpeesofmake ael
hpeesofmake[1]: Entering directory `/home/aho/ADS2003C_SystemC/src'
LD_LIBRARY_PATH="../obj.linux_x86:../include:./lib.linux_x86:/usr/ads_2005A/lib/linux_x86:/usr/ads_2005A/adsptolemy/lib.linux_x86::/cadtools/ncv/IUS57QSR1.lnx86/tools/lib:/usr/ads_2005A/rfde_links/tools/lib:/usr/lib:/usr/openwin/lib:/usr/dt/lib:/usr/ucblib:/usr/4lib:/usr/ccs/lib:/usr/local/lib:/home/aho/lib::/usr/ads_2005A/lib/linux_x86:/usr/ads_2005A/adsptolemy/lib.linux_x86:/usr/build/lib.linux_x86" hpeesofsim -S -ael SystemC
Could not load SystemC: ../obj.linux_x86/libSystemC.so: undefined symbol: _ZNK7sc_core9sc_object5printERN4_STL13basic_ostreamIcNS1_11char_traitsIcEEEE
hpeesofmake[1]: *** [ael] Error 1
hpeesofmake[1]: Leaving directory `/home/aho/ADS2003C_SystemC/src'
hpeesofmake: *** [ael] Error 2

How should I do for succeeding in building SystemC model on Linux ?

???  

Outcomes