Author Topic: Unable to compile code blocks on mountain lion  (Read 15753 times)

Offline itzik

  • Single posting newcomer
  • *
  • Posts: 6
Unable to compile code blocks on mountain lion
« on: April 01, 2013, 12:04:41 am »
Hi, im new to code blocks and today i tried to compile it for the first time.
Im using mac os x 10.8 (M. Lion).

I saw this http://forums.codeblocks.org/index.php/topic,11379.msg77580.html which describes the exact same issues
i'm having. I managed to fix the first one, and im still stuck on the second one:

configmanager.cpp: In function 'wxString<unnamed>::DetermineResourcesPath()':
configmanager.cpp:124: error: 'wxMacCFStringHolder' was not declared in this scope

I have no idea what i can do to make this work.

Any help would be great...

Thanks,
itzik

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Unable to compile code blocks on mountain lion
« Reply #1 on: April 01, 2013, 12:42:46 am »
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline itzik

  • Single posting newcomer
  • *
  • Posts: 6
Re: Unable to compile code blocks on mountain lion
« Reply #2 on: April 01, 2013, 04:01:36 am »
http://forums.codeblocks.org/index.php/topic,17231.0.html

Please use the search next time...

Thanks, I guess i missed that answer.

After removing some plug in flags and a lot of work,
I am currently stuck over here:

Code
Undefined symbols for architecture x86_64:
  "Hunspell::get_dic_encoding()", referenced from:
      HunspellInterface::GetCharacterEncoding()       in libwxSpellChecker.a(HunspellInterface.o)
  "Hunspell::spell(char const*, int*, char**)", referenced from:
      HunspellInterface::IsWordInDictionary(wxString const&)  in libwxSpellChecker.a(HunspellInterface.o)
  "Hunspell::suggest(char***, char const*)", referenced from:
      HunspellInterface::GetSuggestions(wxString const&)  in libwxSpellChecker.a(HunspellInterface.o)
  "Hunspell::Hunspell(char const*, char const*, char const*)", referenced from:
      HunspellInterface::InitializeSpellCheckEngine()       in libwxSpellChecker.a(HunspellInterface.o)
  "Hunspell::~Hunspell()", referenced from:
      HunspellInterface::UninitializeSpellCheckEngine()       in libwxSpellChecker.a(HunspellInterface.o)
      HunspellInterface::~HunspellInterface()in libwxSpellChecker.a(HunspellInterface.o)
      HunspellInterface::~HunspellInterface()in libwxSpellChecker.a(HunspellInterface.o)
ld: symbol(s) not found for architecture x86_64

I tried to disable hunspell because i had my share of problems with it before getting stuck on the above
with no luck.

tried to config with:
Code
../configure --with-contrib-plugins=all,-FileManager,-NassiShneiderman,-SpellChecker,-WxTreeListCtrl,-wxTreeList,--host=i386-apple-darwin8 --target=i386-apple-darwin8

Did not help as well.

I saw this post:

http://forums.codeblocks.org/index.php/topic,17178.0.html

Its related to my issue, but no specific answer for the above topic was found...

Where can i go from now?
« Last Edit: April 01, 2013, 04:03:17 am by itzik »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Unable to compile code blocks on mountain lion
« Reply #3 on: April 01, 2013, 10:11:13 am »
tried to config with:
Code
../configure --with-contrib-plugins=all,-FileManager,-NassiShneiderman,-SpellChecker,-WxTreeListCtrl,-wxTreeList,--host=i386-apple-darwin8 --target=i386-apple-darwin8
Try removing the comma after -wxTreeList.
Also I don't think -WxTreeListCtrl,-wxTreeList are valid options.

p.s. I don't know it this will help though :)
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline itzik

  • Single posting newcomer
  • *
  • Posts: 6
Re: Unable to compile code blocks on mountain lion
« Reply #4 on: April 01, 2013, 12:43:09 pm »
As you suspected, It didn't  ::)

Please, Any help?

There must be a solution....

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Unable to compile code blocks on mountain lion
« Reply #5 on: April 01, 2013, 01:05:36 pm »
Btw, which project is giving these errors? You've cropped the most interesting part of the log.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline itzik

  • Single posting newcomer
  • *
  • Posts: 6
Re: Unable to compile code blocks on mountain lion
« Reply #6 on: April 01, 2013, 01:14:04 pm »
Sorry, I hope this will do:

Code
Making all in SpellChecker
Making all in wxspellchecker
make[5]: Nothing to be done for `all'.
/bin/sh ../../../../libtool  --tag=CXX   --mode=link g++  -O2 -ffast-math -DCB_AUTOCONF  -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -fexceptions -module -version-info 0:1:0 -shared -no-undefined -avoid-version  -o libSpellChecker.la -rpath /usr/local/lib/codeblocks/plugins DictionariesNeededDialog.lo MySpellingDialog.lo OnlineSpellChecker.lo SpellCheckHelper.lo SpellCheckSettingsPanel.lo SpellCheckerConfig.lo SpellCheckerPlugin.lo StatusField.lo Thesaurus.lo ThesaurusDialog.lo mythes.lo wxThes.lo -L/opt/local/lib   -framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System -framework OpenGL -lwx_osx_cocoau_aui-2.9 -lwx_osx_cocoau_propgrid-2.9 -lwx_osx_cocoau_richtext-2.9 -lwx_osx_cocoau_xrc-2.9 -lwx_osx_cocoau_webview-2.9 -lwx_osx_cocoau_html-2.9 -lwx_osx_cocoau_qa-2.9 -lwx_osx_cocoau_adv-2.9 -lwx_osx_cocoau_core-2.9 -lwx_baseu_xml-2.9 -lwx_baseu_net-2.9 -lwx_baseu-2.9   wxspellchecker/libwxSpellChecker.la ../../../sdk/libcodeblocks.la -lpthread -ldl
libtool: link: g++  -o .libs/libSpellChecker.so -bundle  .libs/DictionariesNeededDialog.o .libs/MySpellingDialog.o .libs/OnlineSpellChecker.o .libs/SpellCheckHelper.o .libs/SpellCheckSettingsPanel.o .libs/SpellCheckerConfig.o .libs/SpellCheckerPlugin.o .libs/StatusField.o .libs/Thesaurus.o .libs/ThesaurusDialog.o .libs/mythes.o .libs/wxThes.o   -Wl,-force_load,wxspellchecker/.libs/libwxSpellChecker.a  -L/opt/local/lib -framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System -framework OpenGL ../../../sdk/.libs/libcodeblocks.dylib -lwx_osx_cocoau_aui-2.9 -lwx_osx_cocoau_propgrid-2.9 -lwx_osx_cocoau_richtext-2.9 -lwx_osx_cocoau_xrc-2.9 -lwx_osx_cocoau_webview-2.9 -lwx_osx_cocoau_html-2.9 -lwx_osx_cocoau_qa-2.9 -lwx_osx_cocoau_adv-2.9 -lwx_osx_cocoau_core-2.9 -lwx_baseu_xml-2.9 -lwx_baseu_net-2.9 -lwx_baseu-2.9 -lpthread -ldl  -O2   -framework IOKit -framework Carbon -framework Cocoa -framework AudioToolbox -framework System -framework OpenGL
Undefined symbols for architecture x86_64:
  "Hunspell::get_dic_encoding()", referenced from:
      HunspellInterface::GetCharacterEncoding()       in libwxSpellChecker.a(HunspellInterface.o)
  "Hunspell::spell(char const*, int*, char**)", referenced from:
      HunspellInterface::IsWordInDictionary(wxString const&)  in libwxSpellChecker.a(HunspellInterface.o)
  "Hunspell::suggest(char***, char const*)", referenced from:
      HunspellInterface::GetSuggestions(wxString const&)  in libwxSpellChecker.a(HunspellInterface.o)
  "Hunspell::Hunspell(char const*, char const*, char const*)", referenced from:
      HunspellInterface::InitializeSpellCheckEngine()       in libwxSpellChecker.a(HunspellInterface.o)
  "Hunspell::~Hunspell()", referenced from:
      HunspellInterface::UninitializeSpellCheckEngine()       in libwxSpellChecker.a(HunspellInterface.o)
      HunspellInterface::~HunspellInterface()in libwxSpellChecker.a(HunspellInterface.o)
      HunspellInterface::~HunspellInterface()in libwxSpellChecker.a(HunspellInterface.o)
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[5]: *** [libSpellChecker.la] Error 1
make[4]: *** [all-recursive] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Unable to compile code blocks on mountain lion
« Reply #7 on: April 01, 2013, 01:15:57 pm »
Interesting. You've disabled spellchecker and you're still building it.

Can you try to run make distclean and then repeat all other steps?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Unable to compile code blocks on mountain lion
« Reply #8 on: April 01, 2013, 01:43:13 pm »
Run ./configure --help to see how the options are spelled exactly.
The options are case-sensitive and the option to disable SpellChecker-plugin is -spellchecker !

By the way, it's normally best practice to create a seperate build-folder and run the configure script (and the make and make install command) from there. In this case you can delete the whole folder (including hidden folders) to get a clean build-environmanet again.

Offline itzik

  • Single posting newcomer
  • *
  • Posts: 6
Re: Unable to compile code blocks on mountain lion
« Reply #9 on: April 01, 2013, 02:24:01 pm »
Thanks a lot!  ;D

The lower case did the trick...

I feel really stupid right now, but how can i bundle the application?

Sorry for what might be a silly question, but i never did such thing and i am kinda lost over here.  ???

Is there a simple guide about what needs to be done? i saw this one:
http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Mac_OS_X#Way_One:_Mac_OS_.28resource.29

But i dont really get what needs to be done? should i write a script holding the mentioned paragraphes in the mentioned guide?

And thanks once again

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Unable to compile code blocks on mountain lion
« Reply #10 on: April 01, 2013, 02:37:27 pm »
Run ./configure --help to see how the options are spelled exactly.
The options are case-sensitive and the option to disable SpellChecker-plugin is -spellchecker !
Jens is it possible to make configure fail if the option is spelled incorrectly or to ignore the case?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline itzik

  • Single posting newcomer
  • *
  • Posts: 6
Re: Unable to compile code blocks on mountain lion
« Reply #11 on: April 01, 2013, 04:25:22 pm »
Still no clue on how to make a normal mac application after successful compiling...  ???

Please guys,
Any help?

Total newbie on these issues...

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Unable to compile code blocks on mountain lion
« Reply #12 on: April 01, 2013, 04:32:50 pm »
Still no clue on how to make a normal mac application after successful compiling...  ???

Please guys,
Any help?

Total newbie on these issues...
Please be patient !

What do you expect ?
Here are very few Mac developer, so will have to wait until one of the answers or search the forum, if I remember correctly, there are therads about the same problem.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Unable to compile code blocks on mountain lion
« Reply #13 on: April 01, 2013, 04:33:53 pm »
Run ./configure --help to see how the options are spelled exactly.
The options are case-sensitive and the option to disable SpellChecker-plugin is -spellchecker !
Jens is it possible to make configure fail if the option is spelled incorrectly or to ignore the case?
I think stopping with an error is the better option, even if converting to lowercase is quite easy with sed.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Unable to compile code blocks on mountain lion
« Reply #14 on: April 01, 2013, 04:54:43 pm »
I think stopping with an error is the better option, even if converting to lowercase is quite easy with sed.
Could it be done? I've looked at the code and it is quite a big and complex mess there (the standard state of autotools code) :)
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Unable to compile code blocks on mountain lion
« Reply #15 on: April 01, 2013, 05:09:06 pm »
Stop with an error ?
I can commit it this evening.
Or converting to lowercase, I can commit this also today.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Unable to compile code blocks on mountain lion
« Reply #16 on: April 01, 2013, 05:37:32 pm »
Stop with an error ?
I prefer stopping with an error :)
If you can fix this it will be great :)
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Unable to compile code blocks on mountain lion
« Reply #17 on: April 01, 2013, 06:22:45 pm »
Stop with an error ?
I prefer stopping with an error :)
If you can fix this it will be great :)
I just committed it to trunk (svn r8931).