Author Topic: Problem to compile the latest SVN on ubuntu  (Read 7264 times)

Offline manowar

  • Multiple posting newcomer
  • *
  • Posts: 16
Problem to compile the latest SVN on ubuntu
« on: February 18, 2006, 01:16:54 pm »
Hello,

I have compilations error when I try to compile the latest SVN version (2026) on ubuntu:

environmentsettingsdlg.o: In function `EnvironmentSettingsDlg::OnSetAssocs(wxCommandEvent&)':
/home/eric/Documents/codeblocks/trunk/src/src/environmentsettingsdlg.cpp:256: undefined reference to `Associations::SetCore()'
environmentsettingsdlg.o: In function `EnvironmentSettingsDlg::OnManageAssocs(wxCommandEvent&)':
/home/eric/Documents/codeblocks/trunk/src/src/environmentsettingsdlg.cpp:262: undefined reference to `ManageAssocsDialog::ManageAssocsDialog(wxWindow*)'
collect2: ld returned 1 exit status
make[3]: *** [codeblocks] Error 1
make[3]: Leaving directory `/home/eric/Documents/codeblocks/trunk/src/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/eric/Documents/codeblocks/trunk/src/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/eric/Documents/codeblocks/trunk/src'
make: *** [all-recursive] Error 1

I do not know how to fix that

Thanks for your help

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Problem to compile the latest SVN on ubuntu
« Reply #1 on: February 18, 2006, 01:42:12 pm »
Do a clean rebuild.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline manowar

  • Multiple posting newcomer
  • *
  • Posts: 16
Re: Problem to compile the latest SVN on ubuntu
« Reply #2 on: February 18, 2006, 02:12:13 pm »
Hi

Thanks for your quick answer, but it did not fix the problem  :(
I did :
make clean
make uninstall

I am using wxGTK included with the distribution (libwxgtk2.6-0 ). Do I need to follow the wiki and recompile with a more recent version of wxgtk ?

Thanks

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Problem to compile the latest SVN on ubuntu
« Reply #3 on: February 18, 2006, 02:25:17 pm »
make clean
make uninstall
make clean
make
make install

Optionally, you can look whether you still have an old libcodeblocks.so somewhere in your path. If you do, delete it.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline manowar

  • Multiple posting newcomer
  • *
  • Posts: 16
Re: Problem to compile the latest SVN on ubuntu
« Reply #4 on: February 18, 2006, 03:17:24 pm »
Well I am not sure what is wrong, but I followed what you said, but i always got the same error. I even did a 'find / -name libcodeblocks.so' to check if I had an old version of the lib, and none was found.

Thank you anyway.


Offline lrm

  • Single posting newcomer
  • *
  • Posts: 3
Re: Problem to compile the latest SVN on ubuntu
« Reply #5 on: February 18, 2006, 05:24:05 pm »
I have the same problem:

environmentsettingsdlg.o: In function `EnvironmentSettingsDlg::OnManageAssocs(wxCommandEvent&)':
/home/lrm/dev/cb/trunk/src/src/environmentsettingsdlg.cpp:262: undefined reference to `ManageAssocsDialog::ManageAssocsDialog(wxWindow*)'

Revision previous to 2022 compile fine.

Distro: Kubuntu

Offline manowar

  • Multiple posting newcomer
  • *
  • Posts: 16
Re: Problem to compile the latest SVN on ubuntu
« Reply #6 on: February 18, 2006, 06:10:20 pm »
Indeed, I have just installed revision 2021 from svn, there must be something wrong in the latest revisions.

Thanks

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Problem to compile the latest SVN on ubuntu
« Reply #7 on: February 18, 2006, 07:02:32 pm »
Try now, please.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline manowar

  • Multiple posting newcomer
  • *
  • Posts: 16
Re: Problem to compile the latest SVN on ubuntu
« Reply #8 on: February 18, 2006, 08:21:05 pm »
Yes it works great ! Thanks a lot


Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Problem to compile the latest SVN on ubuntu
« Reply #9 on: February 18, 2006, 08:25:06 pm »
Credit goes to afb who already submitted a patch for that problem several hours before.
However, I deemed it unnecessary at first glance.  :oops:
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline manowar

  • Multiple posting newcomer
  • *
  • Posts: 16
Re: Problem to compile the latest SVN on ubuntu
« Reply #10 on: February 18, 2006, 08:28:45 pm »
Well I simply thank you all  for your great work on codeblocks.