Ubuntu LTS 10.04 Compile Issue

If you are having problems with dxflib, post here. Please report bugs here.

Moderator: andrew

Post Reply
ozykiss
Newbie Member
Posts: 3
Joined: Wed Aug 17, 2011 6:03 am

Ubuntu LTS 10.04 Compile Issue

Post by ozykiss » Wed Aug 17, 2011 6:50 am

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.

Code: Select all

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

Code: Select all

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

User avatar
hungerburg
Premier Member
Posts: 160
Joined: Fri May 28, 2010 7:35 pm

Post by hungerburg » Wed Aug 17, 2011 10:38 am

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

ozykiss
Newbie Member
Posts: 3
Joined: Wed Aug 17, 2011 6:03 am

Post by ozykiss » Thu Aug 18, 2011 2:13 am

hungerburg wrote: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

Code: Select all

#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

ozykiss
Newbie Member
Posts: 3
Joined: Wed Aug 17, 2011 6:03 am

Post by ozykiss » Thu Aug 18, 2011 2:17 am

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

Code: Select all

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

Post Reply

Return to “dxflib Troubleshooting and Problems”