Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake Error: The source directory ... does not appear to contain CMakeLists.txt #110

Open
acenter2507 opened this issue Feb 7, 2018 · 2 comments

Comments

@acenter2507
Copy link

acenter2507 commented Feb 7, 2018

Here is what i am getting on building torch-android on Ubuntu. Any ideas?

Android NDK found at: ~/android-ndk-r14b/ INSTALL_DIR=~/torch-android/install CMake Error: The source directory "~/torch-android/external/libpng" does not appear to contain CMakeLists.txt. Specify --help for usage, or press the help button on the CMake GUI. -------------- Configuring DONE --------------- make: *** No rule to make target 'install'. Stop.

Many thanks!

@acenter2507
Copy link
Author

I think broblem is below.

fatal: reference is not a tree: 2964a877aeeb02a66eeba084ceb1dfa3c6836f1b Unable to checkout '2964a877aeeb02a66eeba084ceb1dfa3c6836f1b' in submodule path 'external/libpng'

@acenter2507
Copy link
Author

After i manually copy external/libpng from borisfom/platform_external_libpng, run build.sh and the compile also failed.
`-- Symbol prefix:
CMake Error at CMakeLists.txt:601 (list):
list sub-command SORT requires list to be present.

CMake Error at CMakeLists.txt:601 (list):
list sub-command SORT requires list to be present.

CMake Error at CMakeLists.txt:601 (list):
list sub-command SORT requires list to be present.

CMake Error at CMakeLists.txt:601 (list):
list sub-command SORT requires list to be present.

CMake Error at CMakeLists.txt:601 (list):
list sub-command SORT requires list to be present.

CMake Error at CMakeLists.txt:601 (list):
list sub-command SORT requires list to be present.

CMake Error at CMakeLists.txt:601 (list):
list sub-command SORT requires list to be present.

CMake Error at CMakeLists.txt:601 (list):
list sub-command SORT requires list to be present.

CMake Warning (dev) at CMakeLists.txt:733 (get_target_property):
Policy CMP0026 is not set: Disallow use of the LOCATION target property.
Run "cmake --help-policy CMP0026" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.

The LOCATION property should not be read from target "png". Use the target
name directly with add_custom_command, or use the generator expression
$<TARGET_FILE>, as appropriate.

This warning is for project developers. Use -Wno-dev to suppress it.

CMake Warning (dev) at CMakeLists.txt:742 (get_target_property):
Policy CMP0026 is not set: Disallow use of the LOCATION target property.
Run "cmake --help-policy CMP0026" for policy details. Use the cmake_policy
command to set the policy and suppress this warning.

The LOCATION property should not be read from target "png_static". Use the
target name directly with add_custom_command, or use the generator
expression $<TARGET_FILE>, as appropriate.

This warning is for project developers. Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!
See also "~/torch-android/external/libpng/build/CMakeFiles/CMakeOutput.log".
-------------- Configuring DONE ---------------
make: *** No rule to make target 'install'. Stop.`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant