# Ubuntu LTS 10.04 Compile Issue

**URL:** http://forum.qcad.org/t/ubuntu-lts-10-04-compile-issue/496
**Category:** dxflib Troubleshooting and Problems
**Created:** [August 17, 2011, 5:50am UTC](http://forum.qcad.org/t/ubuntu-lts-10-04-compile-issue/496 "2011-08-17T05:50:04Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ozykiss](http://forum.qcad.org/letter_avatar_proxy/v4/letter/o/7feea3/32.png) [@ozykiss](http://forum.qcad.org/u/ozykiss)
#### Post date: [August 17, 2011, 5:50am UTC](http://forum.qcad.org/t/ubuntu-lts-10-04-compile-issue/496/1 "2011-08-17T05:50:04Z")

</div>

Using the build script I get this.

Building libdxf.a failed  
  
  
  
The reason why I am compiling from source is :  
The elipse function does not produce proper code for use in Autocad or dxf to gcode and is just a mess.

Help function .. does not work also.  
Using the build script I get this.

```plaintext
QTDIR is: /usr/share/qt4
QMAKESPEC is: /usr/share/qt4/mkspecs/linux-g++-32
Platform is Linux
Target is qcad_demo
QMAKE_OPT: CONFIG+=rs_demo

```

gcc -v reports

```plaintext
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.4.3-4ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-plugin --enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i486 --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5)

```

The reason why I am compiling from source is :  
The elipse function does not produce proper code for use in Autocad or dxf to gcode and is just a mess.

Help function .. does not work also.

errors

> 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

---

<div class="post-metadata">

### Author: ![hungerburg](http://forum.qcad.org/user_avatar/forum.qcad.org/hungerburg/32/11_2.png) [@hungerburg](http://forum.qcad.org/u/hungerburg)
#### Post date: [August 17, 2011, 9:38am UTC](http://forum.qcad.org/t/ubuntu-lts-10-04-compile-issue/496/2 "2011-08-17T09:38:52Z")

</div>

## Never built dxflib, but reading the error message, you are missing an include. On my same ubuntu system “man strcasecmp” tells me, its “#include \<strings.h\>”. that should fix the other str… failures too. Try and put that statement into “src/dl\_writer\_ascii.h”.

peter

---

<div class="post-metadata">

### Author: ![ozykiss](http://forum.qcad.org/letter_avatar_proxy/v4/letter/o/7feea3/32.png) [@ozykiss](http://forum.qcad.org/u/ozykiss)
#### Post date: [August 18, 2011, 1:13am UTC](http://forum.qcad.org/t/ubuntu-lts-10-04-compile-issue/496/3 "2011-08-18T01:13:59Z")

</div>

> [@hungerburg](#):
>
> ## Never built dxflib, but reading the error message, you are missing an include. On my same ubuntu system “man strcasecmp” tells me, its “#include \<strings.h\>”. that should fix the other str… failures too. Try and put that statement into “src/dl\_writer\_ascii.h”.
> 
> peter

The file dl\_writer\_ascii.h has the following entries

```plaintext
#ifndef DL_WRITER_ASCII_H
#define DL_WRITER_ASCII_H

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "dl_writer.h"
#include <fstream>
#include <string>
using std::string;

```

Garret

---

<div class="post-metadata">

### Author: ![ozykiss](http://forum.qcad.org/letter_avatar_proxy/v4/letter/o/7feea3/32.png) [@ozykiss](http://forum.qcad.org/u/ozykiss)
#### Post date: [August 18, 2011, 1:17am UTC](http://forum.qcad.org/t/ubuntu-lts-10-04-compile-issue/496/4 "2011-08-18T01:17:56Z")

</div>

Now I get this

> 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

c

```plaintext
hecking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for a BSD-compatible install... /usr/bin/install -c
checking for find... find
checking for makedepend... :
checking for X... libraries , headers 
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes

```
