Bug #1254
Error while compiling with current stable squish
Status: | Closed | Start date: | 03/09/2011 | |
---|---|---|---|---|
Priority: | High | Due date: | ||
Assignee: | kervala | % Done: | 100% |
|
Category: | OS: GNU/Linux | |||
Target version: | Version 0.9.0 |
Description
Commands used to compile:
cmake \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DWITH_STATIC=ON \ -DWITH_STATIC_DRIVERS=ON \ .. make -j3
Error:
[ 63%] Building CXX object nel/tools/3d/hls_bank_maker/CMakeFiles/hls_bank_maker.dir/__/s3tc_compressor_lib/s3tc_compressor.cpp.o /home/chaves/proxectos/Chakra/packaging/master/tmp/ryzom/src/ryzom-build/code/nel/tools/3d/s3tc_compressor_lib/s3tc_compressor.cpp: In function ‘void compressMipMap(uint8*, sint, sint, std::vector<unsigned char>&, CS3TCCompressor::DDS_HEADER&, sint)’: /home/chaves/proxectos/Chakra/packaging/master/tmp/ryzom/src/ryzom-build/code/nel/tools/3d/s3tc_compressor_lib/s3tc_compressor.cpp:64:82: error: too many arguments to function ‘void squish::CompressImage(const squish::u8*, int, int, void*, int)’ /usr/include/squish.h:219:6: note: declared here [ 63%] Building CXX object nel/tools/3d/panoply_maker/CMakeFiles/panoply_maker.dir/panoply_maker.cpp.o /home/chaves/proxectos/Chakra/packaging/master/tmp/ryzom/src/ryzom-build/code/nel/tools/3d/s3tc_compressor_lib/s3tc_compressor.cpp: In function ‘void compressMipMap(uint8*, sint, sint, std::vector<unsigned char>&, CS3TCCompressor::DDS_HEADER&, sint)’: /home/chaves/proxectos/Chakra/packaging/master/tmp/ryzom/src/ryzom-build/code/nel/tools/3d/s3tc_compressor_lib/s3tc_compressor.cpp:64:82: error: too many arguments to function ‘void squish::CompressImage(const squish::u8*, int, int, void*, int)’ /usr/include/squish.h:219:6: note: declared here make[2]: *** [nel/tools/3d/tga_2_dds/CMakeFiles/tga2dds.dir/__/s3tc_compressor_lib/s3tc_compressor.cpp.o] Erro 1 make[1]: *** [nel/tools/3d/tga_2_dds/CMakeFiles/tga2dds.dir/all] Erro 2 make[1]: *** Agardando por traballos non rematados.... [ 63%] Building CXX object nel/tools/3d/panoply_maker/CMakeFiles/panoply_maker.dir/__/s3tc_compressor_lib/s3tc_compressor.cpp.o make[2]: *** [nel/tools/3d/hls_bank_maker/CMakeFiles/hls_bank_maker.dir/__/s3tc_compressor_lib/s3tc_compressor.cpp.o] Erro 1 make[1]: *** [nel/tools/3d/hls_bank_maker/CMakeFiles/hls_bank_maker.dir/all] Erro 2 /home/chaves/proxectos/Chakra/packaging/master/tmp/ryzom/src/ryzom-build/code/nel/tools/3d/s3tc_compressor_lib/s3tc_compressor.cpp: In function ‘void compressMipMap(uint8*, sint, sint, std::vector<unsigned char>&, CS3TCCompressor::DDS_HEADER&, sint)’: /home/chaves/proxectos/Chakra/packaging/master/tmp/ryzom/src/ryzom-build/code/nel/tools/3d/s3tc_compressor_lib/s3tc_compressor.cpp:64:82: error: too many arguments to function ‘void squish::CompressImage(const squish::u8*, int, int, void*, int)’ /usr/include/squish.h:219:6: note: declared here make[2]: *** [nel/tools/3d/panoply_maker/CMakeFiles/panoply_maker.dir/__/s3tc_compressor_lib/s3tc_compressor.cpp.o] Erro 1 make[2]: *** Agardando por traballos non rematados.... make[1]: *** [nel/tools/3d/panoply_maker/CMakeFiles/panoply_maker.dir/all] Erro 2 make: *** [all] Erro 2
History
#1 Updated by kervala over 7 years ago
It seems like you're not using the last version of libsquish. I will check if I can use the good method depending on squish version.
#2 Updated by Gallaecio over 7 years ago
Actually, I'm. I compiled it myself:
[chaves@afonsox ~]$ sudo pacman -Qs libsquish local/libsquish 1.10-1
#3 Updated by kervala over 7 years ago
In fact, by last version, I meant this one from SVN : http://libsquish.googlecode.com/svn/trunk/
1.10 was released in 2008 while the SVN has been updated in 2009.
#4 Updated by Gallaecio over 7 years ago
Ok, I missunderstood the "latest" part then :) Will try again with latest SVN snapshot and report back.
#5 Updated by Gallaecio over 7 years ago
Great, thanks.
#6 Updated by danto over 6 years ago
is this solved?
#7 Updated by kervala over 6 years ago
Sorry, you'll have to use last Squish version from SVN.
I don't have any way to check Squish version installed on your system since there is no version in Squish headers.
Or perhaps should I tweak Squish CMake module.
#8 Updated by kervala almost 6 years ago
- Status changed from New to Assigned
- Assignee set to kervala
- Priority changed from Normal to High
I'm changing the FindSquish.cmake module to search for correct function definition and use a switch in code to use the right syntax.
#9 Updated by kervala almost 6 years ago
- Subject changed from Build fails in Chakra GNU/Linux (x86_64) to Error while compiling with current stable squish
#10 Updated by kervala almost 6 years ago
- Status changed from Assigned to Resolved
- % Done changed from 0 to 100
Applied in changeset commit:123643e719de.
#11 Updated by kervala almost 6 years ago
- Target version set to Version 0.9.0
#12 Updated by kervala almost 6 years ago
- Status changed from Resolved to Closed