List Info

Thread: Re: Set include path on Linux?




Re: Set include path on Linux?
country flaguser name
United States
2007-05-24 16:35:45

--- In anthemion-devtools%40yahoogroups.com">anthemion-devtoolsyahoogroups.com, David Mathews
<grnbriar...> wrote:
&gt;
> Thanks for the help - wxWidgets is now built.
&gt;
> I have a bunch of include files from OpenEXR in the DB Projects
> folder. To see these on Mac I added -
> -I/Devel/AppName at the front of the generated include path and that
> let the DB build find them.
&gt;
> It is not working on Linux, it can not locate any of my header files.
&gt; Is the include path setup special on Linux?
&gt; I've tried both before and after the special generated flags code.
&gt;
> All I can find in the doc says use a comma separated list, which I
> also tried before and after the generated code.
&gt; I needed the specific -I on the Mac, I had hoped that would work here
> as well.
&gt;
> David
&gt;

Hi!

If you are on any platform for which wx-config may be used (which is
all but Windows, I think), then the "Comma-separated C++ search path"
description does not apply. Before the advent of wx-config, that's how
DB worked, but you cannot do this with wx-config use. What you need to
do is place your include before or after %AUTO% separated by a space,
and it must be in the compiler's switch format. For GCC and most
UNIX/Linux systems this will be a -I switch. It is also a good idea to
place the path in quotes. For your example, it might be:

%AUTO% -I"&lt;path to OpenEXR includes&gt;"

HTH:

thx,
Dave S.

wxMS_developers · Development with wxWidgets on MSWindows
http://tech.groups.yahoo.com/group/wxMS_developers/join

wxWidgets Code Exchange
http://www.wxCodex.net/

__._,_.___
.

__,_._,___
Compile error building Linux lib with DB makefile
country flaguser name
United States
2007-05-30 23:30:55
Porting an app to Linux I have to make a static lib to link
to the DB  
app.
This was a windows support only app, so no unix makefile.
I have already built it on the Mac using Xcode to just grab
all the  
source files and make a static lib. Worked fine.

On Linux, I used DB to make a makefile with all the source
files,  
then hand altered to just leave the compile for each source
file and  
added the ar command instead of the g++ link step.

But none of the source files will compile. The first ones
are the  
zlib files that I have compiled into many apps on windows
and the  
Mac. Compiling the first one gives me this error:


grnbriarDads-linux:/Devel/cximage580_src$   make -f
MakefileMine
g++ -c -o ReleaseGTK2/adler32.o -I"./CxImage"
-I"./jpeg" -I"./tiff" - 
I"./zlib"   -O -Wall zlib/adler32.c
zlib/adler32.c:21: error: ‚uLong adler32‚ redeclared as
different  
kind of symbol
zlib/zlib.h:821: error: previous declaration of ‚uLong
adler32(uLong,  
const Bytef*, uInt)‚
zlib/adler32.c:21: error: ‚adler‚ was not declared in this
scope
zlib/adler32.c:21: error: ‚buf‚ was not declared in this
scope
zlib/adler32.c:21: error: ‚len‚ was not declared in this
scope
zlib/adler32.c:25: error: expected unqualified-id before ‚{‚
token

zlib.h:821
ZEXTERN uLong ZEXPORT adler32 OF((uLong adler, const Bytef
*buf, uInt  
len));

adler32.c:21
uLong ZEXPORT adler32(adler, buf, len)
     uLong adler;
     const Bytef *buf;
     uInt len;
{

from zconf.h
#  define ZEXPORT
#  define ZEXTERN extern

#    define OF(args)  args


Looks the same to me!
Compiles everywhere else fine.
Is there an additional flag I need to use old style C params
in a .c  
file with g++??

David




 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    htt
p://groups.yahoo.com/group/anthemion-devtools/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/anthemion-devtools/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:anthemion-devtools-digest@yahoogroups.com 
    mailto:anthemion-devtools-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    anthemion-devtools-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.c
om/info/terms/
 

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )