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出错了 #2965

Open
wwhwwxlz opened this issue May 13, 2024 · 4 comments
Open

cmake出错了 #2965

wwhwwxlz opened this issue May 13, 2024 · 4 comments

Comments

@wwhwwxlz
Copy link

/opt/aarch64/KPGCC/gcc-10.3.1-2023.12-aarch64-linux/bin/../lib64/gcc/aarch64-linux-gnu/10.3.1/../../../../aarch64-linux-gnu/bin/ld: ../lib/libexiv2.so.0.28.2: undefined reference to ini_parse_string' /opt/aarch64/KPGCC/gcc-10.3.1-2023.12-aarch64-linux/bin/../lib64/gcc/aarch64-linux-gnu/10.3.1/../../../../aarch64-linux-gnu/bin/ld: ../lib/libexiv2.so.0.28.2: undefined reference to ini_parse'

cmake 3.25.0

@wwhwwxlz wwhwwxlz added the bug label May 13, 2024
@kmilos
Copy link
Collaborator

kmilos commented May 13, 2024

It would seem you're missing libinih (or the correct path to it). You should be seeing something like this example during CMake configuration (from Debian experimental build log):

-- Found inih: /usr/lib/aarch64-linux-gnu/libinih.so  
-- inih_INCLUDE_DIRS : /usr/include
-- inih_LIBRARIES : /usr/lib/aarch64-linux-gnu/libinih.so
-- inih_inireader_INCLUDE_DIRS : /usr/include
-- inih_inireader_LIBRARIES : /usr/lib/aarch64-linux-gnu/libINIReader.so

@wwhwwxlz
Copy link
Author

cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=/home/vcpkg-2023.08.09/scripts/buildsystems/vcpkg.cmake ..
-- Found inih: /home/vcpkg-2023.08.09/installed/arm64-linux/lib/libinih.a
-- inih_INCLUDE_DIRS : /home/vcpkg-2023.08.09/installed/arm64-linux/include
-- inih_LIBRARIES : /home/vcpkg-2023.08.09/installed/arm64-linux/lib/libinih.a
-- inih_inireader_INCLUDE_DIRS : /home/vcpkg-2023.08.09/installed/arm64-linux/include
-- inih_inireader_LIBRARIES : /home/vcpkg-2023.08.09/installed/arm64-linux/lib/libINIReader.a

@kmilos
Copy link
Collaborator

kmilos commented May 14, 2024

So, that path /home/vcpkg-2023.08.09/installed/arm64-linux doesn't appear in the above ld command. Something is up w/ your toolchain definitions, and I don't think this is an exi2 bug per se.

@kmilos kmilos removed the bug label May 14, 2024
@wwhwwxlz
Copy link
Author

我换了低版本的没有报错了

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