hooman_hbi Posted August 6, 2015 Report Share Posted August 6, 2015 Hi, I am trying to build 32-bit application which uses SystemC in it on my 64-bit Ubuntu. When running the make file it gives an error because it cannot find "lib-linux/libsystemc.a" And that is because I am using a 64-bit linux. (So I have "lib-linux64/libsystemc.a" instead!) I suppose the make file is expecting 32-bit version of the static library. If that is the case, the question is how can I install the 32-bit version of the SystemC library on my machine. Here's the make command and its output: hooman@hooman-ThinkPad-S540:~/OVP/systemc_example/SystemC_TLM2.0/platform_cpp$ make -f /home/hooman/OVP/Imperas.20150205/ImperasLib/buildutils/Makefile.TLM.platform # Compiling Build/Linux32/sys/tlmMemory.o # Compiling Build/Linux32/sys/tlmMmc.o # Compiling Build/Linux32/sys/tlmPeripheral.o # Compiling Build/Linux32/sys/tlmPlatform.o # Compiling Build/Linux32/sys/tlmProcessor.o # Compiling Build/Linux32/usr/platform.o # Linking platform.Linux32.exe g++: error: /usr/local/systemc230/lib-linux/libsystemc.a: No such file or directory make: *** [platform.Linux32.exe] Error 1 Quote Link to comment Share on other sites More sharing options...
Philipp A Hartmann Posted August 6, 2015 Report Share Posted August 6, 2015 You can pass the option --host=i686-linux-gnu to the configure call: mkdir objdir32 cd objdir32 ../configure --host=i686-linux-gnu --prefix=/usr/local/systemc230 # ... You need to make sure to have the g++-multilib package installed on Ubuntu. As a side note: You might want to install SystemC 2.3.1 instead, which includes some bug fixes. hth, Philipp hooman_hbi 1 Quote Link to comment Share on other sites More sharing options...
hooman_hbi Posted August 11, 2015 Author Report Share Posted August 11, 2015 Thanks Philipp! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.