Code::Blocks Forums

User forums => Help => Topic started by: manowar on February 18, 2006, 01:16:54 pm

Title: Problem to compile the latest SVN on ubuntu
Post by: manowar 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
Title: Re: Problem to compile the latest SVN on ubuntu
Post by: thomas on February 18, 2006, 01:42:12 pm
Do a clean rebuild.
Title: Re: Problem to compile the latest SVN on ubuntu
Post by: manowar 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
Title: Re: Problem to compile the latest SVN on ubuntu
Post by: thomas 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.
Title: Re: Problem to compile the latest SVN on ubuntu
Post by: manowar 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.

Title: Re: Problem to compile the latest SVN on ubuntu
Post by: lrm 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
Title: Re: Problem to compile the latest SVN on ubuntu
Post by: manowar 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
Title: Re: Problem to compile the latest SVN on ubuntu
Post by: thomas on February 18, 2006, 07:02:32 pm
Try now, please.
Title: Re: Problem to compile the latest SVN on ubuntu
Post by: manowar on February 18, 2006, 08:21:05 pm
Yes it works great ! Thanks a lot

Title: Re: Problem to compile the latest SVN on ubuntu
Post by: thomas 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:
Title: Re: Problem to compile the latest SVN on ubuntu
Post by: manowar on February 18, 2006, 08:28:45 pm
Well I simply thank you all  for your great work on codeblocks.