ItayGal2 / nvidia-texture-tools

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

OpenBSD support #176

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

Attempting to build nvidia-texture-tools r1347 on OpenBSD fails.

With a lot of patching, it gets to this point:

Linking CXX executable nv-gnome-thumbnailer
cd /usr/ports/pobj/nvtt-2.0.8-1/build-amd64/src/nvtt/tools && 
/usr/local/bin/cmake -E cmake_link_script 
CMakeFiles/nv-gnome-thumbnailer.dir/link.txt --verbose=1
/usr/bin/c++   -DNDEBUG -fPIC    
CMakeFiles/nv-gnome-thumbnailer.dir/thumbnailer.cpp.o  -o nv-gnome-thumbnailer  
../../nvcore/libnvcore.so ../../nvmath/libnvmath.so ../../nvimage/libnvimage.so 
../../nvmath/libnvmath.so ../../nvcore/libnvcore.so -pthread 
/usr/local/lib/libpng.so.14.0 /usr/lib/libz.so.4.1 
/usr/local/lib/libjpeg.so.64.0 /usr/local/lib/libtiff.so.38.3 
../../../extern/poshlib/libposh.a 
-Wl,-rpath,/usr/ports/pobj/nvtt-2.0.8-1/build-amd64/src/nvcore:/usr/ports/pobj/n
vtt-2.0.8-1/build-amd64/src/nvmath:/usr/ports/pobj/nvtt-2.0.8-1/build-amd64/src/
nvimage -Wl,-rpath-link,/usr/X11R6/lib:/usr/local/lib 
../../nvcore/libnvcore.so: warning: strcpy() is almost always misused, please 
use strlcpy()
../../nvcore/libnvcore.so: warning: strcat() is almost always misused, please 
use strlcat()
CMakeFiles/nv-gnome-thumbnailer.dir/thumbnailer.cpp.o(.text+0x505): In function 
`main':
: undefined reference to `nv::Array<char const*>::append(char const* const&)'
CMakeFiles/nv-gnome-thumbnailer.dir/thumbnailer.cpp.o(.text+0x525): In function 
`main':
: undefined reference to `nv::Array<char const*>::append(char const* const&)'
CMakeFiles/nv-gnome-thumbnailer.dir/thumbnailer.cpp.o(.text+0x540): In function 
`main':
: undefined reference to `nv::Array<char const*>::append(char const* const&)'
CMakeFiles/nv-gnome-thumbnailer.dir/thumbnailer.cpp.o(.text+0x560): In function 
`main':
: undefined reference to `nv::Array<char const*>::append(char const* const&)'
CMakeFiles/nv-gnome-thumbnailer.dir/thumbnailer.cpp.o(.text+0x578): In function 
`main':
: undefined reference to `nv::Array<char const*>::append(char const* const&)'
CMakeFiles/nv-gnome-thumbnailer.dir/thumbnailer.cpp.o(.text+0x590): more 
undefined references to `nv::Array<char const*>::append(char const* const&)' 
follow
CMakeFiles/nv-gnome-thumbnailer.dir/thumbnailer.cpp.o(.text+0xafb): In function 
`main':
: undefined reference to `nv::Array<char const*>::clear()'
CMakeFiles/nv-gnome-thumbnailer.dir/thumbnailer.cpp.o(.text+0xb3d): In function 
`main':
: undefined reference to `nv::Array<char const*>::clear()'
collect2: ld returned 1 exit status
*** Error code 1

Full build log, as well as the diff to get this far, are attached.

Original issue reported on code.google.com by anthonyj...@gmail.com on 4 Jun 2012 at 6:22

Attachments:

GoogleCodeExporter commented 8 years ago
Hi

Here's a patch which adds the necessary include to thumbnailer.cpp and 
hdrtest.cpp which also omits it.

Original comment by bangnoise@gmail.com on 18 Jul 2012 at 1:20

Attachments:

GoogleCodeExporter commented 8 years ago
Hey, I had somehow missed these patches. I just integrated them. Thanks!

Original comment by cast...@gmail.com on 11 Sep 2012 at 4:40

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r1357.

Original comment by cast...@gmail.com on 11 Sep 2012 at 4:41