QCad社区版怎么编译?

OOo,TeX,KO,ABI,GIMP,Picasa,ProE,QCAD,Inkscape,Kicad,Eagle
回复
wiwengweng
帖子: 7
注册时间: 2009-10-30 8:48

QCad社区版怎么编译?

#1

帖子 wiwengweng » 2009-10-30 8:54

网上下了个qcad的community版本,但是文件格式是.src.tar.gz,请问大家,这个是怎么安装的呢??直接tar的时候我发现有些提示,也不知道怎么解决~~直接tar -zxvf的时候,下面是些提示,是不是下载的版本有问题呢??
qcad-2.0.5.0-1-community.src/qcadlib/src/information/rs_infoarea.h
tar: qcad-2.0.5.0-1-community.src/qcadlib/src/information/rs_infoarea.h: Cannot change ownership to uid 1000, gid 100: Operation not permitted
qcad-2.0.5.0-1-community.src/qcadlib/src/qcadlib.vcproj
tar: qcad-2.0.5.0-1-community.src/qcadlib/src/information: Cannot change ownership to uid 1000, gid 100: Operation not permitted
tar: qcad-2.0.5.0-1-community.src/qcadlib/src/qcadlib.vcproj: Cannot change ownership to uid 1000, gid 100: Operation not permitted
qcad-2.0.5.0-1-community.src/qcadlib/src/debug/
qcad-2.0.5.0-1-community.src/qcadlib/src/debug/rs_debug.cpp
tar: qcad-2.0.5.0-1-community.src/qcadlib/src/debug/rs_debug.cpp: Cannot change ownership to uid 1000, gid 100: Operation not permitted
qcad-2.0.5.0-1-community.src/qcadlib/src/debug/rs_debug.h
tar: qcad-2.0.5.0-1-community.src/qcadlib/src/debug/rs_debug.h: Cannot change ownership to uid 1000, gid 100: Operation not permitted
qcad-2.0.5.0-1-community.src/qcadlib/src/filters/
tar: qcad-2.0.5.0-1-community.src/qcadlib/src/debug: Cannot change ownership to uid 1000, gid 100: Operation not permitted
qcad-2.0.5.0-1-community.src/qcadlib/src/filters/rs_filterdxf1.cpp
tar: qcad-2.0.5.0-1-community.src/qcadlib/src/filters/rs_filterdxf1.cpp: Cannot change ownership to uid 1000, gid 100: Operation not permitted
qcad-2.0.5.0-1-community.src/qcadlib/src/filters/rs_filtercxf.cpp
tar: qcad-2.0.5.0-1-community.src/qcadlib/src/filters/rs_filtercxf.cpp: Cannot change ownership to uid 1000, gid 100: Operation not permitted
qcad-2.0.5.0-1-community.src/qcadlib/src/filters/rs_filtercxf.h
tar: qcad-2.0.5.0-1-community.src/qcadlib/src/filters/rs_filtercxf.h: Cannot change ownership to uid 1000, gid 100: Operation not permitted
qcad-2.0.5.0-1-community.src/qcadlib/src/filters/rs_filterdxf.h
tar: qcad-2.0.5.0-1-community.src/qcadlib/src/filters/rs_filterdxf.h: Cannot change ownership to uid 1000, gid 100: Operation not permitted
qcad-2.0.5.0-1-community.src/qcadlib/src/filters/rs_filterdxf1.h
tar: qcad-2.0.5.0-1-community.src/qcadlib/src/filters/rs_filterdxf1.h: Cannot change ownership to uid 1000, gid 100: Operation not permitted
qcad-2.0.5.0-1-community.src/qcadlib/src/filters/rs_filterdxf.cpp
tar: qcad-2.0.5.0-1-community.src/qcadlib/src/filters/rs_filterdxf.cpp: Cannot change ownership to uid 1000, gid 100: Operation not permitted
qcad-2.0.5.0-1-community.src/qcadlib/src/filters/rs_filterinterface.h
tar: qcad-2.0.5.0-1-community.src/qcadlib/src/filters/rs_filterinterface.h: Cannot change ownership to uid 1000, gid 100: Operation not permitted
qcad-2.0.5.0-1-community.src/qcadlib/src/engine/
tar: qcad-2.0.5.0-1-community.src/qcadlib/src/filters: Cannot change ownership to uid 1000, gid 100: Operation not permitted
qcad-2.0.5.0-1-community.src/qcadlib/src/engine/rs_layerlistlistener.h
tar: qcad-2.0.5.0-1-community.src/qcadlib/src/engine/rs_layerlistlistener.h: Cannot change ownership to uid 1000, gid 100: Operation not permitted
qcad-2.0.5.0-1-community.src/qcadlib/src/engine/rs.h
tar: qcad-2.0.5.0-1-community.src/qcadlib/src/engine/rs.h: Cannot change ownership to uid 1000, gid 100: Operation not permitted
qcad-2.0.5.0-1-community.src/qcadlib/src/engine/rs_block.h
tar: qcad-2.0.5.0-1-community.src/qcadlib/src/engine/rs_block.h: Cannot change ownership to uid 1000, gid 100: Operation not permitted
qcad-2.0.5.0-1-community.src/qcadlib/src/engine/rs_point.cpp
tar: qcad-2.0.5.0-1-community.src/qcadlib/src/engine/rs_point.cpp: Cannot change ownership to uid 1000, gid 100: Operation not permitted
qcad-2.0.5.0-1-community.src/qcadlib/src/engine/rs_blocklist.cpp
tar: qcad-2.0.5.0-1-community.src/qcadlib/src/engine/rs_blocklist.cpp: Cannot change ownership to uid 1000, gid 100: Operation not permitted
wiwengweng
帖子: 7
注册时间: 2009-10-30 8:48

Re: QCad社区版怎么编译?

#2

帖子 wiwengweng » 2009-10-30 11:53

又有新问题了,上面的基本解决 了,但是再进入scripts运行sh ./build_qcad.sh的时候,又有新的提示错误:
root@vincent-desktop:/opt/qcad-2.0.5.0-1-community.src/scripts# sh ./build_qcad.sh
build_qcad.sh
Usage: ./build_qcad.sh [options]
options:
demo build demo version
debug add debug menu
cam build CAM support if available
scripting build scripting support if available
prof build professional version
noclean don't clean (speeds up building if the options don't change)
noconfig don't run configure (speeds up building if the options don't change)
noprepare don't run prepare (speeds up building if the options don't change)
notrans don't generate translations
distcc use distcc for distributed compilation. DISTCC_HOSTS must be set.

QTDIR is: /opt/qtsdk-2009.04/qt
QMAKESPEC is: /opt/qtsdk-2009.04/qt/mkspecs/linux-g++
[: 48: ==: unexpected operator
[: 48: ==: unexpected operator
[: 48: ==: unexpected operator
[: 48: ==: unexpected operator
Platform is Linux
[: 121: ==: unexpected operator
[: 121: ==: unexpected operator
[: 131: ==: unexpected operator
Target is qcad
[: 148: ==: unexpected operator
QMAKE_OPT:
-------- Building fparser --------
checking 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... makedepend
checking for X... no
checking for egrep... grep -E
checking for ANSI C header files... yes

configure: creating ./config.status
config.status: creating 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 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DLINUX=1 -DX_DISPLAY_MISSING=1 -DSTDC_HEADERS=1 -c src/fparser.cpp -o src/fparser.o
gcc: error trying to exec 'cc1plus': execvp: No such file or directory
make: *** [src/fparser.o] Error 1
Building libfparser.a failed

附上我的config.log:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.57. Invocation command line was

$ ./configure

## --------- ##
## Platform. ##
## --------- ##

hostname = vincent-desktop
uname -m = i686
uname -r = 2.6.24-16-rtai
uname -s = Linux
uname -v = #1 Tue Sep 30 22:54:33 EEST 2008

/usr/bin/uname -p = unknown
/bin/uname -X = unknown

/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games
PATH: /opt/qtsdk-2009.04/qt/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1267: checking build system type
configure:1285: result: i686-pc-linux-gnu
configure:1293: checking host system type
configure:1307: result: i686-pc-linux-gnu
configure:1379: checking for gcc
configure:1395: found /usr/bin/gcc
configure:1405: result: gcc
configure:1649: checking for C compiler version
configure:1652: gcc --version </dev/null >&5
gcc (GCC) 4.2.4 (Ubuntu 4.2.4-1ubuntu4)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:1655: $? = 0
configure:1657: gcc -v </dev/null >&5
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.2 --program-suffix=-4.2 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --enable-targets=all --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.2.4 (Ubuntu 4.2.4-1ubuntu4)
configure:1660: $? = 0
configure:1662: gcc -V </dev/null >&5
gcc: '-V' option must have argument
configure:1665: $? = 1
configure:1689: checking for C compiler default output
configure:1692: gcc conftest.c >&5
configure:1695: $? = 0
configure:1741: result: a.out
configure:1746: checking whether the C compiler works
configure:1752: ./a.out
configure:1755: $? = 0
configure:1772: result: yes
configure:1779: checking whether we are cross compiling
configure:1781: result: no
configure:1784: checking for suffix of executables
configure:1786: gcc -o conftest conftest.c >&5
configure:1789: $? = 0
configure:1814: result:
configure:1820: checking for suffix of object files
configure:1842: gcc -c conftest.c >&5
configure:1845: $? = 0
configure:1867: result: o
configure:1871: checking whether we are using the GNU C compiler
configure:1896: gcc -c conftest.c >&5
configure:1899: $? = 0
configure:1902: test -s conftest.o
configure:1905: $? = 0
configure:1918: result: yes
configure:1924: checking whether gcc accepts -g
configure:1946: gcc -c -g conftest.c >&5
configure:1949: $? = 0
configure:1952: test -s conftest.o
configure:1955: $? = 0
configure:1966: result: yes
configure:1983: checking for gcc option to accept ANSI C
configure:2044: gcc -c -g -O2 conftest.c >&5
configure:2047: $? = 0
configure:2050: test -s conftest.o
configure:2053: $? = 0
configure:2071: result: none needed
configure:2089: gcc -c -g -O2 conftest.c >&5
conftest.c:2: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'me'
configure:2092: $? = 1
configure: failed program was:
| #ifndef __cplusplus
| choke me
| #endif
configure:2206: checking how to run the C preprocessor
configure:2242: gcc -E conftest.c
configure:2248: $? = 0
configure:2280: gcc -E conftest.c
configure:2280:28: error: ac_nonexistent.h: No such file or directory
configure:2286: $? = 1
configure: failed program was:
| #line 2271 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define LINUX 1
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:2324: result: gcc -E
configure:2349: gcc -E conftest.c
configure:2355: $? = 0
configure:2387: gcc -E conftest.c
configure:2387:28: error: ac_nonexistent.h: No such file or directory
configure:2393: $? = 1
configure: failed program was:
| #line 2378 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define LINUX 1
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:2447: checking for a BSD-compatible install
configure:2501: result: /usr/bin/install -c
configure:2514: checking for find
configure:2530: found /usr/bin/find
configure:2541: result: find
configure:2550: checking for makedepend
configure:2566: found /usr/bin/makedepend
configure:2577: result: makedepend
configure:2591: checking for X
configure:2697: gcc -E conftest.c
configure:2697:27: error: X11/Intrinsic.h: No such file or directory
configure:2703: $? = 1
configure: failed program was:
| #line 2688 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define LINUX 1
| /* end confdefs.h. */
| #include <X11/Intrinsic.h>
configure:2753: gcc -o conftest -g -O2 conftest.c -lXt >&5
configure:2745:27: error: X11/Intrinsic.h: No such file or directory
configure:2756: $? = 1
configure: failed program was:
| #line 2736 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define LINUX 1
| /* end confdefs.h. */
| #include <X11/Intrinsic.h>
| int
| main ()
| {
| XtMalloc (0)
| ;
| return 0;
| }
configure:2801: result: no
configure:3795: checking for egrep
configure:3805: result: grep -E
configure:3810: checking for ANSI C header files
configure:3836: gcc -c -g -O2 conftest.c >&5
configure:3839: $? = 0
configure:3842: test -s conftest.o
configure:3845: $? = 0
configure:3937: gcc -o conftest -g -O2 -L/usr/local/lib conftest.c >&5
configure: In function 'main':
configure:3932: warning: incompatible implicit declaration of built-in function 'exit'
configure:3940: $? = 0
configure:3942: ./conftest
configure:3945: $? = 0
configure:3960: result: yes
configure:4102: creating ./config.status

## ---------------------- ##
## Running config.status. ##
## ---------------------- ##

This file was extended by config.status, which was
generated by GNU Autoconf 2.57. Invocation command line was

CONFIG_FILES =
CONFIG_HEADERS =
CONFIG_LINKS =
CONFIG_COMMANDS =
$ ./config.status

on vincent-desktop

config.status:621: creating Makefile

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=i686-pc-linux-gnu
ac_cv_build_alias=i686-pc-linux-gnu
ac_cv_c_compiler_gnu=yes
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_exeext=
ac_cv_have_x=have_x=no
ac_cv_header_stdc=yes
ac_cv_host=i686-pc-linux-gnu
ac_cv_host_alias=i686-pc-linux-gnu
ac_cv_objext=o
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_FIND=find
ac_cv_prog_MAKEDEPEND=makedepend
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_cc_g=yes
ac_cv_prog_cc_stdc=
ac_cv_prog_egrep='grep -E'

## ----------------- ##
## Output variables. ##
## ----------------- ##

CC='gcc'
CFLAGS='-g -O2 '
CPP='gcc -E'
CPPFLAGS=''
DEFS='-DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DLINUX=1 -DX_DISPLAY_MISSING=1 -DSTDC_HEADERS=1 '
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP='grep -E'
EXEEXT=''
FIND='find'
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
LDFLAGS=' -L/usr/local/lib'
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MAKEDEPEND='makedepend'
OBJEXT='o'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
SHELL='/bin/bash'
X_CFLAGS=''
X_EXTRA_LIBS=''
X_LIBS=''
X_PRE_LIBS=''
ac_ct_CC='gcc'
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias=''
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
datadir='${prefix}/share'
exec_prefix='${prefix}'
host='i686-pc-linux-gnu'
host_alias=''
host_cpu='i686'
host_os='linux-gnu'
host_vendor='pc'
includedir='${prefix}/include'
infodir='${prefix}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
oldincludedir='/usr/include'
prefix='/usr/local'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define LINUX 1
#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define STDC_HEADERS 1
#define X_DISPLAY_MISSING 1

configure: exit 0
:em11 望大虾出手~!!
回复