Can I use Linux version of FGDB API on a Mac?

2396
3
07-30-2011 08:10 PM
ReneRubalcava
Frequent Contributor
I tried loading the 64-bit version in xcode 4 on a Mac OS 10.6 (Snow Leopard), but I'm getting multiple "semantic issue" and "parse issue" errors, most of which seem to relate to dllimport. I've attached a screenshot of my header/library search paths. Is there a linker flag I should be using?

I also can't seem to be able to build the samples either.
I get the following errors when running make after adding $LD_LIBRARY_PATH to my profile
odoemac:samples odoe$ make
make -C Domains
g++ -fPIC -O2 -m32 -W -fexceptions -fno-inline  -D_CONSOLE -DUNICODE -D_UNICODE -DLINUX -D_REENTRANT -DFILEGDB_API -D__USE_FILE_OFFSET64 -DLINUX_FILEGDB_API -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -I../../include -I.  -c Domains.cpp
In file included from ../../include/FileGDBAPI.h:25,
                 from Domains.cpp:25:
../../include/GeodatabaseManagement.h:56: error: expected constructor, destructor, or type conversion before ???(??? token
../../include/GeodatabaseManagement.h:64: error: expected constructor, destructor, or type conversion before ???(??? token
../../include/GeodatabaseManagement.h:69: error: expected constructor, destructor, or type conversion before ???(??? token
../../include/GeodatabaseManagement.h:77: error: expected constructor, destructor, or type conversion before ???(??? token
In file included from ../../include/FileGDBAPI.h:26,
                 from Domains.cpp:25:
../../include/Geodatabase.h:55: error: expected initializer before ???Geodatabase???
Domains.cpp:156: error: expected `}' at end of input
make[1]: *** [Domains.o] Error 1
make: *** [Domains] Error 2


Or is Mac dev just a flat out no go?
I am not a C++ dev, so maybe there is stuff I am missing, but any help is appreciated, thanks.
0 Kudos
3 Replies
MitchAttig
New Contributor
I'd bet that this is not possible (different compilers?), but I'd be very interested if it were... especially because VirtualBox doesn't want to play nice with Lion. Can anyone out there give us a more definitive answer?
0 Kudos
DavidSousa
New Contributor III
I would be amazed if there was any possibility that this would work.  MacOS is not Linux - not even close.

There is a chance that there might eventually be a MacOS version of the API, but it would be dangerous to guess as to when that might occur.
0 Kudos
ReneRubalcava
Frequent Contributor
It was worth a shot, thanks.
0 Kudos