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

netgen-6.2.2406 failed to link with libjpeg #210

Open
alexxy opened this issue Feb 6, 2025 · 0 comments
Open

netgen-6.2.2406 failed to link with libjpeg #210

alexxy opened this issue Feb 6, 2025 · 0 comments

Comments

@alexxy
Copy link

alexxy commented Feb 6, 2025

Hi!

While building netgen on Gentoo linux i found an issue

FAILED: ng/netgen 
: && /usr/bin/x86_64-pc-linux-gnu-g++ -O2 -pipe -march=skylake -mtune=skylake -Wl,-O1,--hash-style=gnu,--sort-common,--as-needed     -Wl,--dependency-file=ng/CMakeFiles/netgen.dir/link.d ng/CMakeFiles/netgen.dir/ngappinit.cpp.o -o ng/netgen  -Wl,-rpath,/var/tmp/portage/media-gfx/netgen-6.2.2406/work/netgen-6.2.2406_build:/var/tmp/portage/media-gfx/netgen-6.2.2406/work/netgen-6.2.2406_build/libsrc/core:  libnggui.so  /usr/lib64/libtcl.so  /usr/lib64/libtk.so  libnglib.so  libsrc/core/libngcore.so  -ldl  ng/Togl2.1/libtogl.a  /usr/lib64/libXmu.so  /usr/lib64/libX11.so  /usr/lib64/libtclstub.a  /usr/lib64/libtkstub.a  /usr/lib64/libOpenGL.so  /usr/lib64/libGLX.so  /usr/lib64/libGLU.so && :
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: libnggui.so: undefined reference to `jpeg_set_defaults'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: libnggui.so: undefined reference to `jpeg_write_scanlines'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: libnggui.so: undefined reference to `jpeg_set_quality'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: libnggui.so: undefined reference to `jpeg_stdio_dest'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: libnggui.so: undefined reference to `jpeg_start_compress'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: libnggui.so: undefined reference to `jpeg_std_error'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: libnggui.so: undefined reference to `jpeg_finish_compress'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: libnggui.so: undefined reference to `jpeg_destroy_compress'
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld: libnggui.so: undefined reference to `jpeg_CreateCompress'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

Config options

cmake -C /var/tmp/portage/media-gfx/netgen-6.2.2406/work/netgen-6.2.2406_build/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_STUB_FILES=OFF -DENABLE_UNIT_TESTS=no -DINSTALL_PROFILES=OFF -DNG_INSTALL_DIR_CMAKE=lib64/cmake/netgen -DNG_INSTALL_DIR_INCLUDE=include/netgen -DNG_INSTALL_DIR_LIB=lib64 -DUSE_CCACHE=OFF -DUSE_CGNS=OFF -DUSE_GUI=yes -DUSE_INTERNAL_TCL=OFF -DUSE_JPEG=yes -DUSE_MPEG=no -DUSE_NATIVE_ARCH=OFF -DUSE_MPI=no -DUSE_OCC=yes -DUSE_PYTHON=no -DUSE_SUPERBUILD=OFF -DNETGEN_VERSION_GIT=v6.2.2406 -DTK_INCLUDE_PATH=/usr/lib64/tk8.6/include -DUSE_MPI4PY=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/media-gfx/netgen-6.2.2406/work/netgen-6.2.2406_build/gentoo_toolchain.cmake /var/tmp/portage/media-gfx/netgen-6.2.2406/work/netgen-6.2.2406

Ref for gentoo bug https://bugs.gentoo.org/947728

alexxy added a commit to alexxy/netgen that referenced this issue Feb 9, 2025
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

1 participant