openexr-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Openexr-devel] Cross-compiling problem for iOS


From: Piotr Stanczyk
Subject: Re: [Openexr-devel] Cross-compiling problem for iOS
Date: Wed, 14 Mar 2012 22:12:59 +0000

hmm interesting ... this is the first post I've seen on iOS deployment. 

I presume lines 58 and 59  of half.cpp looks like this to you:

58 HALF_EXPORT_CONST unsigned short half::_eLut[1 << 9] =
59 #include "eLut.h"

HALF_EXPORT_CONST should be defined in half.h as 


#if defined(OPENEXR_DLL)
    #if defined(HALF_EXPORTS)
        #define HALF_EXPORT __declspec(dllexport)
    #else
        #define HALF_EXPORT __declspec(dllimport)
    #endif
    #define HALF_EXPORT_CONST
#else
    #define HALF_EXPORT
    #define HALF_EXPORT_CONST const
#endif


Are you able to check to see if your code is in the right part of this macro 
expansion?

Piotr


________________________________________
From: address@hidden address@hidden on behalf of vd address@hidden
Sent: 14 March 2012 14:33
To: address@hidden
Subject: [Openexr-devel] Cross-compiling problem for iOS

Hi,
I have a problem cross-compiling IlmBase with Xcode 4.31 for iOS i can build for
i386 emulator but i
have following error on arm:
Please advise.

make  all-am
/bin/sh ../libtool --tag=CXX   --mode=compile
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer
/usr/bin/g++
-DHAVE_CONFIG_H -I. -I../config -I../config   -pipe -arch armv7 -pipe
-no-cpp-precomp
-isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/
Developer/SDKs/
iPhoneOS5.
1.sdk -miphoneos-version-min=4.0 -D_THREAD_SAFE  -MT half.lo -MD -MP
-MF .deps/half.Tpo
-c -o
half.lo half.cpp
libtool: compile:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/
Developer
/usr/bin/g++
-DHAVE_CONFIG_H -I. -I../config -I../config -pipe -arch armv7 -pipe
-no-cpp-precomp
-isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/
Developer/SDKs/
iPhoneOS5.
1.sdk -miphoneos-version-min=4.0 -D_THREAD_SAFE -MT half.lo -MD -MP
-MF .deps/half.Tpo
-c
half.cpp -o half.o
half.cpp:58: error: expected primary-expression before 'const'
half.cpp:58: error: expected ',' or ';' before 'const'
make[2]: [half.lo] Error 1 (ignored)

i386:

make  all-am
/bin/sh ../libtool --tag=CXX   --mode=compile
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/
Developer/
usr/bin
/g++ -DHAVE_CONFIG_H -I. -I../config -I../config   -pipe -arch i386 -pipe
-no-cpp-precomp
-isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/
Developer/SDKs
/iPhoneSimulator5.1.sdk -miphoneos-version-min=4.0 -D_THREAD_SAFE
-MT half.lo -MD
-MP -MF
.deps/half.Tpo -c -o half.lo half.cpp
libtool: compile:
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/
Developer/usr/
bin/g++ -DHAVE_CONFIG_H -I. -I../config -I../config -pipe -arch i386 -pipe
-no-cpp-precomp -
isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/
Developer/SDKs
/iPhoneSimulator5.1.sdk -miphoneos-version-min=4.0 -D_THREAD_SAFE
-MT half.lo -MD
-MP -MF
.deps/half.Tpo -c half.cpp -o half.o
mv -f .deps/half.Tpo .deps/half.Plo



_______________________________________________
Openexr-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/openexr-devel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]