Skip to content

Conversation

@mwlasiuk
Copy link
Contributor

@mwlasiuk mwlasiuk commented Sep 23, 2025

  • This PR makes it possible to build nntrainer statically
  • Note that static build requires PLUGGABLE to be disabled

Self evaluation:

  1. Build test: [X]Passed [ ]Failed [ ]Skipped
  2. Run test: [X]Passed [ ]Failed [ ]Skipped

Signed-off-by: mwlasiuk [email protected]

@mwlasiuk mwlasiuk force-pushed the test/static-build-enablement branch 5 times, most recently from 560fadb to 7ff7e18 Compare September 25, 2025 06:24
@mwlasiuk mwlasiuk changed the title [TEST] [DO NOT MERGE] nntrainer static build nntrainer static build - enablement Sep 25, 2025
@mwlasiuk mwlasiuk marked this pull request as ready for review September 25, 2025 06:26
@mwlasiuk mwlasiuk force-pushed the test/static-build-enablement branch 3 times, most recently from cfb3098 to 78c6de8 Compare September 26, 2025 10:33
install: true,
install_dir: nntrainer_libdir,
)
endif
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use library() instead of shared_library and shared_library? ref: https://mesonbuild.com/Reference-manual_functions.html#library

@mwlasiuk mwlasiuk force-pushed the test/static-build-enablement branch from 78c6de8 to 1164344 Compare September 30, 2025 06:08
@github-actions
Copy link

This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 3 days.

@github-actions github-actions bot added the Stale label Oct 15, 2025
- initiali work for nnrtrainer static build enablement

Signed-off-by: mwlasiuk <[email protected]>
- add option flag to enable / disable building layers as pluggable modules

Signed-off-by: mwlasiuk <[email protected]>
@mwlasiuk mwlasiuk force-pushed the test/static-build-enablement branch from 1164344 to ebc6b8a Compare October 15, 2025 10:14
@djeong20 djeong20 removed the Stale label Oct 15, 2025
Copy link
Contributor

@djeong20 djeong20 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please resolve the following error.

[419/456] Linking target test/input_gen/genModelExeOrder.exe
FAILED: [code=1181] test/input_gen/genModelExeOrder.exe 
"link"  /MACHINE:x64 /OUT:test/input_gen/genModelExeOrder.exe test/input_gen/genModelExeOrder.exe.p/genModelExeOrder.cpp.obj "/release" "/nologo" "/OPT:REF" "nntrainer/nntrainer.lib" "subprojects/iniparser/libiniparser_static.a" "api/ccapi/ccapi-nntrainer.lib" "test/libnntrainer_test_util.a" "openblas.lib" "/NODEFAULTLIB:vcomp" "D:/a/nntrainer/nntrainer/libiomp_win/libiomp5md.lib" "/NODEFAULTLIB:vcomp" "/SUBSYSTEM:CONSOLE" "kernel32.lib" "user32.lib" "gdi32.lib" "winspool.lib" "shell32.lib" "ole32.lib" "oleaut32.lib" "uuid.lib" "comdlg32.lib" "advapi32.lib"
LINK : fatal error LNK1181: cannot open input file 'api\ccapi\ccapi-nntrainer.lib'

https://github.com/nnstreamer/nntrainer/actions/runs/18525503023/job/52795271762?pr=3507#step:7:5453

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants