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

LuaRocks install report multi target_link_libraries definitions #123

Open
c4dr01d opened this issue Jan 24, 2023 · 3 comments
Open

LuaRocks install report multi target_link_libraries definitions #123

c4dr01d opened this issue Jan 24, 2023 · 3 comments

Comments

@c4dr01d
Copy link

c4dr01d commented Jan 24, 2023

Followed luarocks installation and report this cmake error:

CMake Error at CMakeLists.txt:145 (target_link_libraries):
  The keyword signature for target_link_libraries has already been used with
  the target "yue".  All uses of target_link_libraries with a target must be
  either all-keyword or all-plain.

  The uses of the keyword signature are here:

   * CMakeLists.txt:139 (target_link_libraries)
@pigpigyyy
Copy link
Owner

fixed duplicated target_link_libraries via 2063353, updated luarocks realease.

@c4dr01d
Copy link
Author

c4dr01d commented Jan 25, 2023

On termux, luarocks CMake report:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
LUA_MATH_LIBRARY (ADVANCED)
    linked by target "yue" in directory /data/data/com.termux/files/usr/tmp/luarocks_yuescript-0.15.23-1-wivmf2/yuescript
    linked by target "libyue" in directory /data/data/com.termux/files/usr/tmp/luarocks_yuescript-0.15.23-1-wivmf2/yuescript

-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.

Error: Build error: Failed cmake.

And in my Arch linux, I running luarocks install yuescript again, when linking yue executable, report:

/usr/bin/ld: cannot find -l-ldl: No such file or directory
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/yue.dir/build.make:546: yue] Error 1
make[1]: *** [CMakeFiles/Makefile2:111: CMakeFiles/yue.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

@pigpigyyy
Copy link
Owner

Found some typos in CMakeList.txt file. Just tried a new release should build on Arch Linux. I'll look into termux when I get time.

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

2 participants