dgu123 / ios-cmake

Automatically exported from code.google.com/p/ios-cmake
0 stars 0 forks source link

Cannot cross-compile for iOS SDK 7.0 (on MacOS 10.9 Mavericks) #13

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run cmake from a build folder just below hello-lib folder
cmake .. -DCMAKE_TOOLCHAIN_FILE=../../../toolchain/iOS.cmake 
-DIOS_PLATFORM=SIMULATOR
2. Compile hello-lib sample
make

What is the expected output? What do you see instead?
Should generate a static library. Instead I see the error:
/Users/braillenet/C++/ios-cmake/samples/hello-lib/HelloIOS.h:1:9: fatal error: 
'UIKit/UIKit.h' file not found

What version of the product are you using? On what operating system?
Using MacOS 10.9 Mavericks and xcode 5.0.1

Please provide any additional information below.
installed iOS Simulator SDK 7.0

Original issue reported on code.google.com by cristeab on 12 Dec 2013 at 2:52

GoogleCodeExporter commented 9 years ago
Samples need updating for the latest SKDs, will do

Original comment by wizzr...@gmail.com on 12 Dec 2013 at 2:55

GoogleCodeExporter commented 9 years ago
time frame ?

Original comment by cristeab on 12 Dec 2013 at 2:58

GoogleCodeExporter commented 9 years ago
Today or tomorrow. Should be simple since we use ios-cmake for iOS7 projects 
right now. Something just wrong with the example.

Original comment by wizzr...@gmail.com on 12 Dec 2013 at 3:06

GoogleCodeExporter commented 9 years ago
ok, thanks

Original comment by cristeab on 12 Dec 2013 at 3:06

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Please find attached a patch for the entire project. After cloning, change to 
the folder where all sources reside and use
hg import diff.patch

However, I would advise rewriting hello-lib in order to remove its dependency 
from UIViewController class and use instead a class derived from NSObject

Original comment by cristeab on 27 Dec 2013 at 11:42

Attachments:

GoogleCodeExporter commented 9 years ago
Patch applied, with small adjustment for cmake 3. Thanks!

Original comment by wizzr...@gmail.com on 24 Jul 2014 at 9:01