User forums > General (but related to Code::Blocks)

rev 5084 does not build on linux

(1/3) > >>

killerbot:
does not build on linux : headerfixup : makefile : recursive variable PWD referenes itself (eventually). Stop.

Jenna:

--- Quote from: killerbot on June 02, 2008, 03:25:14 pm ---does not build on linux : headerfixup : makefile : recursive variable PWD referenes itself (eventually). Stop.

--- End quote ---

In the last line of headerfixups "Makefile.am", the one containing
--- Code: ---PWD=`pwd` cd $(srcdir) && zip $(PWD)/headerfixup.zip manifest.xml > /dev/null
--- End code ---
the four leading blanks have to be replaced by a "tab" and it should work.

You have to run "./bootstrap" again to recreate "Makefile.in" after that change.

Jenna:
But I found two other issues the first is the look of the dialog (see attached image).

And if I run the plugin without a project loaded it crashes (crashreport is also attached). It would of course be better to show just an error-dialog.

EDIT:
Sorry for hijacking this post  :roll: .

[attachment deleted by admin]

Jenna:
With this patch the dialog is much more readable:


--- Code: ------ codeblocks-1.0svn.orig/src/plugins/contrib/headerfixup/wxsmith/execution.wxs        2008-06-02 19:40:10.000000000 +0200
+++ codeblocks-1.0svn.work/src/plugins/contrib/headerfixup/wxsmith/execution.wxs        2008-06-02 20:56:32.000000000 +0200
@@ -16,7 +16,9 @@
                                                                <item>Scan source files in project</item>
                                                                <item>Scan source files in workspace</item>
                                                        </content>
-                                                       <size>200,65</size>
+                                                       <default>0</default>
+                                                       <dimension>2</dimension>
+                                                       <size>337,70</size>
                                                        <tooltip>This will setup on what files to operate: All from active project or whole workspace.</tooltip>
                                                </object>
                                                <flag>wxLEFT|wxRIGHT|wxEXPAND|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL</flag>
@@ -30,7 +32,8 @@
                                                                <item>Use &lt;include.h&gt; (brackets)</item>
                                                        </content>
                                                        <default>1</default>
-                                                       <size>200,65</size>
+                                                       <dimension>2</dimension>
+                                                       <size>337,70</size>
                                                        <tooltip>This will setup the way missing header files are included: By quotation mark or brackets.</tooltip>
                                                </object>
                                                <flag>wxALL|wxEXPAND|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL</flag>
@@ -73,7 +76,8 @@
                                                                                <item>Process both files (2-step-fix up)</item>
                                                                        </content>
                                                                        <default>2</default>
-                                                                       <size>200,85</size>
+                                                                       <dimension>3</dimension>
+                                                                       <size>317,95</size>
                                                                        <tooltip>This will setup on what file types the plugin shall operate: Header files, implementation files or both (after each other).</tooltip>
                                                                </object>
                                                                <flag>wxBOTTOM|wxLEFT|wxRIGHT|wxEXPAND|wxALIGN_CENTER_HORIZONTAL|wxALIGN_CENTER_VERTICAL</flag>

--- End code ---

Jenna:
And another patch needed to build/copy files in the right place when building with C::B on linux:


--- Code: ------ codeblocks-1.0svn.orig/src/plugins/contrib/headerfixup/headerfixup-unix.cbp 2008-06-02 19:40:19.000000000 +0200
+++ codeblocks-1.0svn.work/src/plugins/contrib/headerfixup/headerfixup-unix.cbp 2008-06-02 23:11:26.000000000 +0200
@@ -7,7 +7,7 @@
                <Option compiler="gcc" />
                <Build>
                        <Target title="default">
-                               <Option output="../../../devel/share/CodeBlocks/plugins/headerfixup" prefix_auto="1" extension_auto="1" />
+                               <Option output="../../../devel/share/codeblocks/plugins/headerfixup" prefix_auto="1" extension_auto="1" />
                                <Option object_output="../../../.objs/plugins/contrib/headerfixup" />
                                <Option type="3" />
                                <Option compiler="gcc" />
@@ -37,7 +37,7 @@
                                        <Add directory="$(#CB)/sdk/tinyxml" />
                                </Linker>
                                <ExtraCommands>
-                                       <Add after="zip -j9 ../../../devel/share/CodeBlocks/headerfixup.zip manifest.xml" />
+                                       <Add after="zip -j9 ../../../devel/share/codeblocks/headerfixup.zip manifest.xml" />
                                        <Mode after="always" />
                                </ExtraCommands>
                        </Target>

--- End code ---

Navigation

[0] Message Index

[#] Next page

Go to full version