Pumpkin, Inc.

Pumpkin User Forums

Library build configuration problem

If you're having difficulty with Salvo's configuration options, post it here.

Library build configuration problem

Postby David Rye » Thu Aug 07, 2008 1:30 am


Thanks aek - I removed
OSENABLE_MESSAGES
OSENABLE_MESSAGE_QUEUES
OSTIMER_PRESCALAR
from salvocfg.h and it now builds...

Can you also tell me
1. Is OSENABLE_MESSAGE_QUEUES TRUE in the salvo libraries?
2. Is OSTIMER_PRESCALAR only available in source builds, or is there a function for configuring this at run time?

Now my only worry is how I managed to build the project built in 2005...

David Rye
 
Posts: 2
Joined: Wed Aug 06, 2008 11:00 pm

Re: Library build configuration problem

Postby David Rye » Thu Aug 07, 2008 4:13 am

I am using Salvo Pro v3.2.3 with Microchip MPLAB v8.10 and mcc18 v3.21.

I have come back to a project that I last worked on in August 2005. At that time the project built succesfully with the macros MAKE_WITH_STD_LIB and SYSE defined, linking with salvo/lib/slc18sfa.lib

Now... when I build the same project in what I believe to be an identical way the build fails with
C:salvoincsalvolbo.h:155:Error [1099] salvolbo.h: Illegal configuration option for library build: (!0 ) .

This error comes from the 'guard' file salvolbo.h:
(line 153) #if defined(OSENABLE_MESSAGES)
(line 154) #error salvolbo.h: Illegal configuration option for library build: OSENABLE_MESSAGES.
(line 155) #endif

If I change to MAKE_WITH_SOURCE (add the .c files, remove the .lib from the build) then the project builds fine.

In both cases (STD_LIB and SOURCE build) mt salvocfg.h file is as follows (lightly edited from one of the examples).

/************************************************************
Copyright (C) 1995-2002 Pumpkin, Inc. and its
Licensor(s). Freely distributable.

$Source: Work/LightBox/Code/PIC/Rev2/inc/salvocfg.h,v $
$Author: rye $
$Revision: 1.1 $
$Date: 2005/08/11 03:59:42 $

Header file for tutorial programs.

************************************************************/

#if defined(MAKE_WITH_FREE_LIB)
/* */
/* Salvo Lite build */
/* */
#define OSUSE_LIBRARY TRUE
#define OSLIBRARY_TYPE OSF
#define OSLIBRARY_GLOBALS OSF
#define OSLIBRARY_CONFIG OSA
#define OSEVENTS 1
#define OSEVENT_FLAGS 0
#define OSMESSAGE_QUEUES 0
#define OSTASKS 3

#elif defined(MAKE_WITH_STD_LIB)
/* */
/* Salvo LE & Pro library build */
/* */
#define OSUSE_LIBRARY TRUE
#define OSLIBRARY_TYPE OSL
#define OSLIBRARY_GLOBALS OSF
#define OSLIBRARY_CONFIG OSA
#define OSENABLE_MESSAGES TRUE
#define OSENABLE_MESSAGE_QUEUES TRUE
#define OSEVENTS 4 // number of flags, semaphores, messages, etc.
#define OSEVENT_FLAGS 0
#define OSMESSAGE_QUEUES 0
#define OSTASKS 4
#define OSTIMER_PRESCALAR 7

#elif defined(MAKE_WITH_SOURCE)
/* */
/* Salvo Pro source-code build */
/* */
#define OSBYTES_OF_DELAYS 1
#define OSENABLE_MESSAGES TRUE
#define OSENABLE_MESSAGE_QUEUES TRUE
#define OSEVENTS 4 // number of flags, semaphores, messages, etc.
#define OSEVENT_FLAGS 0
#define OSMESSAGE_QUEUES 0
#define OSTASKS 4
#define OSTIMER_PRESCALAR 7


#else

#error No MAKE_WITH_??? symbol defined. See salvocfg.h.

#endif

Can anyone tell me what I am doing wrong??

Regards, David.

[edit] - oh, and I did use the #error Here!! test to check that the compiler was using the correct salvocfg.h...


[This message has been edited by David Rye (edited August 07, 2008).]

[This message has been edited by David Rye (edited August 07, 2008).]

David Rye
 
Posts: 2
Joined: Wed Aug 06, 2008 11:00 pm

Re: Library build configuration problem

Postby aek » Thu Aug 07, 2008 4:28 am

quote:
Is OSENABLE_MESSAGE_QUEUES TRUE in the salvo libraries?
Yes.
quote:
Is OSTIMER_PRESCALAR only available in source builds, or is there a function for configuring this at run time?
Only for source builds. But you can examine timer.c and implement your own prescalar pretty easily, simply to call OSTimer().

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

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

Re: Library build configuration problem

Postby aek » Thu Aug 07, 2008 8:14 am

The error message is correct -- if you review the Salvo User Manual for Salvo v3 you'll see that OSENABLE_MESSAGES is not permitted in library builds.

Now, it turns out that messages are already enabled in all Salvo libraries, but that's a separate issue. The only items permitted in a library build are

code:
OSUSE_LIBRARY
OSLIBRARY_TYPE
OSLIBRARY_GLOBALS
OSLIBRARY_CONFIG
OSEVENTS
OSEVENT_FLAGS
OSMESSAGE_QUEUES
OSTASKS

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

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

Re: Library build configuration problem

Postby tbims23822 » Wed Jul 08, 2009 12:02 am

www.drop-shopping.com is a premium website for cheap air jordans shoes and other more really nike air jordan shoes.We have varity of cheap air jordan shoes available for wholesale.Cheap China wholesale shoes including cheap Nike shoes and cheap jordan shoes,nike sneakers,nike sneakers discount,air jordan sneakers,air force sneakers.We supply nike sneakers,jordan sneakers,air jordan sneakers,air force sneakers wholesale.You can buy very cheap jordans shoes including cheap women shoes,cheap nike shoes,cheap running shoes from us.

tbims23822
 


Return to Configuration

Who is online

Users browsing this forum: No registered users and 4 guests

cron