Author Topic: new wxSmith merge to trunk : svn problem  (Read 12898 times)

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5529
new wxSmith merge to trunk : svn problem
« on: January 20, 2007, 10:50:11 pm »
svn won't update, I always get the following error :
Quote
svn: Failed to add directory 'src/plugins/contrib/wxSmith/properties': object of the same name already exists

what's the best way to solve this ??

I was trying this on linux, haven't tried yet on windows.

Offline straka.milan

  • Multiple posting newcomer
  • *
  • Posts: 15
Re: new wxSmith merge to trunk : svn problem
« Reply #1 on: January 20, 2007, 10:56:55 pm »
Well, i simply deleted directory wxSmith and did svn update. It worked after that.
Q='Q=%s;printf "$Q" "\x27$Q\x27"';printf "$Q" "'$Q'"

Offline Der Meister

  • Regular
  • ***
  • Posts: 307
Re: new wxSmith merge to trunk : svn problem
« Reply #2 on: January 20, 2007, 10:59:46 pm »
Just delete that directory. Although svn tries to delete the directory it obviously failed to do so, probably because the directory was not empty (the files generated by the autotools like Makefile. svn does not know about them, thus it doesn't delete them and thus can't delete the directory).

Maybe it is even better to delete the whole wxSmith directory to get rid of old stuff like old Makefiles, etc.. At least I don't want to check out whether keeping this old stuff would generate some problems ;)
Real Programmers don't comment their code. If it was hard to write, it should be hard to understand.
Real Programmers don't write in BASIC. Actually, no programmers write in BASIC, after the age of 12.

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5529
Re: new wxSmith merge to trunk : svn problem
« Reply #3 on: January 20, 2007, 11:00:55 pm »
that fixed it for me too  :lol:

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5529
Re: new wxSmith merge to trunk : svn problem
« Reply #4 on: January 20, 2007, 11:02:38 pm »
but were you able to build ??

Quote
Making all in wxSmith
make[4]: Entering directory `/home/killerbot/Documents/CodeBlocksDev/trunk/src/plugins/contrib/wxSmith'
make[4]: *** No rule to make target `all'.  Stop.
make[4]: Leaving directory `/home/killerbot/Documents/CodeBlocksDev/trunk/src/plugins/contrib/wxSmith'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/killerbot/Documents/CodeBlocksDev/trunk/src/plugins/contrib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/killerbot/Documents/CodeBlocksDev/trunk/src/plugins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/killerbot/Documents/CodeBlocksDev/trunk/src'
make: *** [all-recursive] Error 1

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5529
Re: new wxSmith merge to trunk : svn problem
« Reply #5 on: January 20, 2007, 11:04:48 pm »
hmm , I should do .configure again .. ?

[EDIT] :
Quote
config.status: error: cannot find input file: src/plugins/contrib/wxSmith/Makefile.in
« Last Edit: January 20, 2007, 11:08:50 pm by killerbot »

Offline straka.milan

  • Multiple posting newcomer
  • *
  • Posts: 15
Re: new wxSmith merge to trunk : svn problem
« Reply #6 on: January 20, 2007, 11:08:20 pm »
Yes, you must ./configure --enable-contrib, deleting the directory deleted the generated Makefile.
Q='Q=%s;printf "$Q" "\x27$Q\x27"';printf "$Q" "'$Q'"

Offline straka.milan

  • Multiple posting newcomer
  • *
  • Posts: 15
Re: new wxSmith merge to trunk : svn problem
« Reply #7 on: January 20, 2007, 11:09:11 pm »
I even had to bootstrap it.

[EDIT]:  :?, bootstrap is not working... :?
Q='Q=%s;printf "$Q" "\x27$Q\x27"';printf "$Q" "'$Q'"

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5529
Re: new wxSmith merge to trunk : svn problem
« Reply #8 on: January 20, 2007, 11:10:56 pm »
Quote
killerbot@thorgal:~/Documents/CodeBlocksDev/trunk> ./bootstrap
configure.in:238: required file `src/plugins/contrib/wxSmith/defwidgets/Makefile.in' not found
configure.in:238: required file `src/plugins/contrib/wxSmith/resources/Makefile.in' not found
configure.in:238: required file `src/plugins/contrib/wxSmith/smithicons/Makefile.in' not found

we need to modify our configure.in at trunk level :-( , calling the Don, calling the Don

Offline straka.milan

  • Multiple posting newcomer
  • *
  • Posts: 15
Re: new wxSmith merge to trunk : svn problem
« Reply #9 on: January 20, 2007, 11:16:27 pm »
Well, the configure.in says there are Makefiles in wxSmith/defwidges, properties, resources and smithicons...
When changed the section with wxSmith to
Code
  src/plugins/contrib/wxSmith/Makefile
  src/plugins/contrib/wxSmith/properties/Makefile
  src/plugins/contrib/wxSmith/wxwidgets/Makefile
  src/plugins/contrib/wxSmith/wxwidgets/defitems/Makefile
  src/plugins/contrib/wxSmith/wxwidgets/icons/Makefile
  src/plugins/contrib/wxSmith/wxwidgets/properties/Makefile
, it bootstrapped. I hope it will compile too :))
« Last Edit: January 20, 2007, 11:23:42 pm by straka.milan »
Q='Q=%s;printf "$Q" "\x27$Q\x27"';printf "$Q" "'$Q'"

Offline Der Meister

  • Regular
  • ***
  • Posts: 307
Re: new wxSmith merge to trunk : svn problem
« Reply #10 on: January 20, 2007, 11:22:24 pm »
You are right, but I think you missed one directory: src/plugins/contrib/wxSmith/wxwidgets/icons/Makefile

Here is a small patch, that worked for me (bootstrap only, didn't do more):
Code
Index: configure.in
===================================================================
--- configure.in        (revision 3522)
+++ configure.in        (working copy)
@@ -218,10 +218,11 @@
        src/plugins/contrib/symtab/resources/Makefile
        src/plugins/contrib/regex_testbed/Makefile
        src/plugins/contrib/wxSmith/Makefile
-       src/plugins/contrib/wxSmith/defwidgets/Makefile
        src/plugins/contrib/wxSmith/properties/Makefile
-       src/plugins/contrib/wxSmith/resources/Makefile
-       src/plugins/contrib/wxSmith/smithicons/Makefile
+       src/plugins/contrib/wxSmith/wxwidgets/Makefile
+       src/plugins/contrib/wxSmith/wxwidgets/defitems/Makefile
+       src/plugins/contrib/wxSmith/wxwidgets/properties/Makefile
+       src/plugins/contrib/wxSmith/wxwidgets/icons/Makefile
        src/scripts/Makefile   
        src/tools/Makefile     
        src/tools/cb_share_config/Makefile
Real Programmers don't comment their code. If it was hard to write, it should be hard to understand.
Real Programmers don't write in BASIC. Actually, no programmers write in BASIC, after the age of 12.

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5529
Re: new wxSmith merge to trunk : svn problem
« Reply #11 on: January 20, 2007, 11:29:17 pm »
hehe, the boss committed :-)

Offline byo

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 836
Re: new wxSmith merge to trunk : svn problem
« Reply #12 on: January 20, 2007, 11:34:27 pm »
Sorry for this inconvenience. I don't have access to root folder so the boss had to do this. And we were little bit out of sync ;)

Offline straka.milan

  • Multiple posting newcomer
  • *
  • Posts: 15
Re: new wxSmith merge to trunk : svn problem
« Reply #13 on: January 20, 2007, 11:34:51 pm »
But it doesn't build, there is a mistake in wxSmith/wxwidgets/Makefile. It definitely should not contain references to defwidgets/..., but defitems/... instead!

[EDIT:] Replacing them manually in Makefile helped, so it should be enough to correct it in Makefile.am and bootstrap & configure.

[EDIT2:] Giving up, another error in wxssettings.cpp
Code
./wxssettings.cpp: In member function 'void wxsSettings::OnDragTargetColClick(wxCommandEvent&)':
./wxssettings.cpp:249: error: '::wxGetColourFromUser' has not been declared
./wxssettings.cpp: In member function 'void wxsSettings::OnDragParentColClick(wxCommandEvent&)':
./wxssettings.cpp:258: error: '::wxGetColourFromUser' has not been declared
make[5]: *** [wxssettings.lo] Error 1

I am going to bed :)
« Last Edit: January 20, 2007, 11:38:14 pm by straka.milan »
Q='Q=%s;printf "$Q" "\x27$Q\x27"';printf "$Q" "'$Q'"

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5529
Re: new wxSmith merge to trunk : svn problem
« Reply #14 on: January 20, 2007, 11:39:14 pm »
ok, I have a look at that one, probably missing include

#include <wx/colordlg.h>

[edit] committed the include fix, I'll leave the Makefile.am to byo
« Last Edit: January 20, 2007, 11:48:03 pm by killerbot »