Lihis / ets2-job-logger

ETS2 Job Logger
https://ets2joblogger.org
GNU General Public License v2.0
17 stars 7 forks source link

jsoncpp_lib_static.lib - cannot open input file #57

Open ResTedRU opened 2 years ago

ResTedRU commented 2 years ago

Hey. It's been a few days now that I can't figure out the error I'm getting when I build the project:

Error LNK1181   cannot open input file 'jsoncpp_lib_static.lib' ets2-job-logger
[...]\CMakeBuilds\3071a8b8-cf99-4342-859e-e62fe2574c9e\build\x64-Release\gui\LINK

Any ideas why this happened? Because I really can't find this file anywhere and without it I can't move on ((

OC: Windows VC 2019 x64

ResTedRU commented 2 years ago

I found a way to fix it:

  1. go to [...]\gui
  2. Open CMakeLists.txt
  3. Make changes to lines 57 and 58 to
    set(JSONCPP_LIBRARIES jsoncpp)
    set(JSONCPP_INCLUDE_DIRS jsoncpp)