Newbie compile problems

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Newbie compile problems

Frank Blinn
Hi,

I tried to compile xfc on my machine with zenwalk linux and I had some problems:

automake 1.10.2 does not know the AM_COND_IF makro, so I had to modify the configure.ac file. Maybe this can be removed to increase robustness?

audiofile 0.2.6 has a problem in the audiofile.m4 file. I had to patch this.

aalib 1.4rc5 has the same problem in aalib.m4.

/xfce/xfconf/tree/xfconf/xfconf-errors.h: the last enumeration value 'XFCONF_ERROR_INVALID_CHANNEL,' has a comma at the end of the line (last enum value). That does not compile.

The files for pkgconfig has been copied to /usr/local/lib. All other pkgconfig files on my system are in /usr/lib/pkgconfig. Is there a standard for the path usage or does this depend on the distribution?

Regards

Frank Blinn



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Newbie compile problems

Bo Lorentsen
Frank Blinn wrote:
> Hi,
>
> I tried to compile xfc on my machine with zenwalk linux and I had some
> problems:
>  
Did you use the git version, or the last stable ?
> automake 1.10.2 does not know the AM_COND_IF makro, so I had to modify the
> configure.ac file. Maybe this can be removed to increase robustness?
>  
I am not quite sure, I have not been looking into these parts lately.
> audiofile 0.2.6 has a problem in the audiofile.m4 file. I had to patch this.
>
> aalib 1.4rc5 has the same problem in aalib.m4.
>
> /xfce/xfconf/tree/xfconf/xfconf-errors.h: the last enumeration value
> 'XFCONF_ERROR_INVALID_CHANNEL,' has a comma at the end of the line (last
> enum value). That does not compile.
>  
Have you made a diff file, for me to look at ?
> The files for pkgconfig has been copied to /usr/local/lib. All other
> pkgconfig files on my system are in /usr/lib/pkgconfig. Is there a standard
> for the path usage or does this depend on the distribution?
>  
Hmm, automake will normally put things into /usr/local but the
"--prefix" option on the configure script can change this.

/BL
_______________________________________________
Xfc-dev mailing list
[hidden email]
http://foo-projects.org/mailman/listinfo/xfc-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Newbie compile problems

Frank Blinn

Bo Lorentsen wrote
Frank Blinn wrote:
> Hi,
>
> I tried to compile xfc on my machine with zenwalk linux and I had some
> problems:
>  
Did you use the git version, or the last stable ?

I am using the git version of xfc, but I am using xfce that has been delivered with my distribution (contains XFCE 4.6.1)

> automake 1.10.2 does not know the AM_COND_IF makro, so I had to modify the
> configure.ac file. Maybe this can be removed to increase robustness?
>  
I am not quite sure, I have not been looking into these parts lately.
See also automake problem
It seems to be a known problem. I modified the file, but I'm not sure, if it is correct:

diff --git a/configure.ac b/configure.ac
index 2b3b470..5cd0351 100644
--- a/configure.ac
+++ b/configure.ac
@@ -496,9 +496,15 @@ AC_CONFIG_FILES([libXFCde/Makefile \
     libXFCde/xfc/ui/Makefile \
     libXFCde/xfc/ui/inline/Makefile])

-AM_COND_IF([USE_PANEL], [AC_CONFIG_FILES([
-    libXFCde/xfc/panel/Makefile \
-    libXFCde/xfc/panel/inline/Makefile])] )
+if test "x$DE_PANEL_FOUND" == "xyes"; then
+    AC_CONFIG_FILES([
+        libXFCde/xfc/panel/Makefile \
+        libXFCde/xfc/panel/inline/Makefile])
+fi
+
+#AM_COND_IF([USE_PANEL], [AC_CONFIG_FILES([
+#    libXFCde/xfc/panel/Makefile \
+#    libXFCde/xfc/panel/inline/Makefile])] )

 AC_OUTPUT()






> audiofile 0.2.6 has a problem in the audiofile.m4 file. I had to patch this.
>
> aalib 1.4rc5 has the same problem in aalib.m4.
>
> /xfce/xfconf/tree/xfconf/xfconf-errors.h: the last enumeration value
> 'XFCONF_ERROR_INVALID_CHANNEL,' has a comma at the end of the line (last
> enum value). That does not compile.
>  
Have you made a diff file, for me to look at ?

Yes, here it is:

diff --git a/xfconf/xfconf-errors.h b/xfconf/xfconf-errors.h
index 470ebb4..082bdbd 100644
--- a/xfconf/xfconf-errors.h
+++ b/xfconf/xfconf-errors.h
@@ -42,7 +42,7 @@ typedef enum
     XFCONF_ERROR_INTERNAL_ERROR,
     XFCONF_ERROR_NO_BACKEND,
     XFCONF_ERROR_INVALID_PROPERTY,
-    XFCONF_ERROR_INVALID_CHANNEL,
+    XFCONF_ERROR_INVALID_CHANNEL
 } XfconfError;

 GType xfconf_error_get_type(void) G_GNUC_CONST;



> The files for pkgconfig has been copied to /usr/local/lib. All other
> pkgconfig files on my system are in /usr/lib/pkgconfig. Is there a standard
> for the path usage or does this depend on the distribution?
>  
Hmm, automake will normally put things into /usr/local but the
"--prefix" option on the configure script can change this.

/BL
_______________________________________________
Xfc-dev mailing list
Xfc-dev@xfce.org
http://foo-projects.org/mailman/listinfo/xfc-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Newbie compile problems

Bo Lorentsen
Frank Blinn wrote:
>> I am not quite sure, I have not been looking into these parts lately.
>> See also  http://old.nabble.com/AM_COND_IF-td21253597.html automake
>> problem
>> It seems to be a known problem. I modified the file, but I'm not sure, if
>> it is correct:
>>    
Ok, I have added it to my git, but that version is not working at the
moment, so it may take a week or two before I commit. I try not to
commit things that is not compilable or where the examples are not
working, at lease.

I am working in the BtkBuilder at the moment to get rid of lib glade,
and then I hope (as you can see) to include some real Xfce bindings, to
make it possible to make panel plugins. But this will only work in the
next Xfce 4.8.
>> Yes, here it is:
>>    
Thanks ...

>> diff --git a/xfconf/xfconf-errors.h b/xfconf/xfconf-errors.h
>> index 470ebb4..082bdbd 100644
>> --- a/xfconf/xfconf-errors.h
>> +++ b/xfconf/xfconf-errors.h
>> @@ -42,7 +42,7 @@ typedef enum
>>      XFCONF_ERROR_INTERNAL_ERROR,
>>      XFCONF_ERROR_NO_BACKEND,
>>      XFCONF_ERROR_INVALID_PROPERTY,
>> -    XFCONF_ERROR_INVALID_CHANNEL,
>> +    XFCONF_ERROR_INVALID_CHANNEL
>>  } XfconfError;
>>
>>  GType xfconf_error_get_type(void) G_GNUC_CONST;
>>    
I too would like this error to go away, but as you can see :

http://foo-projects.org/pipermail/xfce4-dev/2009-August/027231.html

not all agree to the means :-)

I normally let my compiler use -Wall -pedantic, but I think I will try
to make the compiler relax when including Xfce C files :-) I will attend
to this when my GtkBuilder are working ...

What kind of app are you planing on creating ?

/BL
_______________________________________________
Xfc-dev mailing list
[hidden email]
http://foo-projects.org/mailman/listinfo/xfc-dev
Loading...