Magic Lantern Forum

Developing Magic Lantern => General Development => Topic started by: RenatoPhoto on May 06, 2013, 10:19:54 PM

Title: Questions regarding compilation, TCC
Post by: RenatoPhoto on May 06, 2013, 10:19:54 PM
Quote from: 1% on May 06, 2013, 04:59:39 PM
Main repo has it, just enable TCC and modules.

Thanks but I dont know which modules to enable.  I found a dir with a few modules including lv_rec.
Also dont know how to enable TCC. 

Any post that has these instructions?
Title: Re: Questions regarding compilation, TCC
Post by: 1% on May 06, 2013, 10:25:53 PM
Makefile.user, mark TCC and Modules y

make in the lv_rec folder... rename magiclantern.sym to MAGIC.SYM
Title: Re: Questions regarding compilation, TCC
Post by: RenatoPhoto on May 06, 2013, 10:46:44 PM
Quote from: 1% on May 06, 2013, 10:25:53 PM
Makefile.user, mark TCC and Modules y

make in the lv_rec folder... rename magiclantern.sym to MAGIC.SYM

I know how to edit Makefile.user but.. dont know what you mean by mark.  Can you post your makefile.user so I know what to put in mine?
Also I can went to lv_rec folder in the modules and type make but got erros:

$ make
[ CC       ]   lv_rec.o
lv_rec.c:1:20: fatal error: module.h: No such file or directory
compilation terminated.
/home/PH/magic-lantern/modules/lv_rec/../../Makefile.inc:746: recipe for target `lv_rec.o' failed
make: *** [lv_rec.o] Error 1
Title: Re: Questions regarding compilation, TCC
Post by: 1% on May 06, 2013, 11:04:15 PM

CONFIG_TCC          = y
CONFIG_MEMCHECK     = y
CONFIG_MODULES      = y


and make clean then make 5D3
Title: Re: Questions regarding compilation, TCC
Post by: RenatoPhoto on May 06, 2013, 11:13:36 PM
Quote from: 1% on May 06, 2013, 11:04:15 PM

CONFIG_TCC          = y
CONFIG_MEMCHECK     = y
CONFIG_MODULES      = y


and make clean then make 5D3

ok, done but got tcc errors

../../src/tcc-glue.c: In function 'tcc_compile_and_run':
../../src/tcc-glue.c:34:9: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
../../src/tcc-glue.c:39:11: warning: 'main' is usually a function [-Wmain]
../../src/tcc-glue.c:66:9: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
../../src/tcc-glue.c: In function 'open':
../../src/tcc-glue.c:146:5: warning: passing argument 2 of 'FIO_GetFileSize' from incompatible pointer type [enabled by default]
../../src/dryos.h:518:1: note: expected 'uint32_t *' but argument is of type 'unsigned int *'
../../src/tcc-glue.c: In function 'read':
../../src/tcc-glue.c:179:5: warning: passing argument 2 of 'memcpy' makes pointer from integer without a cast [enabled by default]
../../src/dryos.h:535:1: note: expected 'const void *' but argument is of type 'long unsigned int'
../../src/tcc-glue.c: In function 'close':
../../src/tcc-glue.c:187:5: warning: passing argument 1 of 'free_dma_memory' makes pointer from integer without a cast [enabled by default]
../../src/dryos.h:544:1: note: expected 'const void *' but argument is of type 'int'
../../src/tcc-glue.c: In function 'fputc':
../../src/tcc-glue.c:240:1: warning: number of arguments doesn't match built-in prototype [enabled by default]
../../src/tcc-glue.c: In function 'tcc_compile_and_run':
../../src/tcc-glue.c:78:8: warning: 's' may be used uninitialized in this function [-Wuninitialized]
[ CC       ]   tcc-gui.o
[ CC       ]   script_lib.o
make -C ../../tcc
make[2]: se ingresa al directorio `/home/PH/magic-lantern/tcc'
../../../arm-toolchain462/bin/arm-none-eabi-gcc-4.6.2.exe -o libtcc.o -c libtcc.c -DTCC_TARGET_ARM -DWITHOUT_LIBTCC -I.  -Os -fno-strict-aliasing -Wno-pointer-sign -Wno-sign-compare -Wno-unused-result
make[2]: ../../../arm-toolchain462/bin/arm-none-eabi-gcc-4.6.2.exe: No se encontrĂ³ el programa
Makefile:189: recipe for target `libtcc.o' failed
make[2]: *** [libtcc.o] Error 127
make[2]: se sale del directorio `/home/PH/magic-lantern/tcc'
../../Makefile.inc:378: recipe for target `../../tcc/libtcc.a' failed
make[1]: *** [../../tcc/libtcc.a] Error 2
make[1]: se sale del directorio `/home/PH/magic-lantern/platform/5D3.113'
Makefile:70: recipe for target `5D3' failed
make: *** [5D3] Error 2


Here is my Makefile.user:

GCC_VERSION=4.6.2
ARM_ABI=none-eabi
ARM_PATH=../../../arm-toolchain462
ARM_LIBC_A=../../../arm-toolchain462/arm-none-eabi/lib/libc.a
PYTHON=python2.6
CONFIG_TCC          = y
CONFIG_MEMCHECK     = y
CONFIG_MODULES      = y
Title: Re: Questions regarding compilation, TCC
Post by: 1% on May 06, 2013, 11:53:15 PM
You need upgrade arm toolchain. Still using an old version.

gcc-arm-none-eabi-4_7-2012q4 is what I'm using.
Title: Re: Questions regarding compilation, TCC
Post by: RenatoPhoto on May 07, 2013, 12:09:40 AM
Do I also need to install TCC? 
Title: Re: Questions regarding compilation, TCC
Post by: 1% on May 07, 2013, 12:13:10 AM
TCC stuff should already be with ML. I don't have tcc installed on the linux box.
Title: Re: Questions regarding compilation, TCC
Post by: RenatoPhoto on May 07, 2013, 02:05:34 AM
Originally my gcc was installed using Yagarto.  For new update then should I install new yagarto installer or should I download gcc for windows zip file from https://launchpad.net/gcc-arm-embedded?
Title: Re: Questions regarding compilation, TCC
Post by: 1% on May 07, 2013, 02:41:17 AM
On linux I just got the zip so I guess windows shouldn't be different. I thought yagarto was for OSX.
Title: Re: Questions regarding compilation, TCC
Post by: minimimi on May 07, 2013, 03:09:48 AM
@RenatoPhoto

I think you may not use developers time for your "installing" support.
If you want to use this function, you may learn development things.
Because, I think that it's better to spent developers time for actual development.
It's faster to get release version of this function when we don't use developers' time.
Title: Re: Questions regarding compilation, TCC
Post by: RenatoPhoto on May 07, 2013, 04:15:19 AM
@minimimi

Nobody is forcing anyone to answer any questions.  If 1% does not have time to answer any questions then he should not answer.

You are right, I am not a developer.  I am trying to learn and I only ask questions after I have spent some time researching for the answers but in this case I cannot find any answers as to how to do this RAW video thing.

Title: Re: Questions regarding compilation, TCC
Post by: minimimi on May 07, 2013, 07:44:21 AM
@RenatoPhoto
I'm not English native speaker. So if you get a bad feeling from my message, please ignore.

Anyway, The answer of installing questions are including source codes. (I'm not asking anyone, but the source codes are said to me everything)
1% is answerd 1st message, but you don't read Makefile.inc and Makefile(or do not find tcc and module things in souce codes), so you can't understand it.
So I wrote the message.
Title: Re: Questions regarding compilation, TCC
Post by: minimimi on May 07, 2013, 11:57:29 AM
@RenatoPhoto

The key point is here.
make[2]: ../../../arm-toolchain462/bin/arm-none-eabi-gcc-4.6.2.exe: No se encontrĂ³ el programa

I can't read it.
Also , we are already moved to gcc-4.6.2 to gcc-4.7
Upgrade first , and then check your gcc path.
Title: Re: Questions regarding compilation, TCC
Post by: RenatoPhoto on May 07, 2013, 05:07:11 PM
Thanks but..

I installed the new Yagarto which also installed the gcc-472.  I did this since that is the way I originally installed magic lantern based on the windows setup recommended by Pel here:  http://www.magiclantern.fm/forum/index.php?topic=2899.msg14021#msg14021

With this new gcc I am able to also compile 5D3 but if I enable the modules:

CONFIG_TCC          = y
CONFIG_MEMCHECK     = y
CONFIG_MODULES      = y

I get the same error as before but now for gcc 472 instead of 462

[ CC       ]   tcc-gui.o
[ CC       ]   script_lib.o
make -C ../../tcc
make[2]: se ingresa al directorio `/home/PH/magic-lantern/tcc'
../../../arm-toolchain472/bin/arm-none-eabi-gcc-4.7.2.exe -o libtcc.o -c libtcc.c -DTCC_TARGET_ARM -DWITHOUT_LIBTCC -I.  -Os -fno-strict-aliasing -Wno-pointer-sign -Wno-sign-compare -Wno-unused-result
make[2]: ../../../arm-toolchain472/bin/arm-none-eabi-gcc-4.7.2.exe: No se encontrĂ³ el programa
Makefile:189: recipe for target `libtcc.o' failed
make[2]: *** [libtcc.o] Error 127
make[2]: se sale del directorio `/home/PH/magic-lantern/tcc'
../../Makefile.inc:378: recipe for target `../../tcc/libtcc.a' failed
make[1]: *** [../../tcc/libtcc.a] Error 2
make[1]: se sale del directorio `/home/PH/magic-lantern/platform/5D3.113'
Makefile:70: recipe for target `5D3' failed
make: *** [5D3] Error 2

I see that the new Makefile.user call for GGG 473 but Yagarto does not have that included in their installation, Yagarto has gcc 472.

So the question is the same as posted before:

Do I need to install the GCC from  https://launchpad.net/gcc-arm-embedded?

Will the installation of GCC from  https://launchpad.net/gcc-arm-embedded (which is a zip file for windows) work or will I damage my ability to compile my 5D3 with windows.

Title: Re: Questions regarding compilation, TCC
Post by: 1% on May 07, 2013, 05:09:53 PM
Yea, need to upgrade.
Title: Re: Questions regarding compilation, TCC
Post by: minimimi on May 07, 2013, 05:25:46 PM
Quote from: RenatoPhoto on May 07, 2013, 05:07:11 PM
make[2]: ../../../arm-toolchain472/bin/arm-none-eabi-gcc-4.7.2.exe: No se encontrĂ³ el programa

Is this means "program not found" . right?
Then you may try to check

# cd magic-lantern
# ../../../arm-toolchain472/bin/arm-none-eabi-gcc-4.7.2.exe


Show us a output of this .
Title: Re: Questions regarding compilation, TCC
Post by: minimimi on May 07, 2013, 05:31:40 PM
I think you have no problem to use yagarto maybe,....

BTW, I'm also using windows, but we had a sometime problems on windows environment.
So I recommend you to use vmware player and build on Linux.
Ofcource I'm using linux with vmware player.
Title: Re: Questions regarding compilation, TCC
Post by: RenatoPhoto on May 07, 2013, 08:05:43 PM
The saga continues:

Downloaded the latest zip file for: gcc-arm-none-eabi-4_7-2013q1-20130313-win32
Unzipped to /arm-toolchain473 directory

changed the Makefile.user file to:

GCC_VERSION=4.7.3
ARM_ABI=none-eabi
ARM_PATH=../../../arm-toolchain473
ARM_LIBC_A=../../../arm-toolchain473/arm-none-eabi/lib/libc.a
PYTHON=python2.6
CONFIG_TCC          = y
CONFIG_MEMCHECK     = y
CONFIG_MODULES      = y

make clean and make 5D3 and ...
Same error.

then removed the modules and make clean and make 5D3 and ...

It works, I build 5D3

I dont know why under TCC it cannot find the toolchain.  The error reads;

[ CC       ]   tcc-gui.o
[ CC       ]   script_lib.o
make -C ../../tcc
make[2]: enters directory `/home/PH/magic-lantern/tcc'
../../../arm-toolchain473/bin/arm-none-eabi-gcc-4.7.3.exe -o libtcc.o -c libtcc.c -DTCC_TARGET_ARM -DWITHOUT_LIBTCC -I.  -Os -fno-strict-aliasing -Wno-pointer-sign -Wno-sign-compare -Wno-unused-result
make[2]: ../../../arm-toolchain473/bin/arm-none-eabi-gcc-4.7.3.exe: cannot find the program (this is written is spanish)
Makefile:189: recipe for target `libtcc.o' failed
make[2]: *** [libtcc.o] Error 127
make[2]: se sale del directorio `/home/PH/magic-lantern/tcc'
../../Makefile.inc:378: recipe for target `../../tcc/libtcc.a' failed
make[1]: *** [../../tcc/libtcc.a] Error 2
make[1]: se sale del directorio `/home/PH/magic-lantern/platform/5D3.113'
Makefile:70: recipe for target `5D3' failed
make: *** [5D3] Error 2



Title: Re: Questions regarding compilation, TCC
Post by: 1% on May 07, 2013, 10:04:38 PM
Its not parsing paths properly....

Title: Re: Questions regarding compilation, TCC
Post by: RenatoPhoto on May 07, 2013, 11:30:29 PM
Is there another way to set the paths? 
Can full paths be used?
Title: Re: Questions regarding compilation, TCC
Post by: minimimi on May 08, 2013, 01:38:06 PM
Do you understand what meanning of "../" ?
So can you make a relative path from magic-lantern/tcc directory?

Then you may put this line after "-include $(TOP)/../Makefile.user" in tcc/Makefile

CC=../../path/of/your/arm-noneeabi-gcc.exe
Title: Re: Questions regarding compilation, TCC
Post by: RenatoPhoto on May 08, 2013, 03:25:18 PM
Thanks for the time you take to help with this issue.  I really appreciated and I assume that this will have to be take care at some point so that other people using windows compiler will have to resolve in order to get some of these TCC module options.  So I hope that the time spent fixing this will help someone else too.

I made the changes as sugguested. 
Here is a portion of the Makefile in TCC directory:

include $(TOP)/../Makefile.user.default
-include $(TOP)/../Makefile.user
CC=../../arm-toolchain473/bin/arm-none-eabi-gcc-4.7.3.exe

After make clean and make 5D3 now a new error shows up:

make -C ../../tcc
make[2]: se ingresa al directorio `/home/PH/magic-lantern/tcc'
../../../arm-toolchain473/bin/arm-none-eabi-ar rcs libtcc.a libtcc.o tccpp.o tccgen.o tccelf.o tccasm.o tccrun.o arm-gen.o
make[2]: ../../../arm-toolchain473/bin/arm-none-eabi-ar: cannot find the program
Makefile:193: recipe for target `libtcc.a' failed
make[2]: *** [libtcc.a] Error 127
make[2]: leaving directory `/home/PH/magic-lantern/tcc'
../../Makefile.inc:378: recipe for target `../../tcc/libtcc.a' failed
make[1]: *** [../../tcc/libtcc.a] Error 2
make[1]: leaving directory `/home/PH/magic-lantern/platform/5D3.113'
Makefile:70: recipe for target `5D3' failed
make: *** [5D3] Error 2

In this case there is no "arm-none-eabi-ar" program under the gcc directory, I only found  the "arm-none-eabi-ar.exe"



Title: Re: Questions regarding compilation, TCC
Post by: 1% on May 08, 2013, 04:23:22 PM
search for that line and add the exe extension.
Title: Re: Questions regarding compilation, TCC
Post by: minimimi on May 08, 2013, 05:54:18 PM
Quote from: RenatoPhoto on May 08, 2013, 03:25:18 PM
In this case there is no "arm-none-eabi-ar" program under the gcc directory, I only found  the "arm-none-eabi-ar.exe"

1% means a
also add this line after CC=
AR=../../arm-toolchain473/bin/arm-none-eabi-ar.exe

Title: Re: Questions regarding compilation, TCC
Post by: minimimi on May 08, 2013, 06:06:24 PM
Quote from: RenatoPhoto on May 08, 2013, 03:25:18 PM
Thanks for the time you take to help with this issue.  I really appreciated and I assume that this will have to be take care at some point so that other people using windows compiler will have to resolve in order to get some of these TCC module options.  So I hope that the time spent fixing this will help someone else too.

hmm, off topic sorry.
I'm worried about that people didn't understand the risk of this cutting-edge codes  who is this skill level such as you.
Then, maybe peoples will send canon customer center when their camera is bricked.
Canon need to pay more recovery cost , and canon will start to attack our community IMHO.

So maybe, I think the best thing is we do not support install support for cutting-edge codes.

So I think you can not install yourself , I recommend you to wait a release version.
Title: Re: Questions regarding compilation, TCC
Post by: RenatoPhoto on May 09, 2013, 01:39:08 AM
Quote from: minimimi on May 08, 2013, 06:06:24 PM

I'm worried about that people didn't understand the risk of this cutting-edge codes  who is this skill level such as you.
Then, maybe peoples will send canon customer center when their camera is bricked.
Canon need to pay more recovery cost , and canon will start to attack our community IMHO.

hmm, OFF TOPIC SORRY.

Why do you worry about what I do or not do!  I take my own risk, just like everybody else, and I am not stupid just a nob.

So if you want to help that is great, if you dont, then that is great too!  This is a free world and free software which by the way I contributed economically.

If you want to discuss abut risk and what Canon will do then open another thread.  This thread is about help required compiling with TCC.

Title: Re: Questions regarding compilation, TCC
Post by: RenatoPhoto on May 09, 2013, 10:07:22 PM
Ok done.

Progress made...

New error:

[ LD       ]   magiclantern
tcc-gui.o: In function `handle_picoc_keys':
tcc-gui.c:(.text+0x518): multiple definition of `handle_picoc_keys'
picoc.o:picoc.c:(.text+0x660): first defined here
tcc-gui.o: In function `script_setup_param':
tcc-gui.c:(.text+0x5c8): multiple definition of `script_setup_param'
picoc.o:picoc.c:(.text+0x72c): first defined here
tcc-gui.o: In function `script_reset_params':
tcc-gui.c:(.text+0x620): multiple definition of `script_reset_params'
picoc.o:picoc.c:(.text+0x784): first defined here
tcc-gui.o: In function `script_open_submenu':
tcc-gui.c:(.text+0x9a8): multiple definition of `script_open_submenu'
picoc.o:picoc.c:(.text+0xb0c): first defined here
tcc-gui.o: In function `script_setup_title':
tcc-gui.c:(.text+0xa28): multiple definition of `script_setup_title'
picoc.o:picoc.c:(.text+0xb8c): first defined here
tcc-gui.o: In function `script_key_dequeue':
tcc-gui.c:(.text+0xa5c): multiple definition of `script_key_dequeue'
picoc.o:picoc.c:(.text+0xbc0): first defined here
tcc-gui.o: In function `script_key_enqueue':
tcc-gui.c:(.text+0xa9c): multiple definition of `script_key_enqueue'
picoc.o:picoc.c:(.text+0xc00): first defined here
tcc-gui.o:(.bss+0x4): multiple definition of `script_stop_requested'
picoc.o:(.bss+0x4): first defined here
dietlibc.a(vsscanf.o): In function `vsscanf':
vsscanf.c:(.text+0x5c): warning: warning: the scanf functions add several kilobytes of bloat.
dietlibc.a(sprintf.o): In function `sprintf':
sprintf.c:(.text+0x14): warning: warning: Avoid *sprintf; use *snprintf. It is more secure.
collect2.exe: error: ld returned 1 exit status
../../Makefile.inc:440: recipe for target `magiclantern' failed
make[1]: *** [magiclantern] Error 1
make[1]: se sale del directorio `/home/PH/magic-lantern/platform/5D3.113'
Makefile:70: recipe for target `5D3' failed
make: *** [5D3] Error 2

Title: Re: Questions regarding compilation, TCC
Post by: 1% on May 09, 2013, 10:10:49 PM
Can't have picoC and tcc at the same time... you can try tinypy.. need to build the module too. I haven't added it to mine because I don't see any tinypy scripts :(
Title: Re: Questions regarding compilation, TCC
Post by: RenatoPhoto on May 09, 2013, 10:36:25 PM
Ok, I disabled PicoC in Makefile.user

CONFIG_PICOC = n

.. make clean and make 5D3

It compiled!!!!!!!

No with the last step.

I went to module lv_rec and make but got error, I suppose I should fix this before I compile...

Here is the make at lv_rec directory

H@PH-Laotop ~/magic-lantern/modules/lv_rec
$ make
[ CC       ]   lv_rec.o
lv_rec.c:1:20: fatal error: module.h: No such file or directory
compilation terminated.
/home/PH/magic-lantern/modules/lv_rec/../../Makefile.inc:748: recipe for target `lv_rec.o' failed
make: *** [lv_rec.o] Error 1
Title: Re: Questions regarding compilation, TCC
Post by: 1% on May 09, 2013, 11:02:08 PM
Lv_rec is broken in the repo there is a fix on the forums... are modules enabled?
Title: Re: Questions regarding compilation, TCC
Post by: RenatoPhoto on May 09, 2013, 11:16:43 PM
Yes in Makefile.user

CONFIG_TCC          = y
CONFIG_MEMCHECK     = y
CONFIG_MODULES      = y

Will have to wait until repo is updated?
Title: Re: Questions regarding compilation, TCC
Post by: hookah on May 10, 2013, 05:38:09 PM
There is a fix here:

http://www.magiclantern.fm/forum/index.php?topic=5247.msg33676#msg33676
Title: Re: Questions regarding compilation, TCC
Post by: RenatoPhoto on May 10, 2013, 07:46:15 PM
Thanks but dont know where to put it and what to take out.  Not a programmer. 
Why is the repo not fixed?
Title: Re: Questions regarding compilation, TCC
Post by: RenatoPhoto on May 12, 2013, 04:05:47 PM
I am trying to compile latest raw_rec in WINDOWS as noted on the instructions by Alex:

+ * Usage:
1 enable modules in Makefile.user (CONFIG_MODULES = y, CONFIG_TCC = y, CONFIG_PICOC = n, CONFIG_CONSOLE = y)
2 run "make" from modules/raw_rec to compile this module and the DNG converter
3 run "make install" from platform dir to copy the modules on the card
4 from Module menu: Load modules now
5 look in Movie menu

but got the error:

$ make
[ CC       ]   raw_rec.o
raw_rec.c:20:20: fatal error: module.h: No such file or directory
compilation terminated.
/home/PH/magic-lantern/modules/raw_rec/../../Makefile.inc:749: recipe for target `raw_rec.o' failed
make: *** [raw_rec.o] Error 1



Title: Re: Questions regarding compilation, TCC
Post by: 1% on May 12, 2013, 07:28:40 PM
Path to module.h is wrong. Check its makefile I guess.
Title: Re: Questions regarding compilation, TCC
Post by: tferradans on May 12, 2013, 07:50:23 PM
Same problem here! help, please! There's not even a mention to module.h in makefile...
Title: Re: Questions regarding compilation, TCC
Post by: 1% on May 12, 2013, 08:17:59 PM
Which makefile... there is the main one and the one for the module itself. Paths are wrong in one of them.
Title: Re: Questions regarding compilation, TCC
Post by: tferradans on May 12, 2013, 09:06:44 PM
to compile the module, i think that I'm using the one in raw_rec folder...
Title: Re: Questions regarding compilation, TCC
Post by: ozcancelik on May 12, 2013, 09:46:11 PM
I have no problem with compiling but when i come back to camera and click "Load Modules Now" it says "Linking, Init modules, Modules Loaded". But i guess nothing loaded. There is no change in Movie menu.
Title: Re: Questions regarding compilation, TCC
Post by: scrax on May 13, 2013, 06:01:55 AM
Quote from: ozcancelik on May 12, 2013, 09:46:11 PM
I have no problem with compiling but when i come back to camera and click "Load Modules Now" it says "Linking, Init modules, Modules Loaded". But i guess nothing loaded. There is no change in Movie menu.
you should have a new menu for the module loaded last item to the right
Title: Re: Questions regarding compilation, TCC
Post by: Audionut on May 13, 2013, 07:16:06 AM
I got it all compiled but when trying to load module in camera,

(https://dl.dropboxusercontent.com/u/34113196/Camera%20stuff/ML/VRAM1.BMP)

Compile log https://www.dropbox.com/s/jnkndms1l57bcgl/log.txt

Quotemake -C ../../tcc
make[2]: Entering directory `/home/magiclantern/magic-lantern/tcc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/magiclantern/magic-lantern/tcc'

edit:  I didn't have raw_rec.o in place.  Did that then got this.

(https://dl.dropboxusercontent.com/u/34113196/Camera%20stuff/ML/VRAM0.BMP)

And as below, nothing extra appears in the movie menu.

I then replaced everything with the files from the uploaded build in this thread,
http://www.magiclantern.fm/forum/index.php?topic=5247.msg34203;topicseen#msg34203
and get nothing at all?

edit2:  Didn't have the FLEXINFO.XML either.  Copied that into place and bingo!

Holy crap, Lexar 1000x here I come!
Title: Re: Questions regarding compilation, TCC
Post by: ozcancelik on May 13, 2013, 07:28:10 AM

Quote from: scrax on May 13, 2013, 06:01:55 AM
you should have a new menu for the module loaded last item to the right
Thats the problem :) M menu is there(top right). Raw_rec compiled with no problem and copy paste ML/MODULES/raw_rec. It says "load modules... Loaded." But Movie menu still same no raw menu added.
Title: Re: Questions regarding compilation, TCC
Post by: Audionut on May 13, 2013, 04:09:13 PM
I've just tried compiling myself again and I'm getting the same as below.

Quote from: Audionut on May 13, 2013, 07:16:06 AM
(https://dl.dropboxusercontent.com/u/34113196/Camera%20stuff/ML/VRAM0.BMP)

My magiclantern.sym file is 0 bytes? :(
Title: Re: Questions regarding compilation, TCC
Post by: a1ex on May 13, 2013, 04:14:08 PM
[ SYMBOLS  ]   magiclantern.sym
/bin/sh: 1: gawk: not found
Title: Re: Questions regarding compilation, TCC
Post by: Audionut on May 13, 2013, 04:28:14 PM
http://ftp.gnu.org/gnu/gawk/

Am I on the right track?  Is so, do I have to compile anything or just place the source files in the correct location?
Title: Re: Questions regarding compilation, TCC
Post by: RenatoPhoto on May 13, 2013, 06:32:43 PM
Quote from: tferradans on May 12, 2013, 07:50:23 PM
Same problem here! help, please! There's not even a mention to module.h in makefile...

I found the module.h but it is in the raw_rec file.  It reads
#include <module.h>

So I gave it a path this way:

#include "../../src/module.h"

so now it goes to the next include with the same error.  So I changed the raw-rec file again.
from:
#include <dryos.h>
to:
#include "../../src/dryos.h"

but this leads to a new error:

$ make
[ CC       ]   raw_rec.o
In file included from ../../src/dryos.h:33:0,
                 from raw_rec.c:21:
../../src/config-defines.h:62:50: fatal error: internals.h: No such file or directory
compilation terminated.
/home/PH/ML/modules/raw_rec/../../Makefile.inc:749: recipe for target `raw_rec.o' failed
make: *** [raw_rec.o] Error 1

So, I dont know what to do.  This is way above my head..

I wonder if the people that have compiled raw_rec module are doing in:

1. windows machine with cygwin?
2. windows machine with VmPlayer?
3. Linux machine?

I am using windows 7 32 bit machine with Cygwin
btw I also tried cloning my directory in case that something messed up but now luck.

I hope someone can clear this for me and others!
Title: Re: Questions regarding compilation, TCC
Post by: tferradans on May 13, 2013, 09:10:08 PM
Help here too! whenever I try to 'make install', it crashes copying to the card.
mkdir: cannot create directory '/media/EOS_DIGITAL': Permission denied

I tried to change permissions, and didn't work either.

Is there a command line for not transfering stuff straight to the card, like, creating a zip file, or something like it (putting all compiled files into a single folder, maybe)?
Title: Re: Questions regarding compilation, TCC
Post by: tferradans on May 13, 2013, 09:16:40 PM
RenatoPhoto, yesterday I tried like hell to make cygwin work. Managed to get a regular compile, but for the module part, didn't work.

So I installed a VirtualMachine (VM VirtualBox), and used the files from nanomad's nightly server. Just download and extract the bigger one. All autoexec compiling will work great. :)

http://nanomad.magiclantern.fm/Development%20Box/VirtualBox/
Title: Re: Questions regarding compilation, TCC
Post by: tferradans on May 13, 2013, 09:21:28 PM
Quote from: tferradans on May 13, 2013, 09:10:08 PM
Help here too! whenever I try to 'make install', it crashes copying to the card.
mkdir: cannot create directory '/media/EOS_DIGITAL': Permission denied

I tried to change permissions, and didn't work either.

Is there a command line for not transfering stuff straight to the card, like, creating a zip file, or something like it (putting all compiled files into a single folder, maybe)?

Found a way around it. Changing the Makefile file, when it defines the target for CF_CARD, to a different folder did the job. :)
Title: Re: Questions regarding compilation, TCC
Post by: RenatoPhoto on May 13, 2013, 09:34:31 PM
Quote from: tferradans on May 13, 2013, 09:16:40 PM
RenatoPhoto, yesterday I tried like hell to make cygwin work. Managed to get a regular compile, but for the module part, didn't work.

So I installed a VirtualMachine (VM VirtualBox), and used the files from nanomad's nightly server. Just download and extract the bigger one. All autoexec compiling will work great. :)

http://nanomad.magiclantern.fm/Development%20Box/VirtualBox/

Thanks for the info.  I tried the download vm machine but the download kept crashing.  I dont have enough bandwidth for gigs of download so I will have to go somewhere that has huge bandwidth.

For now I will have to use the link to the pre-compiled by lourenco here: http://www.magiclantern.fm/forum/index.php?topic=5247.msg34325#msg34325
Title: Re: Questions regarding compilation, TCC
Post by: tferradans on May 13, 2013, 09:44:34 PM
Quote from: tferradans on May 13, 2013, 09:21:28 PM
Found a way around it. Changing the Makefile file, when it defines the target for CF_CARD, to a different folder did the job. :)

I know this will look like a joke but... It actually didn't work. It's making a crippled version, without the modules folder, and a couple others. Also, the autoexec from make install has around 3.5mb. Can anyone help?
Title: Re: Questions regarding compilation, TCC
Post by: RenatoPhoto on May 13, 2013, 09:51:51 PM
I noticed the new make file for raw_rec includes MinGW. 
Which package should be installed under Cgwin for the compiling of raw_rec to work?

Does the vm include the MinGW?
Title: Re: Questions regarding compilation, TCC
Post by: 1% on May 13, 2013, 10:02:29 PM
MinGw is to make the converter.
Title: Re: Questions regarding compilation, TCC
Post by: Audionut on May 14, 2013, 05:52:55 AM
Quote from: Audionut on May 13, 2013, 04:28:14 PM
Am I on the right track?

Ubuntu has a package manager that installs stuff like this for you.  Imagine that!
Title: Re: Questions regarding compilation, TCC
Post by: photoxication on June 09, 2013, 09:26:34 PM
Post deleted.  Could a moderator remove this?  I had a corrupt file on my VM.  Fixed.