Hello again,
I've tried to compile the trunk (I thought of looking into the problem
I had with the piece manager in 0.75).
jpeg/zlib/png are installed, I fixed that first.
I gave up in the end (see below). Is the trunk only partly committed?
Would it take a lot to make the trunk compilable?
/$
$ make config
Automatic configuration
checking size of char... 1
checking size of short... 2
checking size of long... 4
checking size of int... 4
checking size of void *... 4
checking size of long long... 8
Determining endianess... little endian
Checking if GLIB and GTK+ are installed... ok
Checking for jpeg support... no (libjpeg optional)
Checking for zlib support... no (zlib optional)
Checking for png support... no (libpng optional)
By clearing ERROR_SETTING, I get:
$ make config
Automatic configuration
checking size of char... 1
checking size of short... 2
checking size of long... 4
checking size of int... 4
checking size of void *... 4
checking size of long long... 8
Determining endianess... little endian
Checking if GLIB and GTK+ are installed... ok
Checking for jpeg support... no (libjpeg optional)
Checking for zlib support... no (zlib optional)
Checking for png support... no (libpng optional)
[EMAIL PROTECTED]:/usr/local/src/exp-trunk$
[EMAIL PROTECTED]:/usr/local/src/exp-trunk$ make config
Automatic configuration
checking size of char... conftest.c: In function 'main':
conftest.c:3: warning: incompatible implicit declaration of built-in
function 'exit'
1
checking size of short... conftest.c: In function 'main':
conftest.c:3: warning: incompatible implicit declaration of built-in
function 'exit'
2
checking size of long... conftest.c: In function 'main':
conftest.c:3: warning: incompatible implicit declaration of built-in
function 'exit'
4
checking size of int... conftest.c: In function 'main':
conftest.c:3: warning: incompatible implicit declaration of built-in
function 'exit'
4
checking size of void *... conftest.c: In function 'main':
conftest.c:3: warning: incompatible implicit declaration of built-in
function 'exit'
4
checking size of long long... conftest.c: In function 'main':
conftest.c:3: warning: incompatible implicit declaration of built-in
function 'exit'
8
Determining endianess... endiantest.c: In function 'main':
endiantest.c:2: warning: incompatible implicit declaration of built-in
function 'exit'
little endian
Checking if GLIB and GTK+ are installed... ok
Checking for jpeg support... In file included from <command-line>:0:
./linux/config.h:7:1: error: unterminated #ifndef
no (libjpeg optional)
Checking for zlib support... In file included from <command-line>:0:
./linux/config.h:7:1: error: unterminated #ifndef
no (zlib optional)
Checking for png support... In file included from <command-line>:0:
./linux/config.h:7:1: error: unterminated #ifndef
no (libpng optional)
By changing "main" to "int main" and exit to return in CONFTEST and
the endianess check, I get:
$ make config
Automatic configuration
checking size of char... 1
checking size of short... 2
checking size of long... 4
checking size of int... 4
checking size of void *... 4
checking size of long long... 8
Determining endianess... little endian
Checking if GLIB and GTK+ are installed... ok
Checking for jpeg support... In file included from <command-line>:0:
./linux/config.h:7:1: error: unterminated #ifndef
no (libjpeg optional)
Checking for zlib support... In file included from <command-line>:0:
./linux/config.h:7:1: error: unterminated #ifndef
no (zlib optional)
Checking for png support... In file included from <command-line>:0:
./linux/config.h:7:1: error: unterminated #ifndef
no (libpng optional)
The problem is that config.h isn't done yet. I worked around that by
changing Makefile to have another set of flags without the include
statement, and used those flags instead in the jpeg/zlib/png tests in
config.mk. This made make config pass.
After this I found out that I needed common/array.* and
common/message.* from the earlier release, so I added them and got:
$ make
g++ -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/freetype2 -I/usr/include/libpng12
-I/usr/include/pixman-1 -O2 -Wall -Ilinux -Icommon -DLC_LINUX -g
-include linux/config.h -c -o linux/dialogs.o linux/dialogs.cpp
In file included from common/project.h:4,
from linux/dialogs.cpp:25:
common/lc_message.h:9: error: conflicting declaration 'LC_MSG_COUNT'
common/message.h:12: error: 'LC_MSG_COUNT' has a previous declaration
as 'LC_MSG_TYPES LC_MSG_COUNT'
linux/dialogs.cpp: In function 'int propertiesdlg_execute(void*)':
linux/dialogs.cpp:2392: error: 'LC_MAXCOLORS' was not declared in this scope
linux/dialogs.cpp:2393: error: 'totalcount' was not declared in this scope
linux/dialogs.cpp:2394: error: 'struct LC_PROPERTIESDLG_OPTS' has no
member named 'lines'
linux/dialogs.cpp:2396: error: 'struct LC_PROPERTIESDLG_OPTS' has no
member named 'count'
linux/dialogs.cpp:2424: error: 'col' was not declared in this scope
linux/dialogs.cpp:2426: error: 'colornames' was not declared in this scope
linux/dialogs.cpp:2437: error: 'row' was not declared in this scope
linux/dialogs.cpp:2439: error: 'struct LC_PROPERTIESDLG_OPTS' has no
member named 'lines'
linux/dialogs.cpp:2444: error: 'struct LC_PROPERTIESDLG_OPTS' has no
member named 'count'
linux/dialogs.cpp:2449: error: 'row' was not declared in this scope
linux/dialogs.cpp:2449: error: 'struct LC_PROPERTIESDLG_OPTS' has no
member named 'names'
linux/dialogs.cpp:2454: error: 'struct LC_PROPERTIESDLG_OPTS' has no
member named 'count'
linux/dialogs.cpp:2455: error: 'col' was not declared in this scope
linux/dialogs.cpp:2455: error: 'struct LC_PROPERTIESDLG_OPTS' has no
member named 'count'
linux/dialogs.cpp:2462: error: 'row' was not declared in this scope
linux/dialogs.cpp:2468: error: 'col' was not declared in this scope
linux/dialogs.cpp: In function 'void modifydlg_create()':
linux/dialogs.cpp:3081: error: 'messenger' was not declared in this scope
make: *** [linux/dialogs.o] Error 1
At this point I gave up.
Index: config.mk
===================================================================
--- config.mk (revision 724)
+++ config.mk (working copy)
@@ -2,7 +2,8 @@
#
include version.mk
-ERROR_SETTING=2> /dev/null
+#ERROR_SETTING=2> /dev/null
+ERROR_SETTING=
default: all
@@ -132,8 +133,8 @@
### Automatic configuration
#USE this with printf and a primitive type - printf "WIDTHTEST" "char"
>conftest.c
-CONFTEST="\#include <stdio.h>\nmain() { FILE *f=fopen(\"conftestval\",
\"w\");\n\
- if (!f) exit(1); fprintf(f, \"%%d\\\n\", sizeof(%s)); exit(0); }\n"
+CONFTEST="\#include <stdio.h>\nint main() { FILE *f=fopen(\"conftestval\",
\"w\");\n\
+ if (!f) return 1; fprintf(f, \"%%d\\\n\", sizeof(%s)); return 0; }\n"
config:
@echo "Automatic configuration"
@@ -280,8 +281,8 @@
### Check if machine is little or big endian
@echo -n "Determining endianess... "
- @echo "main () { union { long l; char c[sizeof (long)]; } u;" >
endiantest.c
- @echo "u.l = 1; exit (u.c[sizeof (long) - 1] == 1); }" >> endiantest.c
+ @echo "int main () { union { long l; char c[sizeof (long)]; } u;" >
endiantest.c
+ @echo "u.l = 1; return (u.c[sizeof (long) - 1] == 1); }" >> endiantest.c
@if { (eval $(CC) endiantest.c -o endiantest) ${ERROR_SETTING}; } && \
(test -s endiantest && (./endiantest; exit) ${ERROR_SETTING}); then \
echo "little endian"; \
@@ -332,7 +333,7 @@
@echo -n "Checking for jpeg support... "
@echo "char jpeg_read_header();" > jpegtest.c
@echo "int main() { jpeg_read_header(); return 0; }" >> jpegtest.c
- @if { (eval $(CC) jpegtest.c -ljpeg -o jpegtest $(CPPFLAGS) $(LDFLAGS))
${ERROR_SETTING}; } && \
+ @if { (eval $(CC) jpegtest.c -ljpeg -o jpegtest $(CPPINITFLAGS)
$(LDFLAGS)) ${ERROR_SETTING}; } && \
(test -s jpegtest); then \
echo "ok"; \
echo "HAVE_JPEGLIB = yes" >> $(OSDIR)/config.mk; \
@@ -348,7 +349,7 @@
@echo -n "Checking for zlib support... "
@echo "char gzread();" > ztest.c
@echo "int main() { gzread(); return 0; }" >> ztest.c
- @if { (eval $(CC) ztest.c -lz -o ztest $(CPPFLAGS) $(LDFLAGS))
${ERROR_SETTING}; } && \
+ @if { (eval $(CC) ztest.c -lz -o ztest $(CPPINITFLAGS) $(LDFLAGS))
${ERROR_SETTING}; } && \
(test -s ztest); then \
echo "ok"; \
echo "HAVE_ZLIB = yes" >> $(OSDIR)/config.mk; \
@@ -364,7 +365,7 @@
@echo -n "Checking for png support... "
@echo "char png_read_info();" > pngtest.c
@echo "int main() { png_read_info(); return 0; }" >> pngtest.c
- @if { (eval $(CC) pngtest.c -lm -lz -lpng -o pngtest $(CPPFLAGS)
$(LDFLAGS)) ${ERROR_SETTING}; } && \
+ @if { (eval $(CC) pngtest.c -lm -lz -lpng -o pngtest $(CPPINITFLAGS)
$(LDFLAGS)) ${ERROR_SETTING}; } && \
(test -s pngtest); then \
echo "ok"; \
echo "HAVE_PNGLIB = yes" >> $(OSDIR)/config.mk; \
_______________________________________________
Leocad mailing list
[email protected]
https://list.gerf.org/listinfo/leocad