decompfrontier / server

Brave Frontier C++ server emulator (used for offline mod as well)
GNU Affero General Public License v3.0
4 stars 1 forks source link

[CMAKE build] Can't find Jsoncpp data #1

Open Iruuka opened 2 weeks ago

Iruuka commented 2 weeks ago

Hello 👋 Hope you are doing well !

I'm trying to install and launch the server and everything around your decompfrontier. But I'm hitting a wall with trying to build the server part (and I'm not a cpp dev)

When I launch cmake build at the root of the server repository, I have this error : PS C:\Users\cleme\Desktop\brave-frontier-emulator\server> cmake . -- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.22631. CMake Error at C:/Program Files/CMake/share/cmake-3.30/Modules/FindPackageHandleStandardArgs.cmake:233 (message): **Could NOT find Jsoncpp (missing: JSONCPP_INCLUDE_DIRS JSONCPP_LIBRARIES)** Call Stack (most recent call first): C:/Program Files/CMake/share/cmake-3.30/Modules/FindPackageHandleStandardArgs.cmake:603 (_FPHSA_FAILURE_MESSAGE) C:/Users/cleme/Desktop/brave-frontier-emulator/pour-install/vcpkg/packages/drogon_x64-windows/share/drogon/FindJsoncpp.cmake:36 (find_package_handle_standard_args) C:/Program Files/CMake/share/cmake-3.30/Modules/CMakeFindDependencyMacro.cmake:76 (find_package) C:/Users/cleme/Desktop/brave-frontier-emulator/pour-install/vcpkg/packages/drogon_x64-windows/share/drogon/DrogonConfig.cmake:39 (find_dependency) CMakeLists.txt:12 (find_package)

I've looked on the web and only found one post (github issue jsoncpp that would show the same error that I have. But I couldn't make it works with the solution in the answers.

I understand this might not be related directly into this project, but i'm hopping you would know something or could share some data of how you do this (like if you've seen this error before, how you corrected it) Informations that could help :

If you have any clue about this bug while you were working on this project, I would thank you a lot for your help ! If you don't know or don't have time to help, don't worry, I'll find a way somehow one day !

Thank you for reading all of this. Hopping you a great week !

arves100 commented 2 weeks ago

Hello, from the command line I don't understand if that the first time you launched the cmake executable in the configuration directory. If that's the case , you should pass -DCMAKE_TOOLCHAIN_FILE that points to vcpkg.cmake as it was explained in the vcpkg documentation. Side done, I suggest you to use a separate directory for the build directory (aka do not build in the root directory) so you will have a easier time remove the build directory in case some command line changes.

On Mon, Aug 26, 2024, 22:31 Iruuka @.***> wrote:

Hello 👋 Hope you are doing well !

I'm trying to install and launch the server and everything around your decompfrontier. But I'm hitting a wall with trying to build the server part (and I'm not a cpp dev)

When I launch cmake build at the root of the server repository, I have this error : PS C:\Users\cleme\Desktop\brave-frontier-emulator\server> cmake . -- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.22631. CMake Error at C:/Program Files/CMake/share/cmake-3.30/Modules/FindPackageHandleStandardArgs.cmake:233 (message): Could NOT find Jsoncpp (missing: JSONCPP_INCLUDE_DIRS JSONCPP_LIBRARIES) Call Stack (most recent call first): C:/Program Files/CMake/share/cmake-3.30/Modules/FindPackageHandleStandardArgs.cmake:603 (_FPHSA_FAILURE_MESSAGE) C:/Users/cleme/Desktop/brave-frontier-emulator/pour-install/vcpkg/packages/drogon_x64-windows/share/drogon/FindJsoncpp.cmake:36 (find_package_handle_standard_args) C:/Program Files/CMake/share/cmake-3.30/Modules/CMakeFindDependencyMacro.cmake:76 (find_package) C:/Users/cleme/Desktop/brave-frontier-emulator/pour-install/vcpkg/packages/drogon_x64-windows/share/drogon/DrogonConfig.cmake:39 (find_dependency) CMakeLists.txt:12 (find_package)

I've looked on the web and only found one post (github issue jsoncpp https://github.com/open-source-parsers/jsoncpp/issues/455 that would show the same error that I have. But I couldn't make it works with the solution in the answers.

I understand this might not be related directly into this project, but i'm hopping you would know something or could share some data of how you do this (like if you've seen this error before, how you corrected it) Informations that could help :

If you have any clue about this bug while you were working on this project, I would thank you a lot for your help ! If you don't know or don't have time to help, don't worry, I'll find a way somehow one day !

Thank you for reading all of this. Hopping you a great week !

— Reply to this email directly, view it on GitHub https://github.com/decompfrontier/server/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABE7QE762FTRWAXV3XORFX3ZTOGARAVCNFSM6AAAAABNEXK6O6VHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ4DONZSGMYDENY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Iruuka commented 2 weeks ago

That's what was missing ! Thank you for your help ! I should have started using the documentation. Now it build a .net solution.

Is it fine with you if I keep this issue open in case I still have some problem in the futur with the build/installation of the server side of the project ?

arves100 commented 2 weeks ago

That's what was missing ! Thank you for your help ! I should have started using the documentation. Now it build a .net solution.

Is it fine with you if I keep this issue open in case I still have some problem in the futur with the build/installation of the server side of the project ?

Sure thing