kallooran Posted November 15, 2018 Report Share Posted November 15, 2018 The compilation was a success. but when i tried to run a systemc code, I got this error. Any idea what this might be? Thanks for helping a noob such as myself Quote Link to comment Share on other sites More sharing options...
AmeyaVS Posted November 15, 2018 Report Share Posted November 15, 2018 (edited) Hello @kallooran, Can you post the command line you are using to build your models with? Also, if possible share the following environment variable also: echo $SYSTEMC_HOME echo $LD_LIBRARY_PATH Currently with the title above is not enough to provide an educated guess about the environment you are using. Regards, Ameya Vikram Singh Edited November 15, 2018 by AmeyaVS Added section about the envrionment details also. Quote Link to comment Share on other sites More sharing options...
kallooran Posted November 15, 2018 Author Report Share Posted November 15, 2018 Hi @AmeyaVS I am trying to work with java and systemc. thats when I got this error. This might be because of issues with native libraries in Java. Am not sure... but thanks for the reply Quote Link to comment Share on other sites More sharing options...
AmeyaVS Posted November 15, 2018 Report Share Posted November 15, 2018 Hello @kallooran, Try setting the environment variable LD_LIBRARY_PATH as mentioned below: export LD_LIBRARY_PATH=$SYSTEMC_HOME/lib-linux64 # or this if the library containing the libsystemc.so is under $SYSTEMC_HOME/lib # export LD_LIBRARY_PATH=$SYSTEMC_HOME/lib Also what is the command line used to build the project? (Example as mentioned below) # e.g.: # Compilation $ g++ -Wall -g -I$SYSTEMC_HOME/include -c main.cpp # Linking $ g++ main.o -L$SYSTEMC_HOME/lib-linux64 -o sim -lsystemc Hope it helps. Regards, Ameya Vikram Singh Quote Link to comment Share on other sites More sharing options...
David Black Posted November 15, 2018 Report Share Posted November 15, 2018 Please show results of: ls -l $SYSTEMC_HOME/lib-linux64/ 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.