8000 redefinition in cmake build · Issue #503 · rbfx/rbfx · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

redefinition in cmake build #503

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

Open
MkFair opened this issue Jan 12, 2023 · 4 comments
Open

redefinition in cmake build #503

MkFair opened this issue Jan 12, 2023 · 4 comments
Assignees

Comments

@MkFair
Copy link
MkFair commented Jan 12, 2023

I tryed build rbfx in my ubuntu system. After running cmake\cmake --build in step
Linking CXX shared library ../../../bin/libUrho3D.so
i get next errors
/usr/bin/ld: ../../../lib/libPugiXml.a(CMakeCXXCompilerId.cpp.o): redefenition «info_compiler», previous defenition in /rbfx/Source/ThirdParty/LZ4/
(abbreviated for simplicity) and many analog errors
info_platform
info_arch and etc.

How fix this problem?

@eugeneko
Copy link
Member

@rokups

@rokups
Copy link
Member
rokups commented Jan 12, 2023

Could you provide complete cmake commands for generating build dir and building it?

@rokups rokups self-assigned this Jan 12, 2023
@MkFair
Copy link
Author
MkFair commented Jan 12, 2023

I using simple commands
In my project CMakeFiles adding line - add_subdirectory(rbfx)
mkdir build&&cd build
cmake .. && cmake --build,
I tryed analog operation from eclipse, add CMake existing project, and build using CDT, but accept similar result

@rokups
Copy link
Member
rokups commented Jan 12, 2023
/tmp/rbfx-test % git clone https://github.com/rbfx/rbfx/
Cloning into 'rbfx'...
remote: Enumerating objects: 233587, done.
remote: Counting objects: 100% (1525/1525), done.
remote: Compressing objects: 100% (491/491), done.
remote: Total 233587 (delta 1053), reused 1427 (delta 1026), pack-reused 232062
Receiving objects: 100% (233587/233587), 320.21 MiB | 9.93 MiB/s, done.
Resolving deltas: 100% (174425/174425), done.
/tmp/rbfx-test % cat CMakeLists.txt 
project(rbfx-test)
add_subdirectory(rbfx)
/tmp/rbfx-test % cmake -S . -B cmake-build
<...>
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/rbfx-test/cmake-build
/tmp/rbfx-test % cmake --build cmake-build
cmake --build cmake-build -j24
<...>
[100%] Linking CXX executable ../../../bin/Editor
[100%] Built target Editor

Well that works for me. I really need a way to reproduce a problem in order to help.

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

No branches or pull requests

3 participants
0