Jump to content

including modules question


JoE55
 Share

Recommended Posts

Hi guys, I was impressed by your website, read it over and over again. Ordered the parts for a NG. (Thanks again Smashtv-Tim for your efforts.) Built it in a day, but understanding the software takes me a little longer. Maybe because my last programming experience was in the 70s... in Pascal. C(++) is new to me, but i'm getting the hang of it.
 
The midibox works, Mios Studio and the toolchain with Eclipse do, and I've scribbled some lines in the skeleton's app.c (a keyzone midifilter). Even that workes fine. Using Windows 7. 
Now I want to take a more modular approach, but I'm having problems including modules into my program, even the existing ones in the repository. 
I tried to include through the makefile of the skeleton. Like this:
 
include $(MIOS32_PATH)/modules/midi_filters/midi_filters.mk
 
Checked the paths and preferences, but I keep getting error messages, saying that the (modules) file or directory does not exist.
 
make all 
rm -f project.hex
arm-none-eabi-gcc.exe: project_build//C/Users/Joost/Midibox/SVNmios32/trunk/modules/midi_filters/midi_filters.o: No such file or directory
make: *** [project_build/project.elf] Error 1
 
Does anyone see where I go wrong?
 
Edited by JoE55
Link to comment
Share on other sites

Hi TK, thanks for your reply.

 

That's exactly what's in my midi_filters.mk. I tried other modules like midimon too, but get the same result.

 

What I can't figure out is that the modules that were already in the skeleton makefile (programming_model, app_lcd, common -no errors there-) are included, but the others can't be.

 

My guess is that I am overlooking something in the preferences, but I can't figure out what. Even tried to copy a module in the projects workspace and change the path in de makefile, but that didn''t work either.  

 

Kind regards, Joost.

Link to comment
Share on other sites

Could you please type "make clean"

And then "make" again?

 

Maybe there is some kind of artifact in the project_build directory which leads to this effect.

 

Best Regards, Thorsten.

 

P.S.: "make clean" will just delete the project_build directory... 

Link to comment
Share on other sites

Alright, this was some kind of "unwritten rule"!

 

In order to ensure, that somebody else won't be blocked by the same issue, I added following comment to all existing Makefiles:

 

# common make rules
# Please keep this include statement at the end of this Makefile. Add new modules above.
include $(MIOS32_PATH)/include/makefile/common.mk

 

 

Best Regards, Thorsten.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
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.

Loading...
 Share

×
×
  • Create New...