Libraries missing?

Fully featured PIC compilers available on Windows, Linux, and macOS.
Post Reply
Author
Message
trebla
Posts: 12
Joined: 26 Aug 2019 10:52

Libraries missing?

#1 Post by trebla » 15 Apr 2020 18:48

Trying to compile some projects i can't find out how to add libraries dependencient to it.
Right click on the project name opens Project menu but there is no menu item for manage libraries.
Compiler for STM works as intended.
All licences for both compiler are active.

Cobalt
Posts: 87
Joined: 17 Oct 2013 01:18

Re: Libraries missing?

#2 Post by Cobalt » 15 Apr 2020 19:26

Open the Edit menu on the left side of the screen so you see your code. On the right side, select Project Manager (Ctrl+1 hotkey), then right-click on the project name. Select the "Manage Project Libraries" from the dropdown menu, then click the triangle by "MikroC" to expand available libraries.

This is on Necto 1.0.3

trebla
Posts: 12
Joined: 26 Aug 2019 10:52

Re: Libraries missing?

#3 Post by trebla » 15 Apr 2020 19:42

Yes, the right click on the project name opens drop-down menu but there is not such menu item as "Manage Libraries"
This is very strange feels like there is no compler installed for PIC.
As i told, for STM works all OK

Cobalt
Posts: 87
Joined: 17 Oct 2013 01:18

Re: Libraries missing?

#4 Post by Cobalt » 15 Apr 2020 20:16

What version are you using?

During install, the installer asks what resources you want to install. Did you install Necto before MikroE released the PIC compiler? I'm not sure how to check and see if they are physically installed.

You could try an uninstall / reinstall.

trebla
Posts: 12
Joined: 26 Aug 2019 10:52

Re: Libraries missing?

#5 Post by trebla » 15 Apr 2020 20:21

I installed Necto first when STM AI compiler come out. Today i installed update and entered PIC compiler licence code. Necto help displays version 1.0.3 BETA

Edit:

Looks like there is SDK missing for PIC? When i create new project with MikroSDK Application template then i can't access libraries in project manager menu.
But if i choose Standalone Application instead then i can manage project libraries.
But i can't figure out how to install SDK for PIC in Necto? The old IDE is much easier to manage :twisted:

User avatar
stefan.filipovic
mikroElektronika team
Posts: 1135
Joined: 18 Dec 2018 10:30

Re: Libraries missing?

#6 Post by stefan.filipovic » 16 Apr 2020 13:49

Hi,

At the time, a mikroSDK 2.0 is not available for PIC. It will be added to some of the next releases.

Kind regards,
Stefan Filipović

trebla
Posts: 12
Joined: 26 Aug 2019 10:52

Re: Libraries missing?

#7 Post by trebla » 16 Apr 2020 14:46

Ok, thanks for the information!

tarumbao
Posts: 1
Joined: 23 Apr 2020 18:38

Re: Libraries missing?

#8 Post by tarumbao » 23 Apr 2020 18:46

Hello there,
When will it be available for PIC?
Thanks

User avatar
stefan.filipovic
mikroElektronika team
Posts: 1135
Joined: 18 Dec 2018 10:30

Re: Libraries missing?

#9 Post by stefan.filipovic » 24 Apr 2020 08:30

Hi,

According to the RoadMap section from Necto's webpage , it's planned for the near future (Q2 2020.).
I will inform you of the precise date.

Kind regards,
Stefan Filipović

trebla
Posts: 12
Joined: 26 Aug 2019 10:52

Re: Libraries missing?

#10 Post by trebla » 13 Oct 2020 10:22

I installed Necto version 1.3.1 and trying to make some test programs. When i started new project as SDK2 project i can not reach MikroC libraries (for example UART or LCD), Library manager lets me select/unselect only MikroC.Core library. If i start project as legacy project, then i can use only MikroC libraries but not SDK2. How i can use SDK2 for click boards and MikroC libraries in same project?

User avatar
filip.grujcic
Posts: 822
Joined: 14 May 2018 08:34

Re: Libraries missing?

#11 Post by filip.grujcic » 14 Oct 2020 14:39

Hello,

The only way to do this right now is to include the precompiled legacy libraries to your mikroSDK 2.0 project as "binaries".
First you have to find the .emcl file of the legacy library you wish to use, they are located in:
...\AppData\Local\Mikroe\NectoStudio\mikrosdk\v6.2.0 (for ARM)
...\AppData\Local\Mikroe\NectoStudio\mikrosdk\v7.6.0 (for PIC)
The easiest thing is to just copy the .emcl file to your project folder (where memake.txt is located) and add the name of the .emcl file to a binaries block in the memake.txt file. Take a look at the following screenshot:

Screenshot_2.png
Screenshot_2.png (13.54 KiB) Viewed 5398 times

In this example LCD library is used, which relies on GPIO library, so that one had to be copied as well.
If you need more information about legacy libraries, it is available on the following links:
https://help.mikroe.com/legacy/arm/
https://help.mikroe.com/legacy/pic/

Best regards,
Filip Grujcic

trebla
Posts: 12
Joined: 26 Aug 2019 10:52

Re: Libraries missing?

#12 Post by trebla » 15 Oct 2020 18:40

Thanks, it works. Somewhat annoying to add libraries like this, i hope in future it will be simpler. It would be nice if the libraries could be added with #include directive or like in CCS "use some_library".

Post Reply

Return to “PIC AI compilers”