PostFrontal Forum
PostFrontal Forum
LK8000_Support_Forum | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 LK8000 International Support
 Developers
 VScode + cmake
 New Topic  Reply to Topic
Author  Topic Next Topic  

Bapt101
Pulcino

8 Posts

Posted - 21/08/2024 :  14:57:12  Show Profile  Reply with Quote
Hello,
I've checked out LK8000 sources (setup: windows 11 / WSL2 Ubuntu) and I've successfully compiled and run LK8000 (with current WSL2 you can even run LK8000 graphic app directly from Ubuntu without any specific setup).
Still, when I open the project with VS Code, I have some errors in the imports in the .h/.cpp files (like "cannot open source file "externs.h"C/C++")

I've searched across the wiki in Github but I could not find any specific informations to properly setup VScode. And as I'm not a C/C++ developper I don't really know in which direction I should look.

I've seen cmakexxxx files in the project but I couldn't manage to have cmake run OK. After installing Cmake and running it, I have an error about curlConfig.cmake missing. A bit of a googling lead me to install "libcurl4-openssl-dev" =>

1) Still after the install, cmake build was failing with same error about curlConfig.cmake missing
2) With libcurl4-openssl-dev installed, the "make all" started failing with the error "CURLOPT_PROTOCOLS_STR undefined" in file http_session.cpp. So I uninstalled libcurl4-openssl-dev and make all was back OK

Any help/advices on the subject of setting up properly VScode is welcomed :)

Bapt101
Pulcino

8 Posts

Posted - 23/08/2024 :  11:16:16  Show Profile  Reply with Quote
So I've progressed on CMake usage, but I had to modify a CMakeLists.txt at some point (replacing a curl::curl by CURL::libcurl and removing the 'CONFIG' keywork on curl find_package()). Now I still have errors when executing cmake, currently I have to set up OBOE library on my system to go to the next step. So I'm wondering if this is "normal" or if I've missed something.

Is cmake (in LK8000) intended to be used to build on a LINUX system, or is it only when building for an ANDROID target?

Edited by - Bapt101 on 23/08/2024 11:26:19
Go to Top of Page

brunotl
Pterodattilo

France
1138 Posts

Posted - 23/08/2024 :  16:23:26  Show Profile  Reply with Quote
cmake is only used to build android target through Gradle...





Go to Top of Page
   Topic Next Topic  
 New Topic  Reply to Topic
Jump To:
PostFrontal Forum © PostFrontal - La community del Volo a Vela Go To Top Of Page
This page was generated in 0.11 seconds. Snitz Forums 2000

Since 2006, owned and maintained by PostFrontal S.A.S. di Giuliano Golfieri & c. - VAT ID: IT05264240960
THIS WEBSITE ONLY USES FUNCTIONAL COOKIES
Privacy & Cookie Policy