WIP: test #1

Draft
Oleksii_Hyzha wants to merge 7 commits from wip into master
Collaborator
No description provided.
Oleksii_Hyzha added 1 commit 2025-02-26 09:47:58 +01:00
test
Some checks failed
openE57-windows / build (Debug, windows-latest, dynamic) (push) Waiting to run
openE57-windows / build (Debug, windows-latest, static) (push) Waiting to run
openE57-windows / build (Release, windows-latest, dynamic) (push) Waiting to run
openE57-windows / build (Release, windows-latest, static) (push) Waiting to run
openE57-unix / build (Debug, macos-latest) (push) Has been cancelled
openE57-unix / build (Debug, ubuntu-22.04) (push) Has been cancelled
openE57-unix / build (Release, macos-latest) (push) Has been cancelled
openE57-unix / build (Release, ubuntu-22.04) (push) Has been cancelled
openE57-unix / build (Debug, macos-latest) (pull_request) Has been cancelled
openE57-unix / build (Debug, ubuntu-22.04) (pull_request) Has been cancelled
openE57-unix / build (Release, macos-latest) (pull_request) Has been cancelled
openE57-unix / build (Release, ubuntu-22.04) (pull_request) Has been cancelled
openE57-windows / build (Debug, windows-latest, dynamic) (pull_request) Has been cancelled
openE57-windows / build (Debug, windows-latest, static) (pull_request) Has been cancelled
openE57-windows / build (Release, windows-latest, dynamic) (pull_request) Has been cancelled
openE57-windows / build (Release, windows-latest, static) (pull_request) Has been cancelled
3ef32fdd6f
Oleksii_Hyzha added 1 commit 2025-02-26 09:49:45 +01:00
rename github to gitea
Some checks failed
openE57-unix / build (Debug, macos-latest) (push) Waiting to run
openE57-unix / build (Debug, ubuntu-22.04) (push) Waiting to run
openE57-unix / build (Release, macos-latest) (push) Waiting to run
openE57-unix / build (Release, ubuntu-22.04) (push) Waiting to run
openE57-windows / build (Debug, windows-latest, dynamic) (push) Waiting to run
openE57-windows / build (Debug, windows-latest, static) (push) Waiting to run
openE57-windows / build (Release, windows-latest, dynamic) (push) Waiting to run
openE57-windows / build (Release, windows-latest, static) (push) Waiting to run
openE57-unix / build (Debug, macos-latest) (pull_request) Has been cancelled
openE57-unix / build (Debug, ubuntu-22.04) (pull_request) Has been cancelled
openE57-unix / build (Release, macos-latest) (pull_request) Has been cancelled
openE57-unix / build (Release, ubuntu-22.04) (pull_request) Has been cancelled
openE57-windows / build (Debug, windows-latest, dynamic) (pull_request) Has been cancelled
openE57-windows / build (Debug, windows-latest, static) (pull_request) Has been cancelled
openE57-windows / build (Release, windows-latest, dynamic) (pull_request) Has been cancelled
openE57-windows / build (Release, windows-latest, static) (pull_request) Has been cancelled
c89af6f6e9
Oleksii_Hyzha added 1 commit 2025-02-26 11:30:14 +01:00
modify xerces handling
Some checks failed
openE57-unix / build (Debug, macos-latest) (push) Waiting to run
openE57-unix / build (Debug, ubuntu-22.04) (push) Waiting to run
openE57-unix / build (Release, macos-latest) (push) Waiting to run
openE57-unix / build (Release, ubuntu-22.04) (push) Waiting to run
openE57-windows / build (Debug, windows-latest, dynamic) (push) Waiting to run
openE57-windows / build (Debug, windows-latest, static) (push) Waiting to run
openE57-windows / build (Release, windows-latest, dynamic) (push) Waiting to run
openE57-windows / build (Release, windows-latest, static) (push) Waiting to run
openE57-unix / build (Debug, macos-latest) (pull_request) Has been cancelled
openE57-unix / build (Debug, ubuntu-22.04) (pull_request) Has been cancelled
openE57-unix / build (Release, macos-latest) (pull_request) Has been cancelled
openE57-unix / build (Release, ubuntu-22.04) (pull_request) Has been cancelled
openE57-windows / build (Debug, windows-latest, dynamic) (pull_request) Has been cancelled
openE57-windows / build (Debug, windows-latest, static) (pull_request) Has been cancelled
openE57-windows / build (Release, windows-latest, dynamic) (pull_request) Has been cancelled
openE57-windows / build (Release, windows-latest, static) (pull_request) Has been cancelled
89df7cf629
Oleksii_Hyzha added 1 commit 2025-02-26 11:46:03 +01:00
expose headers
Some checks failed
openE57-unix / build (Debug, macos-latest) (push) Waiting to run
openE57-unix / build (Debug, ubuntu-22.04) (push) Waiting to run
openE57-unix / build (Release, macos-latest) (push) Waiting to run
openE57-unix / build (Release, ubuntu-22.04) (push) Waiting to run
openE57-windows / build (Debug, windows-latest, dynamic) (push) Waiting to run
openE57-windows / build (Debug, windows-latest, static) (push) Waiting to run
openE57-windows / build (Release, windows-latest, dynamic) (push) Waiting to run
openE57-windows / build (Release, windows-latest, static) (push) Waiting to run
openE57-unix / build (Debug, macos-latest) (pull_request) Has been cancelled
openE57-unix / build (Debug, ubuntu-22.04) (pull_request) Has been cancelled
openE57-unix / build (Release, macos-latest) (pull_request) Has been cancelled
openE57-unix / build (Release, ubuntu-22.04) (pull_request) Has been cancelled
openE57-windows / build (Debug, windows-latest, dynamic) (pull_request) Has been cancelled
openE57-windows / build (Debug, windows-latest, static) (pull_request) Has been cancelled
openE57-windows / build (Release, windows-latest, dynamic) (pull_request) Has been cancelled
openE57-windows / build (Release, windows-latest, static) (pull_request) Has been cancelled
5e7184e93b
Oleksii_Hyzha added 1 commit 2025-02-26 14:41:45 +01:00
refactor cmake file
Some checks failed
openE57-windows / build (Debug, windows-latest, dynamic) (pull_request) Has been cancelled
openE57-windows / build (Debug, windows-latest, static) (pull_request) Has been cancelled
openE57-windows / build (Release, windows-latest, dynamic) (pull_request) Has been cancelled
openE57-windows / build (Release, windows-latest, static) (pull_request) Has been cancelled
openE57-unix / build (Debug, macos-latest) (pull_request) Has been cancelled
openE57-unix / build (Debug, ubuntu-22.04) (pull_request) Has been cancelled
openE57-unix / build (Release, macos-latest) (pull_request) Has been cancelled
openE57-unix / build (Release, ubuntu-22.04) (pull_request) Has been cancelled
openE57-windows / build (Debug, windows-latest, dynamic) (push) Has been cancelled
openE57-windows / build (Debug, windows-latest, static) (push) Has been cancelled
openE57-windows / build (Release, windows-latest, dynamic) (push) Has been cancelled
openE57-windows / build (Release, windows-latest, static) (push) Has been cancelled
openE57-unix / build (Debug, macos-latest) (push) Has been cancelled
openE57-unix / build (Debug, ubuntu-22.04) (push) Has been cancelled
openE57-unix / build (Release, macos-latest) (push) Has been cancelled
openE57-unix / build (Release, ubuntu-22.04) (push) Has been cancelled
63883cecc0
Oleksii_Hyzha requested review from Georg_Hagen 2025-02-27 14:26:49 +01:00
Georg_Hagen requested changes 2025-02-27 15:18:35 +01:00
@@ -14,4 +27,0 @@
set(XML_LIBRARIES ${XML_LIBRARIES} ${ICU_LIBRARIES})
set(XML_INCLUDE_DIRS ${XML_INCLUDE_DIRS} ${ICU_INCLUDE_DIRS})
elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
list(APPEND compiler_definitions WINDOWS)
Owner

missing

missing
Author
Collaborator

I don't know if this is even needed. Fetching and linking e57 from mavo works fine for all platforms

I don't know if this is even needed. Fetching and linking e57 from mavo works fine for all platforms
Georg_Hagen marked this conversation as resolved
@@ -9,4 +26,1 @@
# Add ICU in Linux Systems
if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR ${CMAKE_SYSTEM_NAME} STREQUAL "Apple")
list(APPEND compiler_definitions LINUX)
Owner

missing

missing
@@ -8,4 +25,2 @@
endif()
# Add ICU in Linux Systems
if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR ${CMAKE_SYSTEM_NAME} STREQUAL "Apple")
Owner

Their static xerces-c still needs icu
so you cant just delete this

Their static xerces-c still needs icu so you cant just delete this
Author
Collaborator

if find_package is used? I'm not sure, they don't use icu explicitly and to build xerces you need either icu or other transcoder that is selected and should be linked by automatically, isn't it?

if find_package is used? I'm not sure, they don't use icu explicitly and to build xerces you need either icu or other transcoder that is selected and should be linked by automatically, isn't it?
Owner

static libs, don't include their dependency in the lib itself (usually).
so you will have to either patch up their conan stuff, or link the icu that was used when building the static xerces.

static libs, don't include their dependency in the lib itself (usually). so you will have to either patch up their conan stuff, or link the icu that was used when building the static xerces.
Author
Collaborator

from what I've seen from logs, when you build xerces it always chooses something to link as transcoder (icu or something else) and e57 don't use icu directly, so I bet this whole thing with icu is not necessary. though, can you check xerces linked symbols on linux or mac? IIRC, icu for linux is linked directly in installed xerces lib

from what I've seen from logs, when you build xerces it always chooses something to link as transcoder (icu or something else) and e57 don't use icu directly, so I bet this whole thing with icu is not necessary. though, can you check xerces linked symbols on linux or mac? IIRC, icu for linux is linked directly in installed xerces lib
Owner

it's linked, but the symbols are not included in the lib; unlike a shared lib, a static lib (.a/.lib file) does not know which other (.a/.lib) files are needed; thats the job of the build system, to supply all required lib files to the final exectuable/sharedlib linker
unless you explicitly make a fat static lib, which basically no one does; or a shared lib (which they don't use for their conan setup)

it's linked, but the symbols are not included in the lib; unlike a shared lib, a static lib (.a/.lib file) does not know which other (.a/.lib) files are needed; thats the job of the build system, to supply all required lib files to the final exectuable/sharedlib linker unless you explicitly make a fat static lib, which basically no one does; or a shared lib (which they don't use for their conan setup)
Author
Collaborator

but e57 is built successfully for all platforms on fork when I build it from sources. like is there any difference between this way and using installed version of package that under the hood should have done all the same steps

but e57 is built successfully for all platforms on fork when I build it from sources. like is there any difference between this way and using installed version of package that under the hood should have done all the same steps
Owner

the lib itself will build fine, but the final linking into an executable will be an issue, when you take their conan xerces-c but not tell it where the icu lib is

the lib itself will build fine, but the final linking into an executable will be an issue, when you take **their conan xerces-c** but not tell it where the icu lib is
Author
Collaborator

well, then it's only relevant if find_package is used (along with conan that loads xerces-c)?

well, then it's only relevant if find_package is used (along with conan that loads xerces-c)?
Owner

yes, if fetch was used together with a static lib

yes, if fetch was used together with a static lib
@@ -6,0 +10,4 @@
FetchContent_Declare(
xerces-c
EXCLUDE_FROM_ALL
GIT_REPOSITORY ${XERCES_C_REPO}
Owner

Undefined variable

Undefined variable
@@ -29,3 +29,3 @@
target_include_directories(${PROJECT_NAME}
PRIVATE
PUBLIC
Owner

why do you change the include dir to public?

why do you change the include dir to public?
Author
Collaborator

so that target_link_libraries would expose it's includes and I don't need to manually call target_include_directories

so that target_link_libraries would expose it's includes and I don't need to manually call target_include_directories
Owner

i see
can you then please only make the relevant stuff public, we don't need the xml headers when linking opene57

i see can you then please only make the relevant stuff public, we don't need the xml headers when linking opene57
Georg_Hagen marked this conversation as resolved
@@ -53,3 +53,3 @@
target_include_directories(${PROJECT_NAME}las
PRIVATE
PUBLIC
Owner

why do you change the include dir to public?

why do you change the include dir to public?
Oleksii_Hyzha added 1 commit 2025-02-27 16:59:53 +01:00
refactoring
Some checks failed
openE57-unix / build (Debug, macos-latest) (push) Has been cancelled
openE57-unix / build (Debug, ubuntu-22.04) (push) Has been cancelled
openE57-unix / build (Release, macos-latest) (push) Has been cancelled
openE57-unix / build (Release, ubuntu-22.04) (push) Has been cancelled
openE57-windows / build (Debug, windows-latest, dynamic) (push) Has been cancelled
openE57-windows / build (Debug, windows-latest, static) (push) Has been cancelled
openE57-windows / build (Release, windows-latest, dynamic) (push) Has been cancelled
openE57-windows / build (Release, windows-latest, static) (push) Has been cancelled
openE57-unix / build (Debug, macos-latest) (pull_request) Has been cancelled
openE57-unix / build (Debug, ubuntu-22.04) (pull_request) Has been cancelled
openE57-unix / build (Release, macos-latest) (pull_request) Has been cancelled
openE57-unix / build (Release, ubuntu-22.04) (pull_request) Has been cancelled
openE57-windows / build (Debug, windows-latest, dynamic) (pull_request) Has been cancelled
openE57-windows / build (Debug, windows-latest, static) (pull_request) Has been cancelled
openE57-windows / build (Release, windows-latest, dynamic) (pull_request) Has been cancelled
openE57-windows / build (Release, windows-latest, static) (pull_request) Has been cancelled
6d4b2e2b52
Oleksii_Hyzha added 1 commit 2025-02-28 08:31:11 +01:00
This pull request is marked as a work in progress.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin wip:wip
git checkout wip
Sign in to join this conversation.