Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » [Solved !] ide Complie Error when complied under options other than "GCC32 Debug"
[Solved !] ide Complie Error when complied under options other than "GCC32 Debug" [message #4862] Wed, 23 August 2006 18:11 Go to next message
3togo is currently offline  3togo
Messages: 83
Registered: May 2006
Location: Hong Kong SAR
Member
I got compile errors below whenever I selected compile option other than "GCC32 Debug".

Any idea?

p.s I have forgotten to say thanks to all the developers. The ide now have a much better font rendering now.

3togo



/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/libX11.a(C onnDis.o): In function `_X11TransConnectDisplay':
(.text+0xa55): undefined reference to `XauDisposeAuth'
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/libX11.a(C onnDis.o): In function `_X11TransConnectDisplay':
(.text+0xea5): undefined reference to `XauGetBestAuthByAddr'
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../lib/libX11.a(C onnDis.o): In function `_X11TransConnectDisplay':
(.text+0x10f3): undefined reference to `XdmcpWrap'
collect2: ld returned 1 exit status
make: *** [/home/jc/upp/out/ide/GCC32-Gcc32-Gui-Linux-Main/ide] Error 1

[Updated on: Wed, 23 August 2006 22:14]

Report message to a moderator

Re: ide Complie Error whem complied under options other than "GCC32 Debug" [message #4864 is a reply to message #4862] Wed, 23 August 2006 19:38 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Frankly, this looks like a problem INSIDE xlib.

I do not even know what Xau is... (but obviously, it is something xlib links in).

Are you sure you are linking against shared libs in release mode?

BTW, please, add your platform info when posting platform related messages (like linux distro, perhaps even gcc version).

Mirek
Re: ide Complie Error whem complied under options other than "GCC32 Debug" [message #4866 is a reply to message #4864] Wed, 23 August 2006 21:08 Go to previous messageGo to next message
3togo is currently offline  3togo
Messages: 83
Registered: May 2006
Location: Hong Kong SAR
Member
I am using Ubuntu(Edgy) - GCC 4.1.2
However, the main point is not on whatever system I am using.
I did compile successfully as long as I am using "GCC Debug" mode.

Pardon me for being lazy to trace your code. Instead, could u mind telling me what is the difference between "GCC Debug" mode & say "GCC Optimal" mode given that "shared library" was selected while compiling under both modes.

3ToGo
Re: ide Complie Error whem complied under options other than "GCC32 Debug" [message #4867 is a reply to message #4866] Wed, 23 August 2006 21:26 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
3togo wrote on Wed, 23 August 2006 15:08

I am using Ubuntu(Edgy) - GCC 4.1.2
However, the main point is not on whatever system I am using.
I did compile successfully as long as I am using "GCC Debug" mode.

Pardon me for being lazy to trace your code. Instead, could u mind telling me what is the difference between "GCC Debug" mode & say "GCC Optimal" mode given that "shared library" was selected while compiling under both modes.

3ToGo


Debug has _DEBUG macro defined (which is then #ifdefed to bring a couple of diagnostic facilities in), has not optimizations (compiler and linker flags) and has debug info active (again compiler and linker flags).

What exactly is causing that linker error is beyond my grasp...

Mirek
Re: ide Complie Error whem complied under options other than "GCC32 Debug" [Solved] [message #4868 is a reply to message #4867] Wed, 23 August 2006 21:34 Go to previous messageGo to next message
3togo is currently offline  3togo
Messages: 83
Registered: May 2006
Location: Hong Kong SAR
Member
By double-clicking "GCC-Debug" inside "theide", I did find out that the link mode for "Release Mode" is "static".

I therefore fixed the errors by adding the line below into ide.upp, recreating Makefile and then running make again.


library(LINUX !XLFD !SHARED) "fontconfig Xrender freetype expat Xau Xdmcp";

3togo

[Updated on: Wed, 23 August 2006 21:43]

Report message to a moderator

Re: ide Complie Error whem complied under options other than "GCC32 Debug" [message #4869 is a reply to message #4868] Wed, 23 August 2006 21:42 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Thats really weird - that would mean that you have compiled in non-shared mode (!SHARED), otherwise this is inactive...

BTW, there are two "leveles" - SHARED and SO. Shared simply puts an option to linker to use shared _external_ libraries, while SO also compiles packages as .so.

Another interesting thing is that I never met distro which would come with static version of libxft.

I am confused....

Mirek
Re: ide Complie Error whem complied under options other than "GCC32 Debug" [message #4870 is a reply to message #4869] Wed, 23 August 2006 21:46 Go to previous messageGo to next message
3togo is currently offline  3togo
Messages: 83
Registered: May 2006
Location: Hong Kong SAR
Member
Actually I am using

libfreetype6-dev - FreeType 2 font engine, development files
instead of libxft-dev

Also for your information, my complied ide(all static-Release version) is located inside the directory "GCC32-Gcc32-Gui-Linux-Main" and it's file size is around 8.5M

> 8503848 2006-08-24 03:22 ide
while my (shared -Debug version ) is inside "GCC32-Blitz-Debug-Debug_full-Gcc32-Gui-Linux-Main-Shared" with size around 6.5M
> 65353267 2006-08-24 03:28 ide

3togo

[Updated on: Wed, 23 August 2006 21:53]

Report message to a moderator

Re: ide Complie Error whem complied under options other than "GCC32 Debug" [message #4871 is a reply to message #4870] Wed, 23 August 2006 21:51 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
8.5MB and directory indicates static link. Shared would have Shared in there (btw, are these really "-" ? Should be ".").

freetype and Xft are different libraries.

In fact, Xft is library that combines XRender with Freetype.

Mirek
Re: ide Complie Error whem complied under options other than "GCC32 Debug" [message #4872 is a reply to message #4871] Wed, 23 August 2006 21:56 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Ok, I am loosing the track Smile

I still believe that original (without patch) dev version should compile & link as shared release without changes you propose (if nothing else, there is still that !SHARED...)

Anyway, it is good to hear that it is possible to compile fully static version now.

Mirek
Re: ide Complie Error whem complied under options other than "GCC32 Debug" [message #4873 is a reply to message #4871] Wed, 23 August 2006 22:02 Go to previous messageGo to next message
3togo is currently offline  3togo
Messages: 83
Registered: May 2006
Location: Hong Kong SAR
Member
I don't know why it simply works. Font rendering is surprisingly good.

3togo


index.php?t=getfile&id=230&private=0

[Updated on: Wed, 23 August 2006 22:10]

Report message to a moderator

Re: ide Complie Error whem complied under options other than "GCC32 Debug" [message #4874 is a reply to message #4873] Wed, 23 August 2006 22:06 Go to previous messageGo to next message
3togo is currently offline  3togo
Messages: 83
Registered: May 2006
Location: Hong Kong SAR
Member
I confirmed that without my suggested modification, your dev version works with both "release+shared lib" & "debug+shared lib" modes.

3togo


Re: ide Complie Error whem complied under options other than "GCC32 Debug" [message #4875 is a reply to message #4874] Wed, 23 August 2006 22:10 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Thanks!

Mirek
Re: ide Complie Error whem complied under options other than "GCC32 Debug" [message #4877 is a reply to message #4875] Wed, 23 August 2006 22:24 Go to previous messageGo to next message
3togo is currently offline  3togo
Messages: 83
Registered: May 2006
Location: Hong Kong SAR
Member
Mirek,

Below is attached for your information.

3togo



jc@jc-desktop:~$ sudo apt-cache depends libxft-dev
libxft-dev
Depends: libxft2
|Depends: libc6-dev
Depends: <libc-dev>
libc6-dev
Depends: libfontconfig1-dev
Depends: libfreetype6-dev
Depends: libx11-dev
Depends: libxrender-dev
|Depends: zlib1g-dev
Depends: <libz-dev>
zlib1g-dev
PreDepends: x11-common
Conflicts: <libxft2-dev>
Conflicts: xlibs-dev
Re: ide Complie Error whem complied under options other than "GCC32 Debug" [message #5008 is a reply to message #4870] Wed, 30 August 2006 18:06 Go to previous messageGo to next message
forlano is currently offline  forlano
Messages: 1185
Registered: March 2006
Location: Italy
Senior Contributor
3togo wrote on Wed, 23 August 2006 21:46

Actually I am using

libfreetype6-dev - FreeType 2 font engine, development files
instead of libxft-dev

Also for your information, my complied ide(all static-Release version) is located inside the directory "GCC32-Gcc32-Gui-Linux-Main" and it's file size is around 8.5M

> 8503848 2006-08-24 03:22 ide
while my (shared -Debug version ) is inside "GCC32-Blitz-Debug-Debug_full-Gcc32-Gui-Linux-Main-Shared" with size around 6.5M
> 65353267 2006-08-24 03:28 ide

3togo


Hi 3togo,

I am very interested in the possibility to compile statically a package under Linux (Ubuntu 5.10) using theIde or a makefile. Please let me ask you if you have tried to compile statically some packages other theide; moreover I would like to know which setting (of the ide or of the makefile) you have used and eventually which libraries.

Thank you very much,
Luigi
Re: ide Complie Error whem complied under options other than "GCC32 Debug" [message #5024 is a reply to message #5008] Thu, 31 August 2006 01:35 Go to previous message
3togo is currently offline  3togo
Messages: 83
Registered: May 2006
Location: Hong Kong SAR
Member
I haven't compiled statically packages other than ide.

For details, u could refer to my Makefiles
http://www.arilect.com/upp/forum/index.php?t=msg&goto=48 88&#msg_4888

Honestly, I have done it accidentally and my current linux distro is Ubuntu (Edgy).

3togo
Previous Topic: problem with makefile (Linux)
Next Topic: Does any one compile successfully on cygwin?
Goto Forum:
  


Current Time: Mon Apr 29 00:49:14 CEST 2024

Total time taken to generate the page: 0.05075 seconds