Cannot compile NECTO DAC 8 example

General discussion on mikroC PRO for ARM.
Post Reply
Author
Message
bsaulquin
Posts: 6
Joined: 27 Jun 2023 09:19

Cannot compile NECTO DAC 8 example

#1 Post by bsaulquin » 30 Jun 2023 14:42

Dear,

we bout Mikroe DAC 8 and i wanted to try the example you provide from the NECTO (linux ver) studio.

I activated dependencies in the dependency manager.

When i compile i got the following errors:


"CMake Error at lib_dac8/CMakeLists.txt:24 (find_package):
By not providing "FindMikroC.Core.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"MikroC.Core", but CMake did not find one.

Could not find a package configuration file provided by "MikroC.Core" with
any of the following names:

MikroC.CoreConfig.cmake
mikroc.core-config.cmake

Add the installation prefix of "MikroC.Core" to CMAKE_PREFIX_PATH or set
"MikroC.Core_DIR" to a directory containing one of the above files. If
"MikroC.Core" provides a separate development package or SDK, be sure it
has been installed.
"'
I four a MikroC.Core folder containing .cmake files.
.MIKROE/NECTOStudio2/resources/__temp_setup_for_planet_debug__/Debug/lib/cmake/MikroC.Core:
MikroC.CoreConfig.cmake
MikroC.CoreConfigVersion.cmake
MikroC.CoreTargets.cmake

I try to set the CMAKE_MODULE_PATH and MikroC.Core_DIR to the requested values but i alwas get the error:

error: Can't open include file "MikroC.Core" #include "MikroC.Core" 1 error in preprocessor.

Please could you tell me how to fix this bug?

thanks

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Cannot compile NECTO DAC 8 example

#2 Post by filip » 06 Jul 2023 10:12

Hi,

Which version of NECTO Studio are you using ?

Regards,
Filip.

michael@skurla.net
Posts: 3
Joined: 23 Dec 2023 00:00

Re: Cannot compile NECTO DAC 8 example

#3 Post by michael@skurla.net » 04 Jan 2024 14:35

Same exact problem. Was there any resolution to this? It's driving me crazy as everything complied for me several times, and then I just opened an example file separately, and I've never been able to compile my project again because of this error.

Version 5.0.1

User avatar
IvanJeremic
mikroElektronika team
Posts: 316
Joined: 05 Sep 2022 14:32

Re: Cannot compile NECTO DAC 8 example

#4 Post by IvanJeremic » 05 Jan 2024 14:06

Hi,

I just tried using the example and it works fine for me.

Can you tell me what OS you are using?

And what exactly did you do when this error occurred?

Regards,

Ivan.

michael@skurla.net
Posts: 3
Joined: 23 Dec 2023 00:00

Re: Cannot compile NECTO DAC 8 example

#5 Post by michael@skurla.net » 14 Jan 2024 23:11

Hi Ivan. This is on a MAC. Still going on.

Post Reply

Return to “mikroC PRO for ARM General”