VideoCore-Inactive icon indicating copy to clipboard operation
VideoCore-Inactive copied to clipboard

'type_half.inl' file not found .. pod 0.39.0 & xcode 7.2

Open milinka opened this issue 9 years ago • 10 comments

Do not compile:

pod --version --> 0.39.0 xcode -> 7.2

Updating local specs repositories Analyzing dependencies Fetching podspec for VideoCore from ../.. Downloading dependencies Installing UriParser-cpp (0.1.3) Installing VideoCore (0.3.2) Installing boost (1.51.0) Installing glm (0.9.4.6) Generating Pods project Integrating client project

[!] Please close any current Xcode sessions and use SampleBroadcaster-Swift.xcworkspace for this project from now on. Sending stats Sending stats Pod installation complete! There is 1 dependency from the Podfile and 4 total pods installed.

[!] [Xcodeproj] Generated duplicate UUIDs: ... Open: SampleBroadcaster-Swift.xcworkspace xcode .. build.. .. VideoCore-master/sample/SampleBroadcaster-Swift/Pods/Headers/Private/glm/core/type_half.hpp:116:10: 'type_half.inl' file not found

Do anybody have working version of this project ?

milinka avatar Dec 29 '15 01:12 milinka

See #224 . The recommended solution of downgrading cocoapods to 0.38.2 works.

ap116 avatar Dec 29 '15 03:12 ap116

Thanks ap116, but that did not work either..

OK, done following:

sudo gem uninstall cocoapods sudo gem install cocoapods -v 0.38.2 pod —version -> 0.38.2 git clone https://github.com/jgh-/VideoCore.git cd VideoCore-master/SampleBroadcaster-Swift/ pod install

-> following output:

Analyzing dependencies Fetching podspec for VideoCore from ../.. Downloading dependencies Installing UriParser-cpp (0.1.3) Installing VideoCore (0.3.2) Installing boost (1.51.0) Installing glm (0.9.4.6)

Generating Pods project

2015-12-29 17:18:11.898 ruby[34004:2204225] warning: The file reference for "H264Encode.h" is a member of multiple groups ("Apple" and "iOS"); this indicates a malformed project. Only the membership in one of the groups will be preserved (but membership in targets will be unaffected). If you want a reference to the same file in more than one group, please add another reference to the same path.

2015-12-29 17:18:11.899 ruby[34004:2204225] warning: The file reference for "H264Encode.mm" is a member of multiple groups ("Apple" and "iOS"); this indicates a malformed project. Only the membership in one of the groups will be preserved (but membership in targets will be unaffected). If you want a reference to the same file in more than one group, please add another reference to the same path.

Integrating client project

[!] Please close any current Xcode sessions and use SampleBroadcaster-Swift.xcworkspace for this project from now on.

Sending stats Sending stats

[!] [Xcodeproj] Generated duplicate UUIDs: ..

Result: open SampleBroadcaster-Swift.xcworkspace Build (VideoCore) 10 errors: .. VideoCore-master/stream/AsyncStreamSession.cpp --> VideoCore-master/stream/AsyncStreamSession.cpp:235:29: No member named 'thisThreadInQueue' in 'videocore::JobQueue'

errors from (10) asserts -> assert(m_socketJob.thisThreadInQueue());

What could be wrong in this ? Is this stil because header file is missing..

Anybody, do you have a working / compile able version of this project ? or instructions how to get this compile ?

Thanks!

milinka avatar Dec 29 '15 17:12 milinka

ok removed the AsyncStreamSession.cpp file, because it seems to be not needed.. Now "VideoCore" is compiling.. but building target "SampleBroadcaster-Swift" will not compile.. error:

Undefined symbols for architecture armv7: "videocore::Apple::H264Encode::~H264Encode()", referenced from: std::__1::__libcpp_compressed_pair_impstd::__1::allocator<videocore::Apple::H264Encode, videocore::Apple::H264Encode, 1u>::~__libcpp_compressed_pair_imp() in libVideoCore.a(VCSimpleSession.o) "videocore::Apple::H264Encode::H264Encode(int, int, int, int, bool, int)", referenced from: std::__1::shared_ptrvideocore::Apple::H264Encode std::__1::shared_ptrvideocore::Apple::H264Encode::make_shared<float, float, int, int, bool, int&>(float&&, float&&, int&&, int&&, bool&&, int&&&) in libVideoCore.a(VCSimpleSession.o) ld: symbol(s) not found for architecture armv7 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Thanks..

milinka avatar Dec 29 '15 18:12 milinka

It worked for the objective-c sample project, but I haven't tried the swift one. Check the other issue i referenced for other suggestions about how to handle swift.

ap116 avatar Dec 29 '15 18:12 ap116

Anybody who have problems with cocoapods versions like me.. here is a working way to getting the swift project to compile.

  1. sudo gem install cocoapods -v 0.37.2
  2. git clone https://github.com/jgh-/VideoCore.git
  3. cd VideoCore-master/SampleBroadcaster-Swift/
  4. pod install -> [!] Please close any current Xcode sessions and use SampleBroadcaster-Swift.xcworkspace for this project from now on.
  5. open SampleBroadcaster-Swift.xcworkspace
  6. delete (deprecated) file: VideoCore-master/stream/AsyncStreamSession.cpp
  7. build ..

Thanks to everyone. Nice project!

milinka avatar Dec 29 '15 19:12 milinka

@milinka Thanks dude! It work's for me :dancer:

kioqq avatar Dec 30 '15 16:12 kioqq

same approach as suggested by milinka, but not working

rvishal1991 avatar Jan 06 '16 06:01 rvishal1991

cocoapod 1.0.0 beta4 not work

cherishloveyou avatar Mar 04 '16 07:03 cherishloveyou

@milinka Great!!! Cocoapods -v 0.37.2 works for me. Thanks.

luonglh90 avatar Apr 08 '16 07:04 luonglh90

I use

pod 0.38.2 install

to run pod in 0.38.2

angelmic avatar May 11 '16 03:05 angelmic