Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Mac Binaries
Pecan:
--- Quote from: Pecan on April 30, 2006, 02:13:18 am ---There is an advanced linker option for making dynamic libs in CodeBlocks:
--- Code: ---$linker -dynamic $libdirs $link_objects $link_resobjects -o $exe_output $link_options $libslibtooll
--- End code ---
--- End quote ---
The above is a bogus error. It happened when I editited the line within advanced options.
Somehow "slibtooll/n/t" got appended to the macro line. From now on I'll edit the .conf directly. (don't know if this was human or code bug..it can wait )
However, I am still getting the following error:
--- Code: ----------------- Build: AutoRevision in Code::Blocks - Unix ---------------
Target is up to date.
-------------- Build: ConsoleRunner in Code::Blocks - Unix ---------------
Target is up to date.
-------------- Build: tinyXML in Code::Blocks - Unix ---------------
Target is up to date.
-------------- Build: AngelScript in Code::Blocks - Unix ---------------
Target is up to date.
-------------- Build: scintilla in Code::Blocks - Unix ---------------
libtool -dynamic -Lsdk/tinyxml -L/usr/lib .objs/sdk/wxscintilla/src/wxscintilla.o .objs/sdk/wxscintilla/src/ScintillaWX.o .objs/sdk/wxscintilla/src/scintilla/src/AutoComplete.o .objs/sdk/wxscintilla/src/scintilla/src/CallTip.o .objs/sdk/wxscintilla/src/scintilla/src/CellBuffer.o .objs/sdk/wxscintilla/src/scintilla/src/ContractionState.o .objs/sdk/wxscintilla/src/scintilla/src/Document.o .objs/sdk/wxscintilla/src/scintilla/src/DocumentAccessor.o .objs/sdk/wxscintilla/src/scintilla/src/Editor.o .objs/sdk/wxscintilla/src/scintilla/src/ExternalLexer.o .objs/sdk/wxscintilla/src/scintilla/src/Indicator.o .objs/sdk/wxscintilla/src/scintilla/src/KeyMap.o .objs/sdk/wxscintilla/src/scintilla/src/KeyWords.o .objs/sdk/wxscintilla/src/scintilla/src/LexAPDL.o .objs/sdk/wxscintilla/src/scintilla/src/LexAU3.o .objs/sdk/wxscintilla/src/scintilla/src/LexAVE.o .objs/sdk/wxscintilla/src/scintilla/src/LexAda.o .objs/sdk/wxscintilla/src/scintilla/src/LexAsm.o .objs/sdk/wxscintilla/src/scintilla/src/LexAsn1.o .objs/sdk/wxscintill
libtool: internal link edit command failed
ld: for architecture ppc
ld: Undefined symbols:
__Unwind_Resume
__ZTVN10__cxxabiv117__class_type_infoE
__ZTVN10__cxxabiv120__si_class_type_infoE
__ZdaPv
__ZdlPv
__Znam
__Znwm
___gxx_personality_v0
___cxa_pure_virtual
__ZTVN10__cxxabiv121__vmi_class_type_infoE
Process terminated with status 1 (0 minutes, 45 seconds)
0 errors, 0 warnings
--- End code ---
Anders, we sure would like a look at that make file. :)
Pecan:
MyGod! I can't believe it. scintilla actually linked under OS X 10.3
as shown here:
--- Code: ---libtool -dynamic -Lsdk/tinyxml -L/usr/lib -L/usr/local/lib -L/usr/lib/gcc/darwin/3.3 -L/usr/lib/gcc/darwin/default -L/usr/lib .objs/sdk/wxscintilla/src/wxscintilla.o .objs/sdk/wxscintilla/src/ScintillaWX.o .objs/sdk/wxscintilla/src/scintilla/src/AutoComplete.o .objs/sdk/wxscintilla/src/scintilla/src/CallTip.o .objs/sdk/wxscintilla/src/scintilla/src/CellBuffer.o .objs/sdk/wxscintilla/src/scintilla/src/ContractionState.o .objs/sdk/wxscintilla/src/scintilla/src/Document.o .objs/sdk/wxscintilla/src/scintilla/src/DocumentAccessor.o .objs/sdk/wxscintilla/src/scintilla/src/Editor.o .objs/sdk/wxscintilla/src/scintilla/src/ExternalLexer.o .objs/sdk/wxscintilla/src/scintilla/src/Indicator.o .objs/sdk/wxscintilla/src/scintilla/src/KeyMap.o .objs/sdk/wxscintilla/src/scintilla/src/KeyWords.o .objs/sdk/wxscintilla/src/scintilla/src/LexAPDL.o .objs/sdk/wxscintilla/src/scintilla/src/LexAU3.o .objs/sdk/wxscintilla/src/scintilla/src/LexAVE.o .objs/sdk/wxscintilla/src/scintilla/src/LexAda.o .objs/sdk/wxscintilla/src/scintilla
Process terminated with status 0 (7 minutes, 47 seconds)
0 errors, 0 warnings
--- End code ---
I still don't know if I've picked the correct libs. But this is what worked. I'd appreciate any Mac types comment on the lib lists. Would you compare it to your make file. Maybe even upload your make file... :lol: :lol:
--- Code: --- <Target title="scintilla">
<Option output="devel/libwxscintilla.so" />
<Option working_dir="devel" />
<Option type="3" />
<Option compiler="gcc" />
<Option includeInTargetAll="1" />
<Compiler>
<Add option="-DSCI_LEXER" />
<Add option="-DLINK_LEXERS" />
<Add option="-DGTK" />
<Add directory="sdk/wxscintilla/include" />
<Add directory="sdk/wxscintilla/src/scintilla/include" />
<Add directory="sdk/wxscintilla/src/scintilla/src" />
</Compiler>
<ResourceCompiler>
<Add directory="sdk/wxscintilla/include" />
</ResourceCompiler>
<Linker>
<Add option="`wx-config --libs`" />
<!--Add library="addhere" /-->
<Add library="/usr/lib/libSystem.B.dylib" />
<Add library="/usr/lib/libSystem.dylib" />
<Add library="/usr/lib/gcc/darwin/3.3/libstdc++.a" />
<Add library="/usr/lib/gcc/darwin/3.3/libgcc.a" />
<!--Add library="/usr/local/lib/libwx_mac-2.6.0.dylib" /-->
<Add directory="/usr/lib" />
<Add directory="/usr/local/lib" />
<Add directory="/usr/lib/gcc/darwin/3.3" />
<Add directory="/usr/lib/gcc/darwin/default" />
</Linker>
</Target>
--- End code ---
pecan
Pecan:
While compiling the sdk for "MacCodeBlocks", finddlg.cpp got a bunch of errors because it couldn't see the header files.
I defined "#undef CB_PRECOMP" ahead of the #ifdef CB_PRECOMP and it compiled nicely.
EDIT: 2006/05/1
The above is also true of replacedlg.cpp
I had set "pecomp headers in directory along sideof..." option long ago.
Why is this happening. Is there anything I can do about it. I'd like to get that #undef out of there.
I also noticed that setting "along side of" option did not change the
entry for finddlg...
--- Code: --- <Unit filename="sdk\filegroupsandmasks.h">
<Option compilerVar="" />
<Option compile="0" />
<Option link="0" />
<Option target="sdk" />
</Unit>
<Unit filename="sdk\finddlg.cpp">
<Option compilerVar="CPP" />
<Option target="sdk" />
</Unit>
<Unit filename="sdk\finddlg.h">
<Option compilerVar="" />
<Option compile="0" />
<Option link="0" />
<Option target="sdk" />
--- End code ---
Is this significant ?
thanks
pecan
Pecan:
sdk now compiles/links under mcCodeBlocks.
Note: This is not a definitive solution. At the moment it's still "trial" and error
Modifications necessary:
* cp src/devel/libwxscintilla.so src/devel/libwxscintilla.dylib
This should have been output as a dylib in the first place.
* modify .cbp under <Target title="sdk">
--- Code: --- <Linker>
...
<!-- Additional libs and dirs for mcCodeBlocks -->
<Add library="/usr/lib/libSystem.B.dylib" />
<Add library="/usr/lib/libSystem.dylib" />
<Add library="/usr/lib/gcc/darwin/3.3/libstdc++.a" />
<Add library="/usr/lib/gcc/darwin/3.3/libgcc.a" />
<Add directory="/usr/lib" />
<Add directory="/usr/local/lib" />
<Add directory="/usr/lib/gcc/darwin/3.3" />
<Add directory="/usr/lib/gcc/darwin/default" />
</Linker>
--- End code ---
--- Code: ----------------- Build: sdk in Code::Blocks - Unix ---------------
Running target pre-build steps
tools/autorevision/auto_revision +wx +int +t . sdk/autorevision.h
libtool -dynamic -Lsdk/tinyxml -Ldevel -Lsdk/as -Lsdk/propgrid -Lsdk/wxFlatNotebook -L/usr/lib -L/usr/local/lib -L/usr/lib/gcc/darwin/3.3 -L/usr/lib/gcc/darwin/default -L/usr/lib .objs/sdk/xtra_res.o .objs/sdk/as/bindings/const_bindings.o .objs/sdk/as/bindings/sc_io.o .objs/sdk/as/bindings/sc_wxarraystring.o .objs/sdk/as/bindings/sc_wxstring.o .objs/sdk/as/bindings/scriptbindings.o .objs/sdk/autodetectcompilers.o .objs/sdk/base64.o .objs/sdk/blockallocated.o .objs/sdk/cbeditor.o .objs/sdk/cbeditorprintout.o .objs/sdk/cbexception.o .objs/sdk/cbplugin.o .objs/sdk/cbproject.o .objs/sdk/cbthreadpool.o .objs/sdk/cbworkspace.o .objs/sdk/compileoptionsbase.o .objs/sdk/compiler.o .objs/sdk/compilercommandgenerator.o .objs/sdk/compilerfactory.o .objs/sdk/compileroptions.o .objs/sdk/compiletargetbase.o .objs/sdk/configmanager-revision.o .objs/sdk/configmanager.o .objs/sdk/configurationpanel.o .objs/sdk/configuretoolsdlg.o .objs/sdk/confirmreplacedlg.o .objs/sdk/crc32.o .objs/sdk/devcpploader.o .objs/sdk/editarrayfile
Process terminated with status 0 (5 minutes, 42 seconds)
0 errors, 0 warnings
--- End code ---
Pecan:
Finally, a macCodeBlocks thats usable.
It has problems with AngelScript, and I haven't tried the contribs yet. But this version was created from a hand written CodeBlocks-mac-cbp.
I'm waiting for a makefile to check and modify the .cbp. I have all notes for necessary changes and will make a .patch.
thanks
pecan
EDIT: btw, except for the startup, with all those lexers loading, it's quite spritely (as the elders say) on a imacg3 with only 128meg.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version