Hey all
after few months i coming back to check the engine ,
i must say i had the same or neer same problem befor , i dont remmber how this was fixed .
http://discourse.urho3d.io/t/linking-error-when-creating-new-project-in-osx-10-9-2-xcode/205/6
This time its the example Urho3dPlayer that failed to link . and there is new Xcode 6 . with new IOS 8 sdk
- clone it from git ,
running the cmake_ios.sh -DURHO3D_SAMPLES
meirs-Mac-mini:Urho3D meiryanovich$ ./cmake_ios.sh -DURHO3D_SAMPLES=1
-- The C compiler identification is Clang 6.0.0
-- The CXX compiler identification is Clang 6.0.0
-- Check for working C compiler using: Xcode
-- Check for working C compiler using: Xcode -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler using: Xcode
-- Check for working CXX compiler using: Xcode -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for include file stdint.h
-- Looking for include file stdint.h - not found
-- The ASM compiler identification is Clang
-- Found assembler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Failed
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Failed
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Failed
-- Performing Test COMPILER_HAS_DEPRECATED
-- Performing Test COMPILER_HAS_DEPRECATED - Failed
-- Found Urho3D: as CMake target
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/meiryanovich/Documents/3d/urho3d/git/Urho3D/ios-Build
2 .opning Urho3D.xcodeproj in Xcode 6 ,
3. setting IOS deployment to 7.0 ( as this is what is installed in my device )
4. setting my developer profile from apple in the Urho3dPlayer project
5. compiling the Urho3dPlayer project
Boom! linking error :
Ld /Users/meiryanovich/Documents/3d/urho3d/git/Urho3D/ios-Build/Tools/Urho3DPlayer/Urho3D.build/Debug-iphoneos/Urho3DPlayer.build/Objects-normal/armv7/Urho3DPlayer normal armv7
cd /Users/meiryanovich/Documents/3d/urho3d/git/Urho3D/Source
export IPHONEOS_DEPLOYMENT_TARGET=7.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.0.sdk -L/Users/meiryanovich/Documents/3d/urho3d/git/Urho3D/ios-Bin -F/Users/meiryanovich/Documents/3d/urho3d/git/Urho3D/ios-Bin -filelist /Users/meiryanovich/Documents/3d/urho3d/git/Urho3D/ios-Build/Tools/Urho3DPlayer/Urho3D.build/Debug-iphoneos/Urho3DPlayer.build/Objects-normal/armv7/Urho3DPlayer.LinkFileList -dead_strip -framework AudioToolbox -framework CoreAudio -framework CoreGraphics -framework Foundation -framework OpenGLES -framework QuartzCore -framework UIKit -Wl,-search_paths_first -Wl,-headerpad_max_install_names /Users/meiryanovich/Documents/3d/urho3d/git/Urho3D/ios-Lib/libUrho3D.a -ldl -lpthread -lpthread -lpthread -ldl -lpthread -lpthread -miphoneos-version-min=7.0 -Xlinker -dependency_info -Xlinker /Users/meiryanovich/Documents/3d/urho3d/git/Urho3D/ios-Build/Tools/Urho3DPlayer/Urho3D.build/Debug-iphoneos/Urho3DPlayer.build/Objects-normal/armv7/Urho3DPlayer_dependency_info.dat -o /Users/meiryanovich/Documents/3d/urho3d/git/Urho3D/ios-Build/Tools/Urho3DPlayer/Urho3D.build/Debug-iphoneos/Urho3DPlayer.build/Objects-normal/armv7/Urho3DPlayer
ld: entry point (_main) undefined. for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
when im doing lipo im getting :
meirs-Mac-mini:ios-Lib meiryanovich$ lipo -detailed_info libUrho3D.a
Fat header in: libUrho3D.a
fat_magic 0xcafebabe
nfat_arch 2
architecture armv7
cputype CPU_TYPE_ARM
cpusubtype CPU_SUBTYPE_ARM_V7
offset 48
size 93139064
align 2^2 (4)
architecture arm64
cputype CPU_TYPE_ARM64
cpusubtype CPU_SUBTYPE_ARM64_ALL
offset 93139112
size 92866672
align 2^2 (4)
meirs-Mac-mini:ios-Lib meiryanovich$
the Urho3DPlayer.app binary never created
what im doing wrong here ?
Thanks