24 responses to “Setting up SystemC and Eclipse for C++ hardware simulation”

  1. kevin

    probably you should have indicated …that one needs the “build-essentials to proceed with installation of systemC” at the top

  2. katontwo

    i have tried several times to set the library path, but after running an err message .
    01:25:31 **** Incremental Build of configuration Debug for project systemc_test ****
    make all
    Building target: systemc_test
    Invoking: GCC C++ Linker
    g++ -L/home/katontwo/systemc-2.3.0/lib-linux -o “systemc_test” ./src/main.o ./main.o -lsystemc
    /usr/bin/ld: cannot find -lsystemc
    collect2: error: ld returned 1 exit status
    make: *** [systemc_test] Error 1

    01:25:32 Build Finished (took 74ms)

  3. Myzel

    Very detailed guide, very helpful! Great work! Thank you!

  4. Frank

    Hello Karibe,

    Thank you very much for the tutorial; I would probably be struggling much more had it not been for your detailed, step by step instructions.

    With that said, I am still having one issue. I followed your instructions to a T, except that I’m using Fedora 20 rather than Ubuntu and I’m using the newer version of SystemC, 2.3.1 (and so I modified your steps to reflect that). I can build my projects fine, but when I try to run them, I encounter the following error:

    “error while loading shared libraries: libsystemc-2.3.1.so: cannot open shared object file: No such file or directory”

    I did create the soft link as instructed and verified that it was correct, so I’m not entirely sure what I could be doing wrong. I’d appreciate any advice you can give here. Thanks

  5. Frank

    Hey David,

    I think I solved my problem. For whatever reason I needed to add “m” to the libraries list in addition to “systemc” as was done on this tutorial: http://geekwentfreak-raviteja.rhcloud.com/blog/2011/01/21/eclipse-as-development-environmentide-for-systemc-in-ubuntu/

    I’m not sure what the reasons was, but I figured I’d post here for other people who have the same problem. If you get a chance to look into it, I’d love to get your feedback on this issue.


    1. Frank

      Just for the record, I’m running Fedora 20, the latest version of Eclipse (Luna) and the latest version of SystemC (2.3.1).

  6. Meshack Mbuvi

    Mr karibe i have followed all the steps but on build, am given this error
    Description Resource Path Location Type
    make: *** [systemc-test] Error 1 systemc-test C/C++ Problem

  7. Meshack Mbuvi

    Sir….I have had to re-install the eclipse and it has worked…Thanx alot

  8. Setting up SystemC-AMS and Eclipse >> Karibe

    […] procedure is really simple! You just need to follow the same steps as those in the previous post on Setting up SystemC and Eclipse for C++ hardware simulation. BUT in addition to configuring the SystemC library and includes, add those of SystemC-ams as well […]

  9. alexua

    I have tried it but it is not working well I am having “Type sc_signal_resolved could not be resolved” error, and at times an undefined reference to “sc_main”

Leave a Reply

%d bloggers like this: