News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Compiling on Mac OS X

Started by TheWizzard, August 30, 2005, 06:05:24 PM

Previous topic - Next topic

xjluo

grv575: No files named codeblocks.rpt generated. How to get it?

grv575

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

squizzz

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

Okay,

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

Quoteld: Undefined symbols:
__ZN12CompilerSDCCC1Ev

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

mandrav

If you 're having problems with CompilerSDCC, edit compilergcc.cpp and, in the constructor, remove the line

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...

Urxae

Quote from: TheWizzard on September 01, 2005, 03:09:16 PM
Quoteld: 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

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

#52
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

TheWizzard

Runs,

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

grv575

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

Ahh

My backtrace got > 90000 lines O.o

Should i really post it?

rickg22

Just the first 100 lines, thank you :)

TheWizzard

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

byo


TheWizzard

Thanks! ^^
So what can I do about this (I know C++ in theory, but I haven't got much experience)