Hi,
I installed the new necto 2.0 on my pc , but I cannot open necto projects from previous versions for example memake project file,I see that you switch to Cmake and older extensions.
Regarding Necto designer , there is still missing the screen orientation property and TFT custom board setup
Best Regards
Levi
open previous memake necto project with the new necto 2.0
- IvanJeremic
- mikroElektronika team
- Posts: 316
- Joined: 05 Sep 2022 14:32
Re: open previous memake necto project with the new necto 2.0
Hi,
To convert memake project to Cmake, you need to do the following :
1. Create CMakeLists.txt file and put it in the folder where your memake file is (you don't have to delete the memake file) - see the CMakeLists.txt file below for the Balancer 4 click board :
2. Open this file and replace each occurrence of the balancer4 string to click board you want to use (for example change the balancer4 to balancer2 for Balancer 2 click board).
3. After you done this, in the same folder make a subfolder (folder name should go something like lib_balancer4 if you are using the balancer 4 click).
4. Create a second CMakeLists.txt file and put it in this folder, it should look like this (again, change the click board name accordingly) :
5. Inside the lib_balancer4 folder make 2 sub folders, one named include (this is where you will place already existing header file) an one named src (this is where you will place existing source file).
6. When you do all this go to Open Project in NECTO Studio and choose the first CMakeLists.txt file you made.
Regards,
Ivan.
To convert memake project to Cmake, you need to do the following :
1. Create CMakeLists.txt file and put it in the folder where your memake file is (you don't have to delete the memake file) - see the CMakeLists.txt file below for the Balancer 4 click board :
Code: Select all
cmake_minimum_required(VERSION 3.21)
if (${TOOLCHAIN_LANGUAGE} MATCHES "MikroC")
project(example_balancer4 LANGUAGES MikroC)
else()
project(example_balancer4 LANGUAGES C ASM)
endif()
add_executable(example_balancer4
main.c
)
find_package(MikroC.Core REQUIRED)
target_link_libraries(example_balancer4 PUBLIC MikroC.Core)
find_package(MikroSDK.Board REQUIRED)
target_link_libraries(example_balancer4 PUBLIC MikroSDK.Board)
find_package(MikroSDK.Log REQUIRED)
target_link_libraries(example_balancer4 PUBLIC MikroSDK.Log)
add_subdirectory(lib_balancer4)
target_link_libraries(example_balancer4 PUBLIC Click.Balancer4)
3. After you done this, in the same folder make a subfolder (folder name should go something like lib_balancer4 if you are using the balancer 4 click).
4. Create a second CMakeLists.txt file and put it in this folder, it should look like this (again, change the click board name accordingly) :
Code: Select all
cmake_minimum_required(VERSION 3.21)
if (${TOOLCHAIN_LANGUAGE} MATCHES "MikroC")
project(lib_balancer4 LANGUAGES MikroC)
else()
project(lib_balancer4 LANGUAGES C ASM)
endif()
add_library(lib_balancer4 STATIC
src/balancer4.c
include/balancer4.h
)
add_library(Click.Balancer4 ALIAS lib_balancer4)
target_include_directories(lib_balancer4 PUBLIC
include
)
find_package(MikroC.Core REQUIRED)
target_link_libraries(lib_balancer4 PUBLIC MikroC.Core)
find_package(MikroSDK.Driver REQUIRED)
target_link_libraries(lib_balancer4 PUBLIC MikroSDK.Driver)
6. When you do all this go to Open Project in NECTO Studio and choose the first CMakeLists.txt file you made.
Regards,
Ivan.