famez / J1939-Framework

Framework to work with J1939 Frames used in CAN bus in bus, car and trucks industries
MIT License
158 stars 55 forks source link

Compile the project not success #7

Closed Femtomes closed 4 years ago

Femtomes commented 4 years ago

@famez hi, thank you for your grate project i want to compile the project ,but i stop in the problem of json.can you help me?

../../J1939/libJ1939.so.1.0.0: undefined reference to Json::Value::operator=(Json::Value&&)' ../../J1939/libJ1939.so.1.0.0: undefined reference toJson::Value::Value(unsigned long)' collect2: error: ld returned 1 exit status BinUtils/j1939Decoder/CMakeFiles/j1939Decoder.dir/build.make:96: recipe for target 'BinUtils/j1939Decoder/j1939Decoder' failed

thank you

Femtomes commented 4 years ago

this problem solved. error in the J1939 CMakeLists.txt

Common jsoncpp

Common /usr/local/lib/libjsoncpp.a

Femtomes commented 4 years ago

have solve problem,close the issue

marianbrunet commented 3 years ago

Can you give more information on how to solve this issue? Thanks!

marianbrunet commented 3 years ago

I got it to work. In file J1939-Framework/J1939/CMakeLists.txt, change line 40.

Before: Common jsoncpp

Change to: Common /usr/local/lib/libjsoncpp.a