Compiling Allbest - Error - General Discussion and Assistance - CHDK Forum supplierdeeply

Compiling Allbest - Error

  • 22 Replies
  • 13839 Views
Compiling Allbest - Error
« on: 24 / January / 2008, 00:24:46 »
Advertisements
Hi,

I have downloaded gcc, cygwin and the source code of Allbest as described here: http://chdk.wikia.com/wiki/Compiling_CHDK_under_Windows

Now I want to build it for G7, what does this error mean:

Quote
theuser@pcname /cygdrive/c/chdk/src/allbest
$ gmake PLATFORM=g7 PLATFORMSUB=100g fir
expr: syntax error
**** Build:
>> Entering to tools
pakwif.c -> pakwif.o
gcc: installation problem, cannot exec `cc1': No such file or directory
c:\chdk\gcc\bin\gmake.exe[1]: *** [pakwif.o] Error 1
c:\chdk\gcc\bin\gmake.exe: *** [all-recursive] Error 1

Re: Compiling Allbest - Error
« Reply #1 on: 24 / January / 2008, 05:06:02 »
OK, I have to add "C:\CHDK\gcc\libexec\gcc\arm-elf\4.1.1" to the PATH environment variable.
Now, compiled it successfully.

Re: Compiling Allbest - Error
« Reply #2 on: 30 / January / 2008, 11:41:38 »
I have a problem with writing files. I am writing some characters to a file but I want the file be plane ASCII file. I want to when opening the file in the notepad, see "123" not "?3?? "

Code: [Select]
int fd;
fd = open("A/DCIM/100CANON/FILE.TXT", O_WRONLY|O_CREAT|O_TRUNC, 0777);
    if (fd>=0){
        write(fd, "123",10);
        close(fd);
    }

What is the problem?

Regards.
« Last Edit: 30 / January / 2008, 11:55:54 by Parham »

*

Offline GrAnd

  • ****
  • 916
  • [A610, S3IS]
    • CHDK
Re: Compiling Allbest - Error
« Reply #3 on: 30 / January / 2008, 14:31:10 »
It seems there is no error except:
        write(fd, "123", 3);
CHDK Developer.


Re: Compiling Allbest - Error
« Reply #4 on: 30 / January / 2008, 16:13:39 »
Thank you!

Would you please have a look if its possible to communicate to CHDK remotely?
I tried to save the data to a file in CHDK and then read the file from PC, but I have not found any way to access non image files from pc! It seems that WIA does not provide any way to access non image files on the camera storage.

Is it possible to set the owner name from CHDK?! I can read this with PR-SDK.
« Last Edit: 30 / January / 2008, 17:07:26 by Parham »

*

Offline fudgey

  • *****
  • 1705
  • a570is
Re: Compiling Allbest - Error
« Reply #5 on: 31 / January / 2008, 03:13:15 »
Hmm... I know 'gphoto --get-all-files' will get the .FIR files from root of the card for my a570is, as well as CHDK's .CRW files.
I haven't experimented with any of the file specific commands.

In any case, what's stopping you from using an image file extension for your data files?

I noticed gphoto2 can download and upload files, which means they could very well be used for communication (albeit quite slowly and possibly risking eventual flash rw cycle wear out).

*

Offline GrAnd

  • ****
  • 916
  • [A610, S3IS]
    • CHDK
Re: Compiling Allbest - Error
« Reply #6 on: 31 / January / 2008, 04:49:08 »
WIA does not allow get any files. But PTP does.
CHDK Developer.

Set camera Owenr's Name
« Reply #7 on: 10 / February / 2008, 09:41:20 »
OK!
Now I can save the data in a file with .SND extension (with CHDK on the SD card) and read it via WIA from PC while the camera is connected through Canon PS-Rec SDK. But it seems that there are some interference between WIA and Canon PS-Rec SDK while using them together. Also the speed of reading the file via WIA is low.

So, still I'm looking for a better way!

Is it possible to set "Owners Name" of the camera with CHDK? As I can read it via Canon PS-Rec SDK, I could use it as a buffer for communicating with the camera! (I have G7)

Best Regards,
Parham.
« Last Edit: 10 / February / 2008, 10:42:51 by Parham »


Re: Compiling Allbest - Error
« Reply #8 on: 10 / February / 2008, 13:11:45 »
Deleted
« Last Edit: 22 / April / 2008, 11:29:14 by Barney Fife »
[acseven/admin commented out: please refrain from more direct offensive language to any user. FW complaints to me] I felt it imperative to withdraw my TOTAL participation. Nobody has my permission, nor the right, to reinstate MY posts. Make-do with my quoted text in others' replies only. Bye

*

Offline ewavr

  • ****
  • 1057
  • A710IS
Re: Compiling Allbest - Error
« Reply #9 on: 10 / February / 2008, 13:31:14 »
A little "owner.txt" file in the CHDK folder that it could read or something.

In debug menu turn on "Show parameter data" option. If owner's name present on some page, this name can be read using CHDK (and maybe CHDK can write it).

P.S. In my a710 "parameter data" #1 is "total shoot count" (do you remember vers.req?)
« Last Edit: 10 / February / 2008, 13:34:04 by ewavr »

 

Related Topics