PostFrontal Forum
PostFrontal Forum
LK8000_Support_Forum | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 LK8000 International Support
 Developers
 VScode + cmake

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
Bapt101 Posted - 21/08/2024 : 14:57:12
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 :)
2   L A T E S T    R E P L I E S    (Newest First)
brunotl Posted - 23/08/2024 : 16:23:26
cmake is only used to build android target through Gradle...





Bapt101 Posted - 23/08/2024 : 11:16:16
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?

PostFrontal Forum © PostFrontal - La community del Volo a Vela Go To Top Of Page
This page was generated in 0.1 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