Jump to content

MPLabX 4.00 giving 'recipe failed' error with Chameleon.

Recommended Posts

Using BoostC 7.43 on MPLabX 4.00 on Windows 7 with PIC18F25K22.

I newly installed version 7.43, standard BoostC compile works fine.

I presume that the Chameleon compiler supports the PIC18F25K22.

When I add -force_chameleon to compiler additional options, I get this result:


CLEAN SUCCESSFUL (total time: 113ms)
make -f nbproject/Makefile-default.mk SUBPROJECTS= .build-conf
make[1]: Entering directory 'C:/PICProjects/GPS'
make  -f nbproject/Makefile-default.mk dist/default/production/GPS.production.hex
make[2]: Entering directory 'C:/PICProjects/GPS'
gnumkdir -p build/default/production
"C:\Program Files (x86)\SourceBoost\xlaunch.exe"  -t PIC18F25K22 -obj "build/default/production" -o "build/default/production/GPS.o"  GPS.c  -force_chameleon
nbproject/Makefile-default.mk:101: recipe for target 'build/default/production/GPS.o' failed
gnumkdir -p dist/default/production
make[2]: [build/default/production/GPS.o] Error -1073741515 (ignored)
"C:\Program Files (x86)\SourceBoost\boostlink_picmicro.exe" -t PIC18F25K22 -ld "C:\Program Files (x86)\SourceBoost"\lib -p dist/default/production/GPS.production.hex build/default/production/GPS.o   libc.pic18.lib  
BoostLink Optimizing Linker Version 7.43
Copyright(C) 2004-2018 Pavel Baranov
Copyright(C) 2004-2018 David Hobday
Error: Failed to open:GPS.o
make[2]: *** [dist/default/production/GPS.production.hex] Error -2
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2
nbproject/Makefile-default.mk:115: recipe for target 'dist/default/production/GPS.production.hex' failed
make[2]: Leaving directory 'C:/PICProjects/GPS'
nbproject/Makefile-default.mk:90: recipe for target '.build-conf' failed
make[1]: Leaving directory 'C:/PICProjects/GPS'
nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed

BUILD FAILED (exit value 2, total time: 1s)


I cut the program down to nearly nothing, just a Main routine(see attached).

Any ideas?


Link to post
Share on other sites

Repeated test with MPLabX v5.15 and default C  program generated by MPLabX.

Results are the same as detailed in previous post - compiles fine with BoostC, using Chameleon compiler fails with 'recipe for target xxx failed' error.

Error refers to line 101 of nbproject/Makefile-default.mk file which I have attached to this post.

Has anyone else seen this?


Link to post
Share on other sites

PROBLEM SOLVED, my PC needed msvcp120.dll from the Microsoft Visual C++ Redistributable Package for Visual Studio 2013.

I have a 64 bit computer, so I installed both the 64 bit and 32 bit versions as recommended by Microsoft.

I discovered the need for this dll by running the Chameleon compiler via c_pic18.exe command line interface.

Hope this helps someone with a similar problem...

Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...