timur-losev / nvidia-texture-tools

Automatically exported from code.google.com/p/nvidia-texture-tools
Other
0 stars 0 forks source link

undefined reference to nv::Fit::* #210

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
[ 79%] Building CXX object 
src/nvtt/tools/CMakeFiles/nv-gnome-thumbnailer.dir/thumbnailer.cpp.o
Linking CXX executable nv-gnome-thumbnailer
../bc6h/libbc6h.a(zohone.cpp.o): In function `ZOH::roughone(ZOH::Tile const&, 
int, ZOH::FltEndpts*)':
zohone.cpp:(.text+0x2830): undefined reference to 
`nv::Fit::computePrincipalComponent_EigenSolver(int, nv::Vector3 const*)'
../bc6h/libbc6h.a(zohtwo.cpp.o): In function `ZOH::roughtwo(ZOH::Tile const&, 
int, ZOH::FltEndpts*)':
zohtwo.cpp:(.text+0x3074): undefined reference to 
`nv::Fit::computePrincipalComponent_EigenSolver(int, nv::Vector3 const*)'
../bc7/libbc7.a(avpcl_mode0.cpp.o): In function `rough(AVPCL::Tile const&, int, 
AVPCL::FltEndpts*)':
avpcl_mode0.cpp:(.text+0x38d1): undefined reference to 
`nv::Fit::computePrincipalComponent_EigenSolver(int, nv::Vector3 const*)'
../bc7/libbc7.a(avpcl_mode1.cpp.o): In function `rough(AVPCL::Tile const&, int, 
AVPCL::FltEndpts*)':
avpcl_mode1.cpp:(.text+0x382d): undefined reference to 
`nv::Fit::computePrincipalComponent_EigenSolver(int, nv::Vector3 const*)'
../bc7/libbc7.a(avpcl_mode2.cpp.o): In function `rough(AVPCL::Tile const&, int, 
AVPCL::FltEndpts*)':
avpcl_mode2.cpp:(.text+0x37a1): undefined reference to 
`nv::Fit::computePrincipalComponent_EigenSolver(int, nv::Vector3 const*)'
../bc7/libbc7.a(avpcl_mode3.cpp.o):avpcl_mode3.cpp:(.text+0x388f): more 
undefined references to `nv::Fit::computePrincipalComponent_EigenSolver(int, 
nv::Vector3 const*)' follow
../bc7/libbc7.a(avpcl_mode6.cpp.o): In function `rough(AVPCL::Tile const&, int, 
AVPCL::FltEndpts*)':
avpcl_mode6.cpp:(.text+0x383e): undefined reference to 
`nv::Fit::computePrincipalComponent_EigenSolver(int, nv::Vector4 const*)'
../bc7/libbc7.a(avpcl_mode7.cpp.o): In function `rough(AVPCL::Tile const&, int, 
AVPCL::FltEndpts*)':
avpcl_mode7.cpp:(.text+0x3950): undefined reference to 
`nv::Fit::computePrincipalComponent_EigenSolver(int, nv::Vector4 const*)'
collect2: error: ld returned 1 exit status
make[2]: *** [src/nvtt/tools/nv-gnome-thumbnailer] Error 1
make[1]: *** [src/nvtt/tools/CMakeFiles/nv-gnome-thumbnailer.dir/all] Error 2
make: *** [all] Error 2

What steps will reproduce the problem?
1.cmake ../path/to/source
2.make
3.

What is the expected output? What do you see instead?
a linked bin

What version of the product are you using? On what operating system?
svn trunk

Please provide any additional information below.
on gentoo linux

Original issue reported on code.google.com by salamand...@gmail.com on 7 Aug 2014 at 10:03

GoogleCodeExporter commented 9 years ago
Here is the make VERBOSE=1 output 

Linking CXX executable nv-gnome-thumbnailer
cd /home/salamanderrake/src/build/nvtt/src/nvtt/tools && /usr/bin/cmake -E 
cmake_link_script CMakeFiles/nv-gnome-thumbnailer.dir/link.txt --verbose=1
/usr/bin/c++    -march=athlon64 -fPIC -fopenmp    
CMakeFiles/nv-gnome-thumbnailer.dir/thumbnailer.cpp.o  -o nv-gnome-thumbnailer 
-rdynamic ../../nvcore/libnvcore.a ../../nvmath/libnvmath.a 
../../nvimage/libnvimage.a ../libnvtt.a ../../nvimage/libnvimage.a 
../../nvmath/libnvmath.a -ltiff ../../../extern/poshlib/libposh.a 
../../nvthread/libnvthread.a ../../nvcore/libnvcore.a -ldl 
../squish/libsquish.a ../bc6h/libbc6h.a ../bc7/libbc7.a 
../bc6h/libbc6h.a(zohone.cpp.o): In function `ZOH::roughone(ZOH::Tile const&, 
int, ZOH::FltEndpts*)':
zohone.cpp:(.text+0x2830): undefined reference to 
`nv::Fit::computePrincipalComponent_EigenSolver(int, nv::Vector3 const*)'
../bc6h/libbc6h.a(zohtwo.cpp.o): In function `ZOH::roughtwo(ZOH::Tile const&, 
int, ZOH::FltEndpts*)':
zohtwo.cpp:(.text+0x3074): undefined reference to 
`nv::Fit::computePrincipalComponent_EigenSolver(int, nv::Vector3 const*)'
../bc7/libbc7.a(avpcl_mode0.cpp.o): In function `rough(AVPCL::Tile const&, int, 
AVPCL::FltEndpts*)':
avpcl_mode0.cpp:(.text+0x38d1): undefined reference to 
`nv::Fit::computePrincipalComponent_EigenSolver(int, nv::Vector3 const*)'
../bc7/libbc7.a(avpcl_mode1.cpp.o): In function `rough(AVPCL::Tile const&, int, 
AVPCL::FltEndpts*)':
avpcl_mode1.cpp:(.text+0x382d): undefined reference to 
`nv::Fit::computePrincipalComponent_EigenSolver(int, nv::Vector3 const*)'
../bc7/libbc7.a(avpcl_mode2.cpp.o): In function `rough(AVPCL::Tile const&, int, 
AVPCL::FltEndpts*)':
avpcl_mode2.cpp:(.text+0x37a1): undefined reference to 
`nv::Fit::computePrincipalComponent_EigenSolver(int, nv::Vector3 const*)'
../bc7/libbc7.a(avpcl_mode3.cpp.o):avpcl_mode3.cpp:(.text+0x388f): more 
undefined references to `nv::Fit::computePrincipalComponent_EigenSolver(int, 
nv::Vector3 const*)' follow
../bc7/libbc7.a(avpcl_mode6.cpp.o): In function `rough(AVPCL::Tile const&, int, 
AVPCL::FltEndpts*)':
avpcl_mode6.cpp:(.text+0x383e): undefined reference to 
`nv::Fit::computePrincipalComponent_EigenSolver(int, nv::Vector4 const*)'
../bc7/libbc7.a(avpcl_mode7.cpp.o): In function `rough(AVPCL::Tile const&, int, 
AVPCL::FltEndpts*)':
avpcl_mode7.cpp:(.text+0x3950): undefined reference to 
`nv::Fit::computePrincipalComponent_EigenSolver(int, nv::Vector4 const*)'
collect2: error: ld returned 1 exit status
make[2]: *** [src/nvtt/tools/nv-gnome-thumbnailer] Error 1
make[2]: Leaving directory `/home/salamanderrake/src/build/nvtt'
make[1]: *** [src/nvtt/tools/CMakeFiles/nv-gnome-thumbnailer.dir/all] Error 2
make[1]: Leaving directory `/home/salamanderrake/src/build/nvtt'
make: *** [all] Error 2

Original comment by salamand...@gmail.com on 7 Aug 2014 at 10:07

GoogleCodeExporter commented 9 years ago
I believe this should be fixed now.

Original comment by cast...@gmail.com on 2 Dec 2014 at 8:30

GoogleCodeExporter commented 9 years ago
After reporting 
https://code.google.com/p/nvidia-texture-tools/issues/detail?id=215 I switched 
to clang 3.5.0 on my Ubuntu 14.10 machine. This issue still persists in current 
svn trunk:

Linking CXX executable nv-gnome-thumbnailer
cd 
/home/manvydas/Programming/nvtt/nvidia-texture-tools-read-only/build-debug/src/n
vtt/tools && /usr/local/bin/cmake -E cmake_link_script 
CMakeFiles/nv-gnome-thumbnailer.dir/link.txt --verbose=1
/usr/bin/c++   -g   CMakeFiles/nv-gnome-thumbnailer.dir/thumbnailer.cpp.o  -o 
nv-gnome-thumbnailer -rdynamic ../../nvcore/libnvcore.a 
../../nvmath/libnvmath.a ../../nvimage/libnvimage.a ../libnvtt.a 
../../nvimage/libnvimage.a ../../nvmath/libnvmath.a 
../../../extern/poshlib/libposh.a ../../bc6h/libbc6h.a ../../bc7/libbc7.a 
../../nvthread/libnvthread.a ../../nvcore/libnvcore.a -ldl -lpthread 
../squish/libsquish.a 
../../bc6h/libbc6h.a(zohone.cpp.o): In function `ZOH::roughone(ZOH::Tile 
const&, int, ZOH::FltEndpts*)':
/home/manvydas/Programming/nvtt/nvidia-texture-tools-read-only/src/bc6h/zohone.c
pp:751: undefined reference to 
`nv::Fit::computePrincipalComponent_EigenSolver(int, nv::Vector3 const*)'
../../bc6h/libbc6h.a(zohtwo.cpp.o): In function `ZOH::roughtwo(ZOH::Tile 
const&, int, ZOH::FltEndpts*)':
/home/manvydas/Programming/nvtt/nvidia-texture-tools-read-only/src/bc6h/zohtwo.c
pp:834: undefined reference to 
`nv::Fit::computePrincipalComponent_EigenSolver(int, nv::Vector3 const*)'
../../bc7/libbc7.a(avpcl_mode0.cpp.o): In function `rough(AVPCL::Tile const&, 
int, AVPCL::FltEndpts*)':
/home/manvydas/Programming/nvtt/nvidia-texture-tools-read-only/src/bc7/avpcl_mod
e0.cpp:996: undefined reference to 
`nv::Fit::computePrincipalComponent_EigenSolver(int, nv::Vector3 const*)'
../../bc7/libbc7.a(avpcl_mode1.cpp.o): In function `rough(AVPCL::Tile const&, 
int, AVPCL::FltEndpts*)':
/home/manvydas/Programming/nvtt/nvidia-texture-tools-read-only/src/bc7/avpcl_mod
e1.cpp:977: undefined reference to 
`nv::Fit::computePrincipalComponent_EigenSolver(int, nv::Vector3 const*)'
../../bc7/libbc7.a(avpcl_mode2.cpp.o): In function `rough(AVPCL::Tile const&, 
int, AVPCL::FltEndpts*)':
/home/manvydas/Programming/nvtt/nvidia-texture-tools-read-only/src/bc7/avpcl_mod
e2.cpp:934: undefined reference to 
`nv::Fit::computePrincipalComponent_EigenSolver(int, nv::Vector3 const*)'
../../bc7/libbc7.a(avpcl_mode3.cpp.o):/home/manvydas/Programming/nvtt/nvidia-tex
ture-tools-read-only/src/bc7/avpcl_mode3.cpp:989: more undefined references to 
`nv::Fit::computePrincipalComponent_EigenSolver(int, nv::Vector3 const*)' follow
../../bc7/libbc7.a(avpcl_mode6.cpp.o): In function `rough(AVPCL::Tile const&, 
int, AVPCL::FltEndpts*)':
/home/manvydas/Programming/nvtt/nvidia-texture-tools-read-only/src/bc7/avpcl_mod
e6.cpp:985: undefined reference to 
`nv::Fit::computePrincipalComponent_EigenSolver(int, nv::Vector4 const*)'
../../bc7/libbc7.a(avpcl_mode7.cpp.o): In function `rough(AVPCL::Tile const&, 
int, AVPCL::FltEndpts*)':
/home/manvydas/Programming/nvtt/nvidia-texture-tools-read-only/src/bc7/avpcl_mod
e7.cpp:1024: undefined reference to 
`nv::Fit::computePrincipalComponent_EigenSolver(int, nv::Vector4 const*)'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
src/nvtt/tools/CMakeFiles/nv-gnome-thumbnailer.dir/build.make:97: recipe for 
target 'src/nvtt/tools/nv-gnome-thumbnailer' failed
make[3]: *** [src/nvtt/tools/nv-gnome-thumbnailer] Error 1
CMakeFiles/Makefile2:614: recipe for target 
'src/nvtt/tools/CMakeFiles/nv-gnome-thumbnailer.dir/all' failed
make[2]: *** [src/nvtt/tools/CMakeFiles/nv-gnome-thumbnailer.dir/all] Error 2
Makefile:147: recipe for target 'all' failed
make[1]: *** [all] Error 2
Makefile:2: recipe for target 'all' failed
make: *** [all] Error 2

Original comment by manwiu...@gmail.com on 25 Feb 2015 at 10:33