Author Topic: Compiling on Mac OS X  (Read 50813 times)

xjluo

  • Guest
Re: Compiling on Mac OS X
« Reply #45 on: September 01, 2005, 04:38:06 am »
grv575: No files named codeblocks.rpt generated. How to get it?

grv575

  • Guest
Re: Compiling on Mac OS X
« Reply #46 on: September 01, 2005, 05:54:42 am »
dunno.  it should be generated in the same directory as codeblocks.exe when it crashes.  you can always do
gdb codeblocks.exe
run
bt

to get the backtrace

Offline squizzz

  • Almost regular
  • **
  • Posts: 132
Re: Compiling on Mac OS X
« Reply #47 on: September 01, 2005, 01:45:24 pm »
Maybe it's standard resource missing (bitmaps, xrc) crash? You have to run update script after succesfully building C::B, and make sure there are no errors during its execution.
this space is for rent

TheWizzard

  • Guest
Re: Compiling on Mac OS X
« Reply #48 on: September 01, 2005, 03:09:16 pm »
Okay,

Thanks to you all for the tips. It compiles Astyle, but still fails at CompilerGCC, giving the following linker error:

Quote
ld: Undefined symbols:
__ZN12CompilerSDCCC1Ev

CompilerSDCC is compiled by CompilerGCC isn't it? So why is it unable to find it?

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Compiling on Mac OS X
« Reply #49 on: September 01, 2005, 03:13:28 pm »
If you 're having problems with CompilerSDCC, edit compilergcc.cpp and, in the constructor, remove the line
Code
CompilerFactory::RegisterCompiler(new CompilerSDCC);

Also remove the #include "compilerSDCC.h" from the top of the file.

This will remove SDCC support until we update the makefile...
Be patient!
This bug will be fixed soon...

Offline Urxae

  • Regular
  • ***
  • Posts: 376
Re: Compiling on Mac OS X
« Reply #50 on: September 01, 2005, 03:18:37 pm »
Quote
ld: Undefined symbols:
__ZN12CompilerSDCCC1Ev

CompilerSDCC is compiled by CompilerGCC isn't it? So why is it unable to find it?

Did it actually compile? Did it show up in the output? Maybe the makefile you used didn't compile compilerSDCC.cpp, it's a relatively new file to the project IIRC, so if the makefile's a bit out of date it may not be included.

TheWizzard

  • Guest
Re: Compiling on Mac OS X
« Reply #51 on: September 01, 2005, 03:36:24 pm »
Quote
./run.sh
dyld: Library not loaded: devel/libcodeblocks.dylib
  Referenced from: /Users/jonasoberschweiber/codeblocks/codeblocks/src/output/codeblocks.exe
  Reason: image not found
./run.sh: line 5: 10904 Trace/BPT trap          $APP_DIR/codeblocks.exe $@

It compiled! w00t! But that's what I get now. There are images in share/CodeBlocks and so on. The devel/libcodeblocks.dylib exists.

grv575

  • Guest
Re: Compiling on Mac OS X
« Reply #52 on: September 01, 2005, 04:00:52 pm »
well...run.sh is running output/codeblocks.exe
which wants to load devel/codeblocks.dylib

and output/devel/codeblocks.dylib doesn't exist of course.  it should want to look for output/codeblocks.dylib but maybe some of those -Ldevel library paths hardcoded the libpath in the exe?  this should really be tested more on linux (why -Ldevel isn't needed on windows to link the sdk libs I'm not sure, maybe it should be -L"." instead on linux, not sure).

just for kicks does it load if you copy devel to output?  or modify run.sh to run the .exe in the devel directory instead of the output one?

edit:
actually, the run.sh may need to be modified for macos?  does mac use LD_LIBRARY_PATH (like linux) or LIBPATH?
http://msgs.securepoint.com/cgi-bin/get/openssh-unix-dev-0507/9/1/1.html
« Last Edit: September 01, 2005, 04:03:31 pm by grv575 »

TheWizzard

  • Guest
Re: Compiling on Mac OS X
« Reply #53 on: September 01, 2005, 04:05:13 pm »
Runs,

Well, sort of. Shows Splash and crashes.
Quote
#./run.sh: line 5: 10926 Segmentation fault      $APP_DIR/codeblocks.exe $@

grv575

  • Guest
Re: Compiling on Mac OS X
« Reply #54 on: September 01, 2005, 04:13:06 pm »
that's what xjluo got.  if there's a codeblocks.rpt backtrace you can post that and if not maybe try
gdb run.sh (maybe needs to be gdb codeblocks.exe)
run
bt

which will give a backtrace.

TheWizzard

  • Guest
Re: Compiling on Mac OS X
« Reply #55 on: September 01, 2005, 05:28:58 pm »
Ahh

My backtrace got > 90000 lines O.o

Should i really post it?

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: Compiling on Mac OS X
« Reply #56 on: September 01, 2005, 05:45:50 pm »
Just the first 100 lines, thank you :)

TheWizzard

  • Guest
Re: Compiling on Mac OS X
« Reply #57 on: September 01, 2005, 06:06:41 pm »
There you go... ;)

Quote
(gdb) bt
#0  0x006387a0 in wxStringBase::operator= ()
#1  0x0102e700 in EditorBase::SetTitle (this=0x40a9200, newTitle=@0x40a9410) at sdk/editorbase.cpp:91
#2  0x010c2f5c in wxWindowBase::SetLabel (this=0x40a9200, label=@0x40a9410) at /usr/local/include/wx-2.6/wx/window.h:186
#3  0x00328844 in wxNotebook::SetPageText ()
#4  0x0102e794 in EditorBase::SetTitle (this=0x40a9200, newTitle=@0x40a9410) at sdk/editorbase.cpp:94
#5  0x010c2f5c in wxWindowBase::SetLabel (this=0x40a9200, label=@0x40a9410) at /usr/local/include/wx-2.6/wx/window.h:186
#6  0x00328844 in wxNotebook::SetPageText ()
#7  0x0102e794 in EditorBase::SetTitle (this=0x40a9200, newTitle=@0x40a9410) at sdk/editorbase.cpp:94
#8  0x010c2f5c in wxWindowBase::SetLabel (this=0x40a9200, label=@0x40a9410) at /usr/local/include/wx-2.6/wx/window.h:186
#9  0x00328844 in wxNotebook::SetPageText ()
#10 0x0102e794 in EditorBase::SetTitle (this=0x40a9200, newTitle=@0x40a9410) at sdk/editorbase.cpp:94
#11 0x010c2f5c in wxWindowBase::SetLabel (this=0x40a9200, label=@0x40a9410) at /usr/local/include/wx-2.6/wx/window.h:186
#12 0x00328844 in wxNotebook::SetPageText ()
#13 0x0102e794 in EditorBase::SetTitle (this=0x40a9200, newTitle=@0x40a9410) at sdk/editorbase.cpp:94
#14 0x010c2f5c in wxWindowBase::SetLabel (this=0x40a9200, label=@0x40a9410) at /usr/local/include/wx-2.6/wx/window.h:186
#15 0x00328844 in wxNotebook::SetPageText ()
#16 0x0102e794 in EditorBase::SetTitle (this=0x40a9200, newTitle=@0x40a9410) at sdk/editorbase.cpp:94
#17 0x010c2f5c in wxWindowBase::SetLabel (this=0x40a9200, label=@0x40a9410) at /usr/local/include/wx-2.6/wx/window.h:186
#18 0x00328844 in wxNotebook::SetPageText ()
#19 0x0102e794 in EditorBase::SetTitle (this=0x40a9200, newTitle=@0x40a9410) at sdk/editorbase.cpp:94
#20 0x010c2f5c in wxWindowBase::SetLabel (this=0x40a9200, label=@0x40a9410) at /usr/local/include/wx-2.6/wx/window.h:186
#21 0x00328844 in wxNotebook::SetPageText ()
#22 0x0102e794 in EditorBase::SetTitle (this=0x40a9200, newTitle=@0x40a9410) at sdk/editorbase.cpp:94
#23 0x010c2f5c in wxWindowBase::SetLabel (this=0x40a9200, label=@0x40a9410) at /usr/local/include/wx-2.6/wx/window.h:186
#24 0x00328844 in wxNotebook::SetPageText ()
#25 0x0102e794 in EditorBase::SetTitle (this=0x40a9200, newTitle=@0x40a9410) at sdk/editorbase.cpp:94
#26 0x010c2f5c in wxWindowBase::SetLabel (this=0x40a9200, label=@0x40a9410) at /usr/local/include/wx-2.6/wx/window.h:186
#27 0x00328844 in wxNotebook::SetPageText ()
#28 0x0102e794 in EditorBase::SetTitle (this=0x40a9200, newTitle=@0x40a9410) at sdk/editorbase.cpp:94
#29 0x010c2f5c in wxWindowBase::SetLabel (this=0x40a9200, label=@0x40a9410) at /usr/local/include/wx-2.6/wx/window.h:186
#30 0x00328844 in wxNotebook::SetPageText ()
#31 0x0102e794 in EditorBase::SetTitle (this=0x40a9200, newTitle=@0x40a9410) at sdk/editorbase.cpp:94
#32 0x010c2f5c in wxWindowBase::SetLabel (this=0x40a9200, label=@0x40a9410) at /usr/local/include/wx-2.6/wx/window.h:186
#33 0x00328844 in wxNotebook::SetPageText ()
#34 0x0102e794 in EditorBase::SetTitle (this=0x40a9200, newTitle=@0x40a9410) at sdk/editorbase.cpp:94
#35 0x010c2f5c in wxWindowBase::SetLabel (this=0x40a9200, label=@0x40a9410) at /usr/local/include/wx-2.6/wx/window.h:186
#36 0x00328844 in wxNotebook::SetPageText ()
#37 0x0102e794 in EditorBase::SetTitle (this=0x40a9200, newTitle=@0x40a9410) at sdk/editorbase.cpp:94
#38 0x010c2f5c in wxWindowBase::SetLabel (this=0x40a9200, label=@0x40a9410) at /usr/local/include/wx-2.6/wx/window.h:186
#39 0x00328844 in wxNotebook::SetPageText ()
#40 0x0102e794 in EditorBase::SetTitle (this=0x40a9200, newTitle=@0x40a9410) at sdk/editorbase.cpp:94
#41 0x010c2f5c in wxWindowBase::SetLabel (this=0x40a9200, label=@0x40a9410) at /usr/local/include/wx-2.6/wx/window.h:186
#42 0x00328844 in wxNotebook::SetPageText ()
#43 0x0102e794 in EditorBase::SetTitle (this=0x40a9200, newTitle=@0x40a9410) at sdk/editorbase.cpp:94
#44 0x010c2f5c in wxWindowBase::SetLabel (this=0x40a9200, label=@0x40a9410) at /usr/local/include/wx-2.6/wx/window.h:186
#45 0x00328844 in wxNotebook::SetPageText ()
#46 0x0102e794 in EditorBase::SetTitle (this=0x40a9200, newTitle=@0x40a9410) at sdk/editorbase.cpp:94
#47 0x010c2f5c in wxWindowBase::SetLabel (this=0x40a9200, label=@0x40a9410) at /usr/local/include/wx-2.6/wx/window.h:186
#48 0x00328844 in wxNotebook::SetPageText ()
#49 0x0102e794 in EditorBase::SetTitle (this=0x40a9200, newTitle=@0x40a9410) at sdk/editorbase.cpp:94
#50 0x010c2f5c in wxWindowBase::SetLabel (this=0x40a9200, label=@0x40a9410) at /usr/local/include/wx-2.6/wx/window.h:186
#51 0x00328844 in wxNotebook::SetPageText ()
#52 0x0102e794 in EditorBase::SetTitle (this=0x40a9200, newTitle=@0x40a9410) at sdk/editorbase.cpp:94
#53 0x010c2f5c in wxWindowBase::SetLabel (this=0x40a9200, label=@0x40a9410) at /usr/local/include/wx-2.6/wx/window.h:186
#54 0x00328844 in wxNotebook::SetPageText ()
#55 0x0102e794 in EditorBase::SetTitle (this=0x40a9200, newTitle=@0x40a9410) at sdk/editorbase.cpp:94
#56 0x010c2f5c in wxWindowBase::SetLabel (this=0x40a9200, label=@0x40a9410) at /usr/local/include/wx-2.6/wx/window.h:186
#57 0x00328844 in wxNotebook::SetPageText ()
#58 0x0102e794 in EditorBase::SetTitle (this=0x40a9200, newTitle=@0x40a9410) at sdk/editorbase.cpp:94
#59 0x010c2f5c in wxWindowBase::SetLabel (this=0x40a9200, label=@0x40a9410) at /usr/local/include/wx-2.6/wx/window.h:186
#60 0x00328844 in wxNotebook::SetPageText ()
#61 0x0102e794 in EditorBase::SetTitle (this=0x40a9200, newTitle=@0x40a9410) at sdk/editorbase.cpp:94
#62 0x010c2f5c in wxWindowBase::SetLabel (this=0x40a9200, label=@0x40a9410) at /usr/local/include/wx-2.6/wx/window.h:186
#63 0x00328844 in wxNotebook::SetPageText ()
#64 0x0102e794 in EditorBase::SetTitle (this=0x40a9200, newTitle=@0x40a9410) at sdk/editorbase.cpp:94
#65 0x010c2f5c in wxWindowBase::SetLabel (this=0x40a9200, label=@0x40a9410) at /usr/local/include/wx-2.6/wx/window.h:186
#66 0x00328844 in wxNotebook::SetPageText ()
#67 0x0102e794 in EditorBase::SetTitle (this=0x40a9200, newTitle=@0x40a9410) at sdk/editorbase.cpp:94
#68 0x010c2f5c in wxWindowBase::SetLabel (this=0x40a9200, label=@0x40a9410) at /usr/local/include/wx-2.6/wx/window.h:186
#69 0x00328844 in wxNotebook::SetPageText ()
#70 0x0102e794 in EditorBase::SetTitle (this=0x40a9200, newTitle=@0x40a9410) at sdk/editorbase.cpp:94
#71 0x010c2f5c in wxWindowBase::SetLabel (this=0x40a9200, label=@0x40a9410) at /usr/local/include/wx-2.6/wx/window.h:186
#72 0x00328844 in wxNotebook::SetPageText ()
#73 0x0102e794 in EditorBase::SetTitle (this=0x40a9200, newTitle=@0x40a9410) at sdk/editorbase.cpp:94
#74 0x010c2f5c in wxWindowBase::SetLabel (this=0x40a9200, label=@0x40a9410) at /usr/local/include/wx-2.6/wx/window.h:186
#75 0x00328844 in wxNotebook::SetPageText ()
#76 0x0102e794 in EditorBase::SetTitle (this=0x40a9200, newTitle=@0x40a9410) at sdk/editorbase.cpp:94
#77 0x010c2f5c in wxWindowBase::SetLabel (this=0x40a9200, label=@0x40a9410) at /usr/local/include/wx-2.6/wx/window.h:186
#78 0x00328844 in wxNotebook::SetPageText ()
#79 0x0102e794 in EditorBase::SetTitle (this=0x40a9200, newTitle=@0x40a9410) at sdk/editorbase.cpp:94
#80 0x010c2f5c in wxWindowBase::SetLabel (this=0x40a9200, label=@0x40a9410) at /usr/local/include/wx-2.6/wx/window.h:186
#81 0x00328844 in wxNotebook::SetPageText ()
#82 0x0102e794 in EditorBase::SetTitle (this=0x40a9200, newTitle=@0x40a9410) at sdk/editorbase.cpp:94
#83 0x010c2f5c in wxWindowBase::SetLabel (this=0x40a9200, label=@0x40a9410) at /usr/local/include/wx-2.6/wx/window.h:186
#84 0x00328844 in wxNotebook::SetPageText ()
#85 0x0102e794 in EditorBase::SetTitle (this=0x40a9200, newTitle=@0x40a9410) at sdk/editorbase.cpp:94
#86 0x010c2f5c in wxWindowBase::SetLabel (this=0x40a9200, label=@0x40a9410) at /usr/local/include/wx-2.6/wx/window.h:186
#87 0x00328844 in wxNotebook::SetPageText ()
#88 0x0102e794 in EditorBase::SetTitle (this=0x40a9200, newTitle=@0x40a9410) at sdk/editorbase.cpp:94
#89 0x010c2f5c in wxWindowBase::SetLabel (this=0x40a9200, label=@0x40a9410) at /usr/local/include/wx-2.6/wx/window.h:186
#90 0x00328844 in wxNotebook::SetPageText ()
#91 0x0102e794 in EditorBase::SetTitle (this=0x40a9200, newTitle=@0x40a9410) at sdk/editorbase.cpp:94
#92 0x010c2f5c in wxWindowBase::SetLabel (this=0x40a9200, label=@0x40a9410) at /usr/local/include/wx-2.6/wx/window.h:186
#93 0x00328844 in wxNotebook::SetPageText ()
#94 0x0102e794 in EditorBase::SetTitle (this=0x40a9200, newTitle=@0x40a9410) at sdk/editorbase.cpp:94
#95 0x010c2f5c in wxWindowBase::SetLabel (this=0x40a9200, label=@0x40a9410) at /usr/local/include/wx-2.6/wx/window.h:186
#96 0x00328844 in wxNotebook::SetPageText ()
#97 0x0102e794 in EditorBase::SetTitle (this=0x40a9200, newTitle=@0x40a9410) at sdk/editorbase.cpp:94
#98 0x010c2f5c in wxWindowBase::SetLabel (this=0x40a9200, label=@0x40a9410) at /usr/local/include/wx-2.6/wx/window.h:186
#99 0x00328844 in wxNotebook::SetPageText ()
#100 0x0102e794 in EditorBase::SetTitle (this=0x40a9200, newTitle=@0x40a9410) at sdk/editorbase.cpp:94

Offline byo

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 836
Re: Compiling on Mac OS X
« Reply #58 on: September 01, 2005, 06:19:35 pm »
Wow, nice stack overflow

TheWizzard

  • Guest
Re: Compiling on Mac OS X
« Reply #59 on: September 01, 2005, 06:31:03 pm »
Thanks! ^^
So what can I do about this (I know C++ in theory, but I haven't got much experience)