Giter VIP home page Giter VIP logo

Comments (19)

ruslo avatar ruslo commented on June 10, 2024

this problem should be easily repeatable

Drishti compiles fine for me.

Drishti version:

> git branch -vv
* master             c4c74f0d [origin/master] [skip ci] add note about ndk r19

Xcode version:

> xcodebuild -version
Xcode 10.1
Build version 10B61

CMake version:

> cmake --version
cmake version 3.14.2

Configure command:

> cmake -H. -B_builds -GXcode -DHUNTER_STATUS_DEBUG=ON -DDRISHTI_BUILD_EXAMPLES=ON

Build command:

> cmake --build _builds --config Release -j 8
...
echo Build\ all\ projects
Build all projects

** BUILD SUCCEEDED **

from drishti.

headupinclouds avatar headupinclouds commented on June 10, 2024

You can also check to make sure the submodule w/ the config is up to date (for the latest config) in case you have an older clone:

git submodule update --init --recursive

Building w/ a new clone will also work:

git clone --recursive https://github.com/elucideye/drishti.git

Please post a full build log if the above hints don't help.

from drishti.

GORGES avatar GORGES commented on June 10, 2024

I am trying a rebuild now. One difference is that my "xcodebuild -version" returns "Xcode 10.2.1". If this also fails then I will do the submodule update command. I'll report back with the results. Thank you!!

from drishti.

GORGES avatar GORGES commented on June 10, 2024

Initial rebuild failed; here are the full log records: https://gist.github.com/GORGES/6445ac66b90faa9b9544acb845143f8a

Will try doing the submodule update and then try again.

PS: Will also update cmake using brew.

from drishti.

ruslo avatar ruslo commented on June 10, 2024

Initial rebuild failed; here are the full log records: https://gist.github.com/GORGES/6445ac66b90faa9b9544acb845143f8a

I don't see any errors.

from drishti.

GORGES avatar GORGES commented on June 10, 2024

Aargh - there must be a limit on the GIST buffer. Sorry I should have checked after pasting. Here's the remainder, and thank you for checking!

https://gist.github.com/GORGES/33117de703ca019c87b3438a3e2571b1

from drishti.

ruslo avatar ruslo commented on June 10, 2024

Here's the remainder, and thank you for checking!

Okay, I see the problem with ACF now, but the log is still not full. What ACF version it was?

Compare with this log:

- [hunter] ACF_ROOT: /Users/travis/.hunter/_Base/f58bcf2/ea1163a/a1b947a/Install (ver.: d1f681d6e678fcc45777e780f40fc196aad4c726)

-- [hunter *** DEBUG *** 2019-01-31T15:09:46] Locking directory: /Users/travis/.hunter/_Base/Download/acf/d1f681d6e678fcc45777e780f40fc196aad4c726/d1f681d

-- [hunter *** DEBUG *** 2019-01-31T15:09:46] Lock done

-- [hunter *** DEBUG *** 2019-01-31T15:09:46] Already locked: /Users/travis/.hunter/_Base/Download/acf/d1f681d6e678fcc45777e780f40fc196aad4c726/d1f681d

-- [hunter *** DEBUG *** 2019-01-31T15:09:46] Locking directory: /Users/travis/.hunter/_Base/f58bcf2/ea1163a/a1b947a

-- [hunter *** DEBUG *** 2019-01-31T15:09:46] Lock done

-- [hunter *** DEBUG *** 2019-01-31T15:09:46] Package 'acf' default arguments: 'ACF_BUILD_OGLES_GPGPU=ON;ACF_USE_DRISHTI_CACHE=OFF;ACF_BUILD_EXAMPLES=OFF;ACF_BUILD_TESTS=OFF'

-- [hunter *** DEBUG *** 2019-01-31T15:09:46] Package 'acf' user arguments: 'ACF_BUILD_OGLES_GPGPU=ON;ACF_BUILD_TESTS=OFF;ACF_BUILD_EXAMPLES=OFF;ACF_SERIALIZE_WITH_CVMATIO=OFF;ACF_SERIALIZE_WITH_CEREAL=ON;ACF_BUILD_OGLES_GPGPU=ON'

-- [hunter *** DEBUG *** 2019-01-31T15:09:46] Add extra CMake args: 'ACF_BUILD_OGLES_GPGPU' = 'ON'

-- [hunter *** DEBUG *** 2019-01-31T15:09:46] Add extra CMake args: 'ACF_USE_DRISHTI_CACHE' = 'OFF'

-- [hunter *** DEBUG *** 2019-01-31T15:09:46] Add extra CMake args: 'ACF_BUILD_EXAMPLES' = 'OFF'

-- [hunter *** DEBUG *** 2019-01-31T15:09:46] Add extra CMake args: 'ACF_BUILD_TESTS' = 'OFF'

-- [hunter *** DEBUG *** 2019-01-31T15:09:46] Add extra CMake args: 'ACF_BUILD_OGLES_GPGPU' = 'ON'

-- [hunter *** DEBUG *** 2019-01-31T15:09:46] Add extra CMake args: 'ACF_BUILD_TESTS' = 'OFF'

-- [hunter *** DEBUG *** 2019-01-31T15:09:46] Add extra CMake args: 'ACF_BUILD_EXAMPLES' = 'OFF'

-- [hunter *** DEBUG *** 2019-01-31T15:09:46] Add extra CMake args: 'ACF_SERIALIZE_WITH_CVMATIO' = 'OFF'

-- [hunter *** DEBUG *** 2019-01-31T15:09:46] Add extra CMake args: 'ACF_SERIALIZE_WITH_CEREAL' = 'ON'

-- [hunter *** DEBUG *** 2019-01-31T15:09:46] Add extra CMake args: 'ACF_BUILD_OGLES_GPGPU' = 'ON'

from drishti.

GORGES avatar GORGES commented on June 10, 2024

ruslo, I am trying to figure out which ACF version I am using, but the source is in the bowels of hunter. I pull up the directory (/Users/mclark/.hunter/_Base/f58bcf2/0c36441/a9fd39e/Build/acf/Source/src/lib/acf/), but don't see an explicit version file.

I fully admit that I am not hunter-savvy, so I don't know how to get the ACF version. I did see a reference to an ACF version, but it is an internal version number:

./_builds/ios/_3rdParty/Hunter/config-id/config.cmake:hunter_config(acf VERSION 75cabfb9dd786a4264be27758a73921b84c550c3 CMAKE_ARGS "ACF_BUILD_TESTS=OFF" "ACF_BUILD_EXAMPLES=OFF" "ACF_SERIALIZE_WITH_CVMATIO=OFF" "ACF_SERIALIZE_WITH_CEREAL=ON" "ACF_BUILD_OGLES_GPGPU=ON" "ACF_KEEPS_SOURCES=1" GIT_SUBMODULE_DIR "/Users/mclark/workspace/drishti/_builds/ios/_3rdParty/Hunter/git-archives")

from drishti.

GORGES avatar GORGES commented on June 10, 2024

It seems to pull the ACF version from a hunter variables:
./drishti-upload/config.cmake:# hunter_config(acf VERSION ${HUNTER_acf_VERSION} CMAKE_ARGS ${acf_cmake_args})

from drishti.

GORGES avatar GORGES commented on June 10, 2024

Found the ACF version in the Drishti source code:
./src/3rdparty/acf/CMakeLists.txt:project(acf VERSION 0.1.10)

from drishti.

ruslo avatar ruslo commented on June 10, 2024

ruslo, I am trying to figure out which ACF version I am using

My point was that the logs were not full.

./_builds/ios/_3rdParty/Hunter/config-id/config.cmake:hunter_config(acf VERSION 75cabfb9dd786a4264be27758a73921b84c550c3

Your version doesn't match the version from CI logs:

- [hunter] ACF_ROOT: /Users/travis/.hunter/_Base/f58bcf2/ea1163a/a1b947a/Install (ver.: d1f681d6e678fcc45777e780f40fc196aad4c726)

I guess that's because you haven't updated submodules.

from drishti.

GORGES avatar GORGES commented on June 10, 2024

Hmm - I did run this command: "git submodule update --init --recursive" and then tried building again, but it failed.

I will next try your "git clone --recursive https://github.com/elucideye/drishti.git" and start from scratch.

from drishti.

GORGES avatar GORGES commented on June 10, 2024

I started with a fresh clone ("git clone --recursive https://github.com/elucideye/drishti.git") and ran into the same error. Here are the logs:
https://gist.github.com/GORGES/1ab2a759d9e9f69e541204e0f48636bd

I suspect the issue is in Xcode 10.2.1, since that seems to be the only significance difference between your setup and mine.

Question: should I override the ACF version that is specified in Drishti and try again?

from drishti.

headupinclouds avatar headupinclouds commented on June 10, 2024

should I override the ACF version that is specified in Drishti and try again?

That won't help with this issue as the acf code hasn't been updated for this compiler.

I don't have an Xcode 10.2.1 system to investigate this. It requires an OS update to macOS Mojave, which I can't do right now. The best short term workaround will be to install an older Xcode release for now.

https://cgold.readthedocs.io/en/latest/first-step/native-build-tool/xcode.html#several-custom-xcode-versions

from drishti.

ruslo avatar ruslo commented on June 10, 2024

Here are the logs: https://gist.github.com/GORGES/1ab2a759d9e9f69e541204e0f48636bd

At least the ACF version now matches version from CI.

I suspect the issue is in Xcode 10.2.1, since that seems to be the only significance difference between your setup and mine.

I can't run the test with Xcode 10.2 at this moment; I have to upgrade my hardware or setup Travis CI with new Xcode image.

from drishti.

GORGES avatar GORGES commented on June 10, 2024

Thanks again, Ruslo. I may try to revert to an earlier Xcode and try again.

Let me know about appropriate Github issue protocol - is this issue resolved or should it be kept open until Drishti/ACF are compatible with the current MacOS toolset?

from drishti.

ruslo avatar ruslo commented on June 10, 2024

We will move to the Xcode 10.2 in the future anyway, so I guess it's okay to keep it open. I will rename the issue.

from drishti.

headupinclouds avatar headupinclouds commented on June 10, 2024

I've created an issue for the core ACF problem here elucideye/acf#106. We can leave both open.

from drishti.

iPsych avatar iPsych commented on June 10, 2024

@headupinclouds
I also confirmed the same error happens in Xcode 10.2 in HighSierra, (10.2 is normally cannot be installed in 10.13.6, but installed with a little trick.). 10.1 was succeed exactly same setting.

The experiment also support the above reports.
Something not fit between acf and 10.2

from drishti.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.