Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: bnilsson on October 31, 2006, 11:01:42 pm
-
As an exercise, I am trying to build CB (CodeBlocks-unix.cbp) by the help of CB.
Can somebody explain this:
When auto_revision is built by CB I get this:
build_tools / autorevision / auto_revision +wx +int +t . sdk / autorevision.h
dyld: lazy symbol binding failed: lazy pointer not found
dyld: lazy pointer not found
while when auto_revision is built ny manual make it works ok.
The command line in CB is this (sorry about the extra spaces):
-------------- Build: AutoRevision in Code::Blocks - MAC103u ---------------
g + + -I / usr / include -I / opt / local / include -c build_tools / autorevision / autorevision.cpp -o .objs / build_tools / autorevision / autorevision.o
g + + -L / usr / lib -L / opt / local / lib -o build_tools / autorevision / auto_revision .objs / build_tools / autorevision / autorevision.o -s
The screen output for manual make is this (sorry about the extra spaces):
make
if g + + -DHAVE_CONFIG_H -I. -I. -I.. / .. / .. / src / sdk -O2 -ffast-math -I / opt / local / include -g -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -MT autorevision.o -MD -MP -MF ".deps / autorevision.Tpo" -c -o autorevision.o autorevision.cpp; \
then mv -f ".deps / autorevision.Tpo" ".deps / autorevision.Po"; else rm -f ".deps / autorevision.Tpo"; exit 1; fi
/ bin / sh .. / .. / .. / libtool --tag=CXX --mode=link g++ -O2 -ffast-math -I / opt / local / include -g -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -L / opt / local / lib -o auto_revision autorevision.o -lpthread -ldl
mkdir .libs
g + + -O2 -ffast-math -I / opt / local / include -g -DCB_PRECOMP -Winvalid-pch -fPIC -DPIC -o auto_revision autorevision.o -Wl,-bind_at_load -L / opt / local / lib -lpthread -ldl
. / auto_revision +int +wx +t .. / .. / .. . / .. / .. / sdk / autorevision.h
Since I do not entirely understand the make contents I would like to ask if somebody can help me point out where the key differences are, and if a fix can be ported into the CB project?
I have also tried Pecan's CodeBlocks-mac103u.cbp, but it is the same thing there, which is puzzling, since I suppose it did work in Pecan's environment.
-
CodeBlow ...
Cute :D
-Eran
-
As an exercise, I am trying to build CB (CodeBlocks-unix.cbp) by the help of CB.
Can somebody explain this:
When auto_revision is built by CB I get this:
build_tools / autorevision / auto_revision +wx +int +t . sdk / autorevision.h
dyld: lazy symbol binding failed: lazy pointer not found
dyld: lazy pointer not found
I've already answered that question twice now. You haven't read my responses?
Search this forum for "lazy pointer"
-
I have also tried Pecan's CodeBlocks-mac103u.cbp, but it is the same thing there, which is puzzling, since I suppose it did work in Pecan's environment.
Yes, both work in 10.3, but you're using 10.4 . And I suspect your wxWidgets is Ansi, not Unicode.
You might want to build with the .cbp ending in "a" for ansi, not the "u" for unicode. Unicode wxWidgets does not play well with other Mac programs.
And, you cannot use "-s" in 10.4 (There, I said it the third time).
-
The discussion about lazy pointers and stripping went above my head since I am not very familiar with any of the subjects, so I completely missed the point.
Sorry about that.
Thanks for the CodeBlocks-mac.cbp projects, it will help a lot.
About unicode/ansi, I was misled by the wiki instructions for CB Windows install, "Although ANSI builds are technically possible, we discourage their use unless there is a good reason.", a rather strong statement, so I thought the same would apply for MacOSX.