coder-free / ios-cmake

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

Building library with QT #9

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open project with QT Creator
2. Set CMAKE_TOOLCHAIN_FILE, IOS_PLATFORM to SIMULATOR and CMAKE_IOS_SDK_ROOT
3. Build

What is the expected output? What do you see instead?
A normal build is expected but instead it returns this error : llvm-g++-4.2: 
Invalid arch name : -Ipath/to/hello-lib/folder

What version of the product are you using? On what operating system?
OS X 10.8.3 on a mac mini
QT Creator 2.7.0 based on QT 5.0.2
CMAKE 2.8.11

Original issue reported on code.google.com by maxime.l...@gmail.com on 17 May 2013 at 10:05

GoogleCodeExporter commented 9 years ago
I have never tried using Qt on iOS with this toolchain; so I'm not too 
surprised it didn't work. It may be someone outside the scope. 

But there isn't much to go on. Can you post the full output of your "cmake" 
command? 

Original comment by wizzr...@gmail.com on 17 May 2013 at 2:23

GoogleCodeExporter commented 9 years ago
I did find a solution, the architecture wasn't set right since I was building 
for the simulator on a i386.
I'm now facing an other issue with including frameworks ( working on it at the 
moment )

Original comment by maxime.l...@gmail.com on 17 May 2013 at 4:42

GoogleCodeExporter commented 9 years ago
Ahh, yes there are probably some simulator mode fixes needed. Let me know what 
you find out with the frameworks; I would be very interested to see this work.

Original comment by wizzr...@gmail.com on 17 May 2013 at 4:53