User forums > Using Code::Blocks
Unable to compile code blocks on mountain lion
oBFusCATed:
Btw, which project is giving these errors? You've cropped the most interesting part of the log.
itzik:
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
--- End code ---
oBFusCATed:
Interesting. You've disabled spellchecker and you're still building it.
Can you try to run make distclean and then repeat all other steps?
Jenna:
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.
itzik:
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
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version