Hi,
I'm new to this list. And quite new to Linux as well - please bear with me...

I've succeeded in compiling the 0.75 release using gcc/g++ 4.2.4 on
Kubuntu 8.04.

* I've been able to use Leocad to create models, but nothing happens
when I try to bring up the  Files/Pieces Library Manager..., does this
functionality exist in the Linux version?

* Nothing happens when clicking Files/Pieces Library Manager...

* Clicking Open Project gives (but it works anyway):
(leocad:14202): GLib-GObject-WARNING **: invalid cast from `GtkHPaned'
to `GtkBox'
(leocad:14202): Gtk-CRITICAL **: gtk_box_pack_start: assertion
`GTK_IS_BOX (box)' failed
(leocad:14202): GLib-GObject-CRITICAL **:
g_signal_connect_closure_by_id: assertion `signal_id > 0' failed

* Does the compilation of 0.75 work for others?
  Is gcc 4.2.4 complaing more than earlier versions? Which version is
used for Leocad development?

Below is the long version of my efforts. And an svn diff is attached
(as patch.txt)

/$


$ make config
Automatic configuration
checking size of char... failed to get size of char
checking size of short... failed to get size of short
checking size of long... failed to get size of long
checking size of int... failed to get size of int
checking size of void *... failed to get size of void *
checking size of long long... failed to get size of long long
Determining endianess... little endian
Checking if GLIB and GTK+ are installed... ok
Checking for jpeg support... ok
Checking for zlib support... ok
Checking for png support... ok

After removing all 2 > /dev/null in config.mk, I get:
$ 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'
conftest.c:3:29: warning: missing terminating " character
conftest.c:3: error: missing terminating " character
conftest.c:4:1: warning: missing terminating " character
conftest.c:4: error: missing terminating " character
conftest.c:4: error: expected expression at end of input
conftest.c:4: error: expected declaration or statement at end of input
failed to get size of char
...
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... ok
Checking for zlib support... ok
Checking for png support... ok

Replacing all '"main' with '"int main' and all 'exit(' and 'exit ('
with 'return (', and %d\\n with %d\\\n, 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... ok
Checking for zlib support... ok
Checking for png support... ok
Index: config.mk
===================================================================
--- config.mk   (revision 724)
+++ config.mk   (working copy)
@@ -161,10 +161,10 @@
 ### Determine variable sizes
        @echo -n "checking size of char... "; \
        echo "#include <stdio.h>" > conftest.c; \
-       echo "main() { FILE *f=fopen(\"conftestval\", \"w\");" >> conftest.c; \
-       echo "if (!f) exit(1); fprintf(f, \"%d\\n\", sizeof(char)); exit(0); }" 
>> conftest.c; \
-       if { (eval $(CC) conftest.c -o conftest) 2> /dev/null; } && \
-         (test -s conftest && (./conftest; exit) 2> /dev/null); then \
+       echo "int main() { FILE *f=fopen(\"conftestval\", \"w\");" >> 
conftest.c; \
+       echo "if (!f) return (1); fprintf(f, \"%d\\\n\", sizeof(char)); return 
(0); }" >> conftest.c; \
+       if { (eval $(CC) conftest.c -o conftest) ; } && \
+         (test -s conftest && (./conftest; exit) ); then \
          ac_cv_sizeof_char=`cat conftestval`; \
          echo "$$ac_cv_sizeof_char"; \
        else \
@@ -176,10 +176,10 @@
        \
        echo -n "checking size of short... "; \
        echo "#include <stdio.h>" > conftest.c; \
-       echo "main() { FILE *f=fopen(\"conftestval\", \"w\");" >> conftest.c; \
-       echo "if (!f) exit(1); fprintf(f, \"%d\\n\", sizeof(short)); exit(0); 
}" >> conftest.c; \
-       if { (eval $(CC) conftest.c -o conftest) 2> /dev/null; } && \
-         (test -s conftest && (./conftest; exit) 2> /dev/null); then \
+       echo "int main() { FILE *f=fopen(\"conftestval\", \"w\");" >> 
conftest.c; \
+       echo "if (!f) return (1); fprintf(f, \"%d\\\n\", sizeof(short)); return 
(0); }" >> conftest.c; \
+       if { (eval $(CC) conftest.c -o conftest) ; } && \
+         (test -s conftest && (./conftest; exit) ); then \
          ac_cv_sizeof_short=`cat conftestval`; \
          echo "$$ac_cv_sizeof_short"; \
        else \
@@ -191,10 +191,10 @@
        \
        echo -n "checking size of long... "; \
        echo "#include <stdio.h>" > conftest.c; \
-       echo "main() { FILE *f=fopen(\"conftestval\", \"w\");" >> conftest.c; \
-       echo "if (!f) exit(1); fprintf(f, \"%d\\n\", sizeof(long)); exit(0); }" 
>> conftest.c; \
-       if { (eval $(CC) conftest.c -o conftest) 2> /dev/null; } && \
-         (test -s conftest && (./conftest; exit) 2> /dev/null); then \
+       echo "int main() { FILE *f=fopen(\"conftestval\", \"w\");" >> 
conftest.c; \
+       echo "if (!f) return (1); fprintf(f, \"%d\\\n\", sizeof(long)); return 
(0); }" >> conftest.c; \
+       if { (eval $(CC) conftest.c -o conftest) ; } && \
+         (test -s conftest && (./conftest; exit) ); then \
          ac_cv_sizeof_long=`cat conftestval`; \
          echo "$$ac_cv_sizeof_long"; \
        else \
@@ -206,10 +206,10 @@
        \
        echo -n "checking size of int... "; \
        echo "#include <stdio.h>" > conftest.c; \
-       echo "main() { FILE *f=fopen(\"conftestval\", \"w\");" >> conftest.c; \
-       echo "if (!f) exit(1); fprintf(f, \"%d\\n\", sizeof(int)); exit(0); }" 
>> conftest.c; \
-       if { (eval $(CC) conftest.c -o conftest) 2> /dev/null; } && \
-         (test -s conftest && (./conftest; exit) 2> /dev/null); then \
+       echo "int main() { FILE *f=fopen(\"conftestval\", \"w\");" >> 
conftest.c; \
+       echo "if (!f) return (1); fprintf(f, \"%d\\\n\", sizeof(int)); return 
(0); }" >> conftest.c; \
+       if { (eval $(CC) conftest.c -o conftest) ; } && \
+         (test -s conftest && (./conftest; exit) ); then \
          ac_cv_sizeof_int=`cat conftestval`; \
          echo "$$ac_cv_sizeof_int"; \
        else \
@@ -221,10 +221,10 @@
        \
        echo -n "checking size of void *... "; \
        echo "#include <stdio.h>" > conftest.c; \
-       echo "main() { FILE *f=fopen(\"conftestval\", \"w\");" >> conftest.c; \
-       echo "if (!f) exit(1); fprintf(f, \"%d\\n\", sizeof(void *)); exit(0); 
}" >> conftest.c; \
-       if { (eval $(CC) conftest.c -o conftest) 2> /dev/null; } && \
-         (test -s conftest && (./conftest; exit) 2> /dev/null); then \
+       echo "int main() { FILE *f=fopen(\"conftestval\", \"w\");" >> 
conftest.c; \
+       echo "if (!f) return (1); fprintf(f, \"%d\\\n\", sizeof(void *)); 
return (0); }" >> conftest.c; \
+       if { (eval $(CC) conftest.c -o conftest) ; } && \
+         (test -s conftest && (./conftest; exit) ); then \
          ac_cv_sizeof_void_p=`cat conftestval`; \
          echo "$$ac_cv_sizeof_void_p"; \
        else \
@@ -236,10 +236,10 @@
        \
        echo -n "checking size of long long... "; \
        echo "#include <stdio.h>" > conftest.c; \
-       echo "main() { FILE *f=fopen(\"conftestval\", \"w\");" >> conftest.c; \
-       echo "if (!f) exit(1); fprintf(f, \"%d\\n\", sizeof(long long)); 
exit(0); }" >> conftest.c; \
-       if { (eval $(CC) conftest.c -o conftest) 2> /dev/null; } && \
-         (test -s conftest && (./conftest; exit) 2> /dev/null); then \
+       echo "int main() { FILE *f=fopen(\"conftestval\", \"w\");" >> 
conftest.c; \
+       echo "if (!f) return (1); fprintf(f, \"%d\\\n\", sizeof(long long)); 
return (0); }" >> conftest.c; \
+       if { (eval $(CC) conftest.c -o conftest) ; } && \
+         (test -s conftest && (./conftest; exit) ); then \
          ac_cv_sizeof_long_long=`cat conftestval`; \
          echo "$$ac_cv_sizeof_long_long"; \
        else \
@@ -276,10 +276,10 @@
 
 ### 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
-       @if { (eval $(CC) endiantest.c -o endiantest) 2> /dev/null; } && \
-         (test -s endiantest && (./endiantest; exit) 2> /dev/null); then \
+       @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) ; } && \
+         (test -s endiantest && (./endiantest; exit) ); then \
          echo "little endian"; \
          echo "#define LC_LITTLE_ENDIAN" >> $(OSDIR)/config.h; \
          echo "#define LCUINT16(val) val" >> $(OSDIR)/config.h; \
@@ -328,7 +328,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)) 
2> /dev/null; } && \
+       @if { (eval $(CC) jpegtest.c -ljpeg -o jpegtest $(CPPFLAGS) $(LDFLAGS)) 
; } && \
          (test -s jpegtest); then  \
          echo "ok"; \
          echo "HAVE_JPEGLIB = yes" >> $(OSDIR)/config.mk; \
@@ -344,7 +344,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)) 2> 
/dev/null; } && \
+       @if { (eval $(CC) ztest.c -lz -o ztest $(CPPFLAGS) $(LDFLAGS)) ; } && \
          (test -s ztest); then  \
          echo "ok"; \
          echo "HAVE_ZLIB = yes" >> $(OSDIR)/config.mk; \
@@ -360,7 +360,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)) 2> /dev/null; } && \
+       @if { (eval $(CC) pngtest.c -lm -lz -lpng -o pngtest $(CPPFLAGS) 
$(LDFLAGS)) ; } && \
          (test -s pngtest); then  \
          echo "ok"; \
          echo "HAVE_PNGLIB = yes" >> $(OSDIR)/config.mk; \
_______________________________________________
Leocad mailing list
[email protected]
https://list.gerf.org/listinfo/leocad

Reply via email to