View Single Post
Posts: 5 | Thanked: 15 times | Joined on Jul 2012
#46
"The Following 4 Users Say Thank You to vcproj2cmake For This Useful Post" - WTH!?
All I can say is THANKS!

I tried that tree archive yesterday, and unfortunately there were numerous problems with my converter, so I tried adding some initial ObjectiveC-related support to it.


During CMake configure run, it complained about certain files missing from the project (libObjC/runtime/error.h, libObjC/runtime/objc-sel-table.h etc.). Are those .vcproj files somewhat outdated!?

After CMake configure run, the build failed with
Code:
  c++: error trying to exec 'cc1obj': execvp: No such file or directory
which was easily solved by installing the still missing gcc ObjectiveC(++?) packages
Now, the build is finally crapping out at the TargetConditionals.h header which is part of Apple SDKs thus not readily available on this particular platform (or am I supposed to install this as an easily downloadable toolkit dependency?? After all TARGET_OS_WIN32 needed that header as well...)

If so, then one should probably do a find_package() (or find_path() in case no Find module is available yet) in one of the possible hook files in ${CMAKE_SOURCE_DIR}/cmake/vcproj2cmake and error out in case that Apple platform toolkit cannot be found.


Finally, I also have to say: are you sure you're attempting to build the correct variant??
I'd venture a guess that there should be a Linux-suited objc-runtime variant out there somewhere?

http://cxwangyi.wordpress.com/2011/0...c-programmers/
might be relevant...

HTH
 

The Following 6 Users Say Thank You to vcproj2cmake For This Useful Post: