building qcad-2.0.5.0 on blfs

lux-integ lux-integ at btconnect.com
Tue Apr 28 18:40:45 PDT 2009


Greetings,

though engineering-cad packages have not so far  been part of blfs,  programs 
such as blender and  qcad both open-source/gpl  are available -and are very 
useful   The community edition of qcad is downloadable at:-

http://www.ribbonsoft.com/qcad_downloads.html

Binaries (as can be seem from the web-page) are available for the main 
distributions (though not the most modern ones. Source code is also 
available. The latest released version is  of the source is 2.0.5.0   I have 
qt-3.3.8 installed (in /opt/qt-3.3.8b)  My host runs 54-bit (AMd54) linus 
kernel 2.6.27.2  gcc-4.3.2.
I set th4 required envars as follows:-

export QTDIR=/opt/qt-3.3.8b
export QMAKESPEC=/opt/qt-3.3.8b/mkspecs/linux-g++-64
export PATH=/opt/qt-3.3.8b/bin:$PATH


and I attemptd to compile   as follows

cd  qcad-2.0.5.0-1-community.src
cd scripts
sh build_qcad.sh

here is the build spew:=
#######

configure: creating ./config.status
config.status: creating Makefile
config.status: creating test/Makefile
.........
Run 'make depend' to create dependencies.

test -d ./include || mkdir -p ./include
( cd ./include; rm -f *.h; \
	for hf in `find ../src -name '*.h'`; do \
		if [ "x$OS" = "xWindows_NT" ]; then \
			cp "$hf" .; \
		else \
			ln -s "$hf" 2> /dev/null; \
		fi \
	done )
gcc -I./src -g -O2  -I/usr/X11R7.4/include -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DLINUX=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1  -c 
src/dl_dxf.cpp -o src/dl_dxf.o
gcc -I./src -g -O2  -I/usr/X11R7.4/include -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DLINUX=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1  -c 
src/dl_writer_ascii.cpp -o src/dl_writer_ascii.o
In file included from src/dl_writer_ascii.h:35,
                 from src/dl_writer_ascii.cpp:34:
src/dl_writer.h: In member function 'void DL_Writer::entityAttributes(const 
DL_Attributes&) const':
src/dl_writer.h:337: error: 'strcasecmp' was not declared in this scope
src/dl_writer_ascii.cpp: In member function 'virtual void 
DL_WriterA::dxfReal(int, double) const':
src/dl_writer_ascii.cpp:72: error: 'strlen' was not declared in this scope
src/dl_writer_ascii.cpp:81: error: 'strlen' was not declared in this scope
src/dl_writer_ascii.cpp: In static member function 'static void 
DL_WriterA::strReplace(char*, char, char)':
src/dl_writer_ascii.cpp:147: error: 'strlen' was not declared in this scope
make: *** [src/dl_writer_ascii.o] Error 1
Building libdxf.a failed

#######

I dont know if this is a gcc-4.3.2 problem or a qt problem.  I tried looking 
for patches for fedora and debian  (binaries are available for  these 
distributions)   but the ones I came across  do not seem to be appropriate.

If any one on list  has an inkling of a way forward,   your suggestion will be 
much appreciated.

yours sincerely
lux-integ



More information about the blfs-support mailing list