Skip to content

Commit

Permalink
build with libc++ for unity
Browse files Browse the repository at this point in the history
  • Loading branch information
emgucv committed Feb 6, 2016
1 parent e2cf685 commit 7a432a1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Emgu.CV/PInvoke/iOS/libemgucv.linkwith.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
LinkTarget.ArmV7s | LinkTarget.ArmV7 | LinkTarget.Simulator | LinkTarget.Arm64 | LinkTarget.Simulator64,
ForceLoad = true,
Frameworks="Foundation Accelerate CoreFoundation CoreGraphics AssetsLibrary AVFoundation CoreImage CoreMedia CoreVideo QuartzCore ImageIO",
LinkerFlags = "-stdlib=libstdc++ -ObjC -lc++",
LinkerFlags = "-stdlib=libc++ -ObjC -lc++",
IsCxx=true)]

#endif
2 changes: 1 addition & 1 deletion platforms/ios/build_unity.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env bash

./build.sh -DWITH_PNG:BOOL=FALSE
./build.sh -DWITH_PNG:BOOL=FALSE -DCMAKE_CXX_FLAGS="-std=c++11 -stdlib=libc++" -DCMAKE_EXE_LINKER_FLAGS="-std=c++11 -stdlib=libc++"
3 changes: 3 additions & 0 deletions platforms/ios/build_with_libc++.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

./build.sh -DCMAKE_CXX_FLAGS="-std=c++11 -stdlib=libc++" -DCMAKE_EXE_LINKER_FLAGS="-std=c++11 -stdlib=libc++"

0 comments on commit 7a432a1

Please sign in to comment.