Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - jamespero

#1
Thanks guys.

StephenD, I was able to gather that much. I've gotten QEMU installed on my system, but still haven't seemed to figure out the reason the QEMU includes aren't being included when I'm building. I haven't had a lot of time to work on it this past 2 weeks so I'm still in the same place I was when I posted my previous post.
#2
Quote from: dmilligan on July 04, 2014, 04:11:20 AM
it's for QEMU, what branch are you trying to compile? did you do a make clean?

I'm trying to compile count's 100D wrk-qemu branch - https://bitbucket.org/berlincount/magic-lantern/commits/all

I've got qemu installed via homebrew, but I think I'm still missing something. I've run a make clean and that seems to complete without error.

I guess at this point I need a little guidance with qemu to make sure I have it installed and configured... :/
#3
Hey everybody,

I'm new to ML and somewhat new to C programming. I'm trying to get up to speed with ML development so that I can try and get development for the SL1/100D moving a little faster. I'm currently dealing with an error while trying to compile:

make -C  /Users/James/documents/repositories/magic-lantern/platform/100D.100
[ VERSION  ]   ../../platform/100D.100/version.bin
[ VERSION  ]   ../../platform/100D.100/version.c
[ CC       ]   version.o
[ CC       ]   boot-hack.o
../../src/boot-hack.c: In function 'my_task_dispatch_hook':
../../src/boot-hack.c:302:5: error: implicit declaration of function 'qprintf' [-Werror=implicit-function-declaration]
     qprintf("dispatch context->pc=0x%08X entry=0x%08X\n", context->pc, task->entry);
     ^
cc1: some warnings being treated as errors
make[1]: *** [boot-hack.o] Error 1
make: *** [100D] Error 2


Based on my experience with programming in php and javascript and a little with arduino, I'm guessing qprintf is not exactly a required element in getting ML to compile but I'm not familiar with qprintf specifically unlike printf and sprintf. Can someone tell me if this is something I need to worry about or how to get this error resolved?

[EDIT]

I'm thinking there's an include that missing from boot-hack.c like stdio.h or the like, but again I'm new to ML and mostly new to C so I'm not entirely sure.
#4
Ok I've got the repo cloned and the tool chain setup and I'm ready to rock and roll. I'm trying to do a build right now, but I'm running into some issues. Here's my console output:

make -C  /Users/James/documents/repositories/magic-lantern/platform/100D.100
[ VERSION  ]   ../../platform/100D.100/version.bin
[ VERSION  ]   ../../platform/100D.100/version.c
[ CC       ]   version.o
[ CC       ]   boot-hack.o
../../src/boot-hack.c: In function 'my_task_dispatch_hook':
../../src/boot-hack.c:302:5: error: implicit declaration of function 'qprintf' [-Werror=implicit-function-declaration]
     qprintf("dispatch context->pc=0x%08X entry=0x%08X\n", context->pc, task->entry);
     ^
cc1: some warnings being treated as errors
make[1]: *** [boot-hack.o] Error 1
make: *** [100D] Error 2


I'm not very familiar with C, but I know enough to be dangerous and I can usually figure things out as I go; however, this one is trying me. I can comment out the qprintf line and it moves on just fine but I'm not sure if that specifically actually needs to be there... Any advice??? Is this just print out for visual purposes or is this something more important? Also to note, if I comment it out, the next time qprintf comes up, the same issue happens for that one as well.
#5
What Marsu said.
#6
Quote from: edwarddebruyn on May 28, 2014, 01:51:07 PMor is it to soon ?

Probably. Hello world was only achieved yesterday, I don't there's been a whole lot else done at the point, although I can't speak for count.
#7
Hooray!  :D