Author Topic: I can help with C::B with cross platforms.  (Read 15583 times)

Offline Paco.Blasco

  • Multiple posting newcomer
  • *
  • Posts: 30
Re: I can help with C::B with cross platforms.
« Reply #15 on: August 04, 2006, 04:36:07 pm »
Nope.
I have the same error using the wiki fro Mac (on IntelMac Tiger).
I'm going to investigate that problem. It is very strange.

See!

Offline Paco.Blasco

  • Multiple posting newcomer
  • *
  • Posts: 30
Re: I can help with C::B with cross platforms.
« Reply #16 on: August 04, 2006, 05:14:56 pm »
Hi All:

The problem I have to generate C::B at OSX is related with libraries:
Compilation fails when it tries to link the library libcodeblocks.la . The problem is with the libaries created in the directory src/sdk/scripting.
I launched the linking command line in a shell, and I was removing that libraries from the command line...as result was a library (not right, I know), but the compiler finished the linking process.
I'm not an expert on MAC OS X (I'm learning now), any idea????

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2150
Re: I can help with C::B with cross platforms.
« Reply #17 on: August 04, 2006, 07:26:17 pm »
Hi All:

The problem I have to generate C::B at OSX is related with libraries:
Compilation fails when it tries to link the library libcodeblocks.la . The problem is with the libaries created in the directory src/sdk/scripting.
I launched the linking command line in a shell, and I was removing that libraries from the command line...as result was a library (not right, I know), but the compiler finished the linking process.
I'm not an expert on MAC OS X (I'm learning now), any idea????

Code: [Select]
ld: multiple definitions of symbol ___divdi3
/usr/lib/gcc/i686-apple-darwin8/4.0.1/libgcc.a(_divdi3.o) private external definition of ___divdi3 in section (__TEXT,__text)
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libgcc_s.10.4.dylib(_divdi3_s.o) definition of ___divdi3

The linker error look ligit to me. You've include both the static and the dynamic libgcc. Each will have a copy of the symbols.

When linking the CodeBlocks lib, you need the dynamic libraries.

When linking the executable, you need the static library.

But not both at the same time and not in the same link step.


Offline Paco.Blasco

  • Multiple posting newcomer
  • *
  • Posts: 30
Re: I can help with C::B with cross platforms.
« Reply #18 on: August 07, 2006, 11:12:06 pm »
I compiled CodeBlocks at least on OSX with IntelMac with:
./configure --enable-static --disable-shared

I finished the compilation    :D :D :D :D, I've created a bundle app  :o and....
It appears as it don't load any plugin (I suppose it can be the right behaviour due to --disable-shared....)  :x :x :x :x :x
But plugins don't compile with other options.

Any idea????

Thx.

Offline Paco.Blasco

  • Multiple posting newcomer
  • *
  • Posts: 30
Re: I can help with C::B with cross platforms.
« Reply #19 on: August 08, 2006, 09:54:26 am »
Finished!!!!!!
I have now a working copy of C::B on OSX 10.4.7 Intel (MacBookPro)
To get this I did a modifications to the Makefiles of the plugins, if not, a linker error occurs.
Now, I'm going to use as a tool for multi-os development (same workspace compiling same projects in different OS).


Offline Paco.Blasco

  • Multiple posting newcomer
  • *
  • Posts: 30
[SOLVED] Re: I can help with C::B with cross platforms.
« Reply #20 on: August 08, 2006, 09:55:42 am »
Solved.