Pumpkin, Inc.

Pumpkin User Forums

compiling demo4

If you can't make Salvo do what you want it to do, post it here.

compiling demo4

Postby aek » Tue Jun 25, 2002 12:26 am

Hi Chao.

I'm not entirely clear on what you are trying to compile. Is it an existing project? Or your own project, using what's in salvodemod4sysfd4free.pjt as a guide?

Just for kicks, is there a salvo.h in salvoinc? Is there a salvoinc folder at all? What's in it?

In general, failure to find salvo.h is due only to a missing include path to salvoinc. You are finding salvocfg.h, which, in turn, includes salvo.h, so that's good.

According to the dump you've given us, -Ic:salvoinc is the right command-line switch. So I'm kinda stumped as to what's wrong.

Please post a full dump from the "Build Results" window in MPLAB when you get it installed and try to make the salvodemod4sysfd4free.pjt project.

And please make SURE that salvo is really installed in c:salvo or d:salvo or wherever.

Regards,

------------------

-------
aek
aek
 
Posts: 1888
Joined: Sat Aug 26, 2000 11:00 pm

Re: compiling demo4

Postby chaosalvo » Tue Jun 25, 2002 1:27 am

hi, thanks for the help. I will try to get MPLAB going tomorrow. I will let you if anything else comes up. I am sure you can't wait... LOL

later,

------------------
Chao

Chao
chaosalvo
 
Posts: 12
Joined: Mon Jun 24, 2002 11:00 pm
Location: Dallas

Re: compiling demo4

Postby chaosalvo » Tue Jun 25, 2002 8:48 am

C:HTSOFTprojectssalvo>PICC18.EXE -FAKELOCAL -G -O -Zg9 -DMAKE_WITH_FREE_LIB -
E -18F452 -C -ISALVODEMOD4SYSH -Isalvoinc -DSYSH salvodemod4main.c
HI-TECH C COMPILER (Microchip PIC18) V8.11PL1
Copyright (C) 1984-2001 HI-TECH SOFTWARE
Compiler operating in demo mode.
Some command line options are disabled.
Register this compiler to enable these options.
salvodemod4main.c: 41: Cannot open include file "salvo.h" (error)

Somehow the compiler can't seem to find the salvoincsalvo.h !!! Here's another example:

C:HTSOFTprojectssalvo>picc18 -18f452 main.c -Ic:salvoinc
HI-TECH C COMPILER (Microchip PIC18) V8.11PL1
Copyright (C) 1984-2001 HI-TECH SOFTWARE
Compiler operating in demo mode.
Some command line options are disabled.
Register this compiler to enable these options.
main.c:
41: #include "salvo.h"
^ Cannot open include file "salvo.h"
Exit status = 1

please help, thanks

------------------
Chao

Chao
chaosalvo
 
Posts: 12
Joined: Mon Jun 24, 2002 11:00 pm
Location: Dallas

Re: compiling demo4

Postby Salvo Tech Support » Tue Jun 25, 2002 9:17 am

Hello.

Please uninstall Salvo and re-install it in salvo (the default), not htsoftprojectssalvo.

The problem is that you have installed salvo into c:HTSOFTprojectssalvo, but the project expects the files to be in salvo (see -Isalvoinc in the command line, for example).

Regards,

------------------
--------
Salvo Technical Support
Please request all tech support through the Forums.

[This message has been edited by Salvo Tech Support (edited June 25, 2002).]

--------
Salvo Technical Support
Please request all tech support through the Forums.
Salvo Tech Support
 
Posts: 173
Joined: Sun Nov 19, 2000 12:00 am

Re: compiling demo4

Postby chaosalvo » Tue Jun 25, 2002 9:30 am

Hi, salvo is installed to its default directory c:salvo. htsoftprojectssalvo is my project's directory, not salvo's installation directory. So this is not the problem. Sorry for that confusion

thanks,

------------------
Chao

Chao
chaosalvo
 
Posts: 12
Joined: Mon Jun 24, 2002 11:00 pm
Location: Dallas

Re: compiling demo4

Postby Salvo Tech Support » Tue Jun 25, 2002 9:55 am

Are you using MPLAB v5.50 or later?

OK, one thing I see is that you're trying to compile demod4sysh, but demod4sysh is a *** PIC16 *** project.

So, please try demod4sysf instead ... in MPLAB, open salvodemod4sysfd4free.pjt and Build All. You should get something like this:

code:
Building D4FREE.HEX...

Compiling main.c:
Command line: "C:HTSOFTPIC18BINPICC18.EXE -FAKELOCAL -G -O -Zg9 -Isalvoinc -DSYSF -E -18C452 -C -ISALVODEMOD4SYSF
-DMAKE_WITH_FREE_LIB salvodemod4main.c"

Compiling isr.c:
Command line: "C:HTSOFTPIC18BINPICC18.EXE -FAKELOCAL -G -O -Zg9 -Isalvoinc -DSYSF -E -18C452 -C -ISALVODEMOD4SYSF
-DMAKE_WITH_FREE_LIB salvodemod4isr.c"

Linking:
Command line: "C:HTSOFTPIC18BINPICC18.EXE -FAKELOCAL -G -Md4free.map -E -18C452 -OD4FREE.HEX salvodemod4main.obj
salvodemod4isr.obj salvolibSFP800DB.lib "

Memory Usage Map:

Program ROM $000000 - $000003 $000004 ( 4) bytes
Program ROM $000008 - $000013 $00000C ( 12) bytes
Program ROM $000018 - $00074B $000734 ( 1844) bytes
$000744 ( 1860) bytes total Program ROM

RAM data $000010 - $00002C $00001D ( 29) bytes
RAM data $0000F5 - $0000FF $00000B ( 11) bytes
RAM data $0005DF - $0005FF $000021 ( 33) bytes
$000049 ( 73) bytes total RAM data

Near RAM $000000 - $00000F $000010 ( 16) bytes total Near RAM
ROM data $000004 - $000005 $000002 ( 2) bytes total ROM data
Config Data $300000 - $300001 $000002 ( 2) bytes total Config Data


Program statistics:

Total ROM used 1864 bytes (5.7%)
Total RAM used 89 bytes (5.8%) Near RAM used 45 bytes (35.2%)


Build completed successfully.


------------------
--------
Salvo Technical Support
Please request all tech support through the Forums.

[This message has been edited by Salvo Tech Support (edited June 25, 2002).]

--------
Salvo Technical Support
Please request all tech support through the Forums.
Salvo Tech Support
 
Posts: 173
Joined: Sun Nov 19, 2000 12:00 am

Re: compiling demo4

Postby chaosalvo » Tue Jun 25, 2002 10:55 am

hi, I see about the SYSH. But still it can't find salvo.h for some reason.

C:HTSOFTprojectssalvo>PICC18.EXE -FAKELOCAL -G -O -Zg9 -DMAKE_WITH_FREE_LIB -
E -18F452 -C -ISALVODEMOD4SYSf -Isalvoinc -DSYSH salvodemod4main.c
HI-TECH C COMPILER (Microchip PIC18) V8.11PL1
Copyright (C) 1984-2001 HI-TECH SOFTWARE
Compiler operating in demo mode.
Some command line options are disabled.
Register this compiler to enable these options.
salvodemod4main.c: 41: Cannot open include file "salvo.h" (error)

I don't have MPLAB setup today. Do I need that to have a successful compile? If that's the case, I will have to wait til tomorrow to compile and play with it.

Thanks much,

------------------
Chao

Chao
chaosalvo
 
Posts: 12
Joined: Mon Jun 24, 2002 11:00 pm
Location: Dallas

Re: compiling demo4

Postby Salvo Tech Support » Tue Jun 25, 2002 11:08 am

Hello.

Your command line still has -DSYSH. It needs to be -DSYSF. Other than that I don't see anything that's obviously wrong. I assume that PICC-18 demo version supports all the command-line arguments you're passing it ...

Ah, but I know that the PICC-18 demo version doesn't really work in command-line mode! But AFAIK it works fine when invoked from MPLAB ...

You don't need MPLAB to compile the files, but you do need it to build the project (I hope the difference is clear).

Do you have Salvo installed on another drive (e.g. d:salvo)? That would cause it to fail -- you'd have to change the command-line arguments to include the drive letter.

Once you have MPLAB installed then we'll better be able to figure out what's wrong. Pls install it onto the same drive as where Salvo is installed.

I think the problem is that you have PICC-18 demo AND you're using it from the command line.

Regards,

------------------
--------
Salvo Technical Support
Please request all tech support through the Forums.

--------
Salvo Technical Support
Please request all tech support through the Forums.
Salvo Tech Support
 
Posts: 173
Joined: Sun Nov 19, 2000 12:00 am

Re: compiling demo4

Postby chaosalvo » Tue Jun 25, 2002 11:20 am

Hi, I've changed all to SYSF. I started to compile stuff with HI-TIDE (beta2) and it said
'Cannot open include file "salvo.h"' in ErrorList.

So, I guess HI-TIDE (beta2) can't find salvo's include file neither?

Project's Advanced Options: CPP
-IC:HTSOFTPIC18include
-Ic:salvoinc
-D_18C452
-D_PIC18
-SP1,1,1,1,1,1,1
-S1,2,2,4,3,3

thanks much,

------------------
Chao

Chao
chaosalvo
 
Posts: 12
Joined: Mon Jun 24, 2002 11:00 pm
Location: Dallas

Re: compiling demo4

Postby chaosalvo » Wed Jun 26, 2002 1:33 am

Hi, do you know what this linking error is about? I've hardcoded absolute paths with #include "c:salvoincsalvo" and #include "c:salvodemod4sysfsalvocfg.h" in order to get to here!

Building D4FREE.HEX...

Compiling main.c:
Command line: "C:HTSOFTPIC18BINPICC18.EXE -FAKELOCAL -G -O -Zg9 -I=salvoinc -DSYSF -E -18C452 -C -ISALVODEMOD4SYSF -DMAKE_WITH_FREE_LIB salvodemod4main.c"

Compiling isr.c:
Command line: "C:HTSOFTPIC18BINPICC18.EXE -FAKELOCAL -G -O -Zg9 -Isalvoinc -DSYSF -E -18C452 -C -ISALVODEMOD4SYSF -DMAKE_WITH_FREE_LIB salvodemod4isr.c"

Linking:
Command line: "C:HTSOFTPIC18BINPICC18.EXE -FAKELOCAL -G -Md4free.map -E -18C452 -OD4FREE.HEX salvodemod4main.obj salvodemod4isr.obj salvolibSFP800DB.lib "
salvolibSFP800DB.lib(delay.obj):12:signatures do not match: _OSDelay (salvolibSFP800DB.lib: delay.obj): 0x2078/0x1078 (error)
::undefined symbol: (error)
::_Init (salvodemod4main.obj) (error)

MPLAB is unable to find output file "D4FREE.HEX". This may be due to a compile, assemble, or link process failure.

Build failed.

Thanks,

------------------
Chao

Chao
chaosalvo
 
Posts: 12
Joined: Mon Jun 24, 2002 11:00 pm
Location: Dallas

Next

Return to Coding

Who is online

Users browsing this forum: No registered users and 2 guests