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: Installation, Compiling and Running of theide » theide do not run under ubuntu 5.10
theide do not run under ubuntu 5.10 [message #3335] Sat, 20 May 2006 21:22 Go to next message
forlano is currently offline  forlano
Messages: 1071
Registered: March 2006
Location: Italy
Experienced Contributor
I've removed my "old" fedora2 and installed the new Ubuntu 5.10. Then I downloaded u++ 605 but theide do not run (unzipped in /home/vega ) . The message was
./theide: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory

If I run locate libstdc++ I get
/usr/share/doc/gcc-4.0-base/C++/README.libstdc++-baseline
/usr/share/doc/gcc-4.0-base/C++/libstdc++_symbols.txt
/usr/share/doc/gcc-4.0-base/C++/changelog.libstdc++.gz
/usr/share/doc/libstdc++6
/usr/share/doc/libstdc++6/README.Debian
/usr/share/doc/libstdc++6/copyright
/usr/share/doc/libstdc++6/changelog.Debian.gz
/usr/share/doc/libstdc++6-4.0-dev
/usr/lib/libstdc++.so.6.0.5
/usr/lib/libstdc++.so.6
/usr/lib/gcc/i486-linux-gnu/4.0.2/64/libstdc++.so
/usr/lib/gcc/i486-linux-gnu/4.0.2/64/libstdc++.a
/usr/lib/gcc/i486-linux-gnu/4.0.2/libstdc++.a
/usr/lib/gcc/i486-linux-gnu/4.0.2/libstdc++.so
/windows/Dev-Cpp/lib/libstdc++.a
/windows/Dev-Cpp/lib/libstdc++.la
/var/lib/dpkg/info/libstdc++6.shlibs
/var/lib/dpkg/info/libstdc++6.list
/var/lib/dpkg/info/libstdc++6.postinst
/var/lib/dpkg/info/libstdc++6.postrm
/var/lib/dpkg/info/libstdc++6.md5sums
/var/lib/dpkg/info/libstdc++6-4.0-dev.preinst
/var/lib/dpkg/info/libstdc++6-4.0-dev.list

Then I tried to compile theide. In its directory I run "make" and I see:
root@ubuntu:/home/vega/upp-linux386-605/upp/uppsrc/ide# make
mkdir -p /home/cxl/upp/out/ide/GCC32-Gcc-Gui-Linux-Main-Shared/
mkdir -p /home/cxl/upp/out/ide/GCC32-Gcc-Gui-Linux-Main-Shared/
mkdir -p /home/cxl/upp/out/ide/Common/GCC32-Gcc-Gui-Linux-Shared/
mkdir -p /home/cxl/upp/out/ide/LayDes/GCC32-Gcc-Gui-Linux-Shared/
mkdir -p /home/cxl/upp/out/ide/IconDes/GCC32-Gcc-Gui-Linux-Shared/
mkdir -p /home/cxl/upp/out/ide/Builders/GCC32-Gcc-Gui-Linux-Shared/
mkdir -p /home/cxl/upp/out/ide/Debuggers/GCC32-Gcc-Gui-Linux-Shared/
mkdir -p /home/cxl/upp/out/ide/Browser/GCC32-Gcc-Gui-Linux-Shared/
mkdir -p /home/cxl/upp/out/ide/Topic/GCC32-Gcc-Gui-Linux-Shared/
mkdir -p /home/cxl/upp/out/ide/VectorDes/GCC32-Gcc-Gui-Linux-Shared/
mkdir -p /home/cxl/upp/out/CodeEditor/GCC32-Gcc-Gui-Linux-Shared/
mkdir -p /home/cxl/upp/out/Topic/GCC32-Gcc-Gui-Linux-Shared/
mkdir -p /home/cxl/upp/out/CtrlLib/GCC32-Gcc-Gui-Linux-Shared/
mkdir -p /home/cxl/upp/out/Web/GCC32-Gcc-Gui-Linux-Shared/
mkdir -p /home/cxl/upp/out/plugin/bz2/GCC32-Gcc-Gui-Linux-Shared/
mkdir -p /home/cxl/upp/out/HexView/GCC32-Gcc-Gui-Linux-Shared/
mkdir -p /home/cxl/upp/out/Esc/GCC32-Gcc-Gui-Linux-Shared/
mkdir -p /home/cxl/upp/out/Core/GCC32-Gcc-Gui-Linux-Shared/
mkdir -p /home/cxl/upp/out/RichEdit/GCC32-Gcc-Gui-Linux-Shared/
mkdir -p /home/cxl/upp/out/plugin/png/GCC32-Gcc-Gui-Linux-Shared/
mkdir -p /home/cxl/upp/out/plugin/gif/GCC32-Gcc-Gui-Linux-Shared/
mkdir -p /home/cxl/upp/out/Image/GCC32-Gcc-Gui-Linux-Shared/
mkdir -p /home/cxl/upp/out/plugin/tif/GCC32-Gcc-Gui-Linux-Shared/
mkdir -p /home/cxl/upp/out/plugin/jpg/GCC32-Gcc-Gui-Linux-Shared/
mkdir -p /home/cxl/upp/out/Draw/GCC32-Gcc-Gui-Linux-Shared/
mkdir -p /home/cxl/upp/out/plugin/z/GCC32-Gcc-Gui-Linux-Shared/
mkdir -p /home/cxl/upp/out/coff/binobj/GCC32-Gcc-Gui-Linux-Shared/
mkdir -p /home/cxl/upp/out/coff/GCC32-Gcc-Gui-Linux-Shared/
mkdir -p /home/cxl/upp/out/plugin/ndisasm/GCC32-Gcc-Gui-Linux-Shared/
mkdir -p /home/cxl/upp/out/CppBase/GCC32-Gcc-Gui-Linux-Shared/
mkdir -p /home/cxl/upp/out/VectorDes/GCC32-Gcc-Gui-Linux-Shared/
mkdir -p /home/cxl/upp/out/RichText/GCC32-Gcc-Gui-Linux-Shared/
mkdir -p /home/cxl/upp/out/CtrlCore/GCC32-Gcc-Gui-Linux-Shared/
mkdir -p /home/cxl/upp/out/PdfDraw/GCC32-Gcc-Gui-Linux-Shared/
make: *** No rule to make target `/src/uppsrc/ide/SelectPkg.cpp', needed by `/home/cxl/upp/out/ide/GCC32-Gcc-Gui-Linux-Main-Shared/SelectPkg.o'.  Stop.

What is it happening?... today it isn't my luchy day Smile

Luigi
Re: theide do not run under ubuntu 5.10 [message #3336 is a reply to message #3335] Sat, 20 May 2006 21:37 Go to previous messageGo to next message
unodgs is currently offline  unodgs
Messages: 1354
Registered: November 2005
Location: Poland
Senior Contributor

forlano wrote on Sat, 20 May 2006 15:22

I've removed my "old" fedora2 and installed the new Ubuntu 5.10. Then I downloaded u++ 605 but theide do not run (unzipped in /home/vega ) . The message was
./theide: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory



Try to make symbolic link to libstdc++/so which name is libstcc++.so.5
Re: theide do not run under ubuntu 5.10 [message #3337 is a reply to message #3336] Sat, 20 May 2006 22:12 Go to previous messageGo to next message
forlano is currently offline  forlano
Messages: 1071
Registered: March 2006
Location: Italy
Experienced Contributor
unodgs wrote on Sat, 20 May 2006 21:37


Try to make symbolic link to libstdc++/so which name is libstcc++.so.5


Thanks for the reply,
After (maybe I did a mistake)

ln -s libstdc++.so.6 libstdc++.so.5

I got

vega@ubuntu:~/upp-linux386-605$ ./theide
./theide: /usr/lib/libstdc++.so.5: version `GLIBCPP_3.2' not found (required by ./theide)
./theide: /usr/lib/libstdc++.so.5: version `CXXABI_1.2' not found (required by ./theide)

Any other idea?
Luigi
Re: theide do not run under ubuntu 5.10 [message #3338 is a reply to message #3337] Sat, 20 May 2006 23:13 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 12050
Registered: November 2005
Ultimate Member
forlano wrote on Sat, 20 May 2006 16:12

unodgs wrote on Sat, 20 May 2006 21:37


Try to make symbolic link to libstdc++/so which name is libstcc++.so.5


Thanks for the reply,
After (maybe I did a mistake)

ln -s libstdc++.so.6 libstdc++.so.5

I got

vega@ubuntu:~/upp-linux386-605$ ./theide
./theide: /usr/lib/libstdc++.so.5: version `GLIBCPP_3.2' not found (required by ./theide)
./theide: /usr/lib/libstdc++.so.5: version `CXXABI_1.2' not found (required by ./theide)

Any other idea?
Luigi



Well, ubuntu is what I am currently using for Linux development Smile

Anyway, seems like you are using 64-bit version (unlike me). I guess that makes the difference...

Mirek
Re: theide do not run under ubuntu 5.10 [message #3341 is a reply to message #3338] Sat, 20 May 2006 23:36 Go to previous messageGo to next message
forlano is currently offline  forlano
Messages: 1071
Registered: March 2006
Location: Italy
Experienced Contributor
[quote title=luzr wrote on Sat, 20 May 2006 23:13]
Well, ubuntu is what I am currently using for Linux development Smile
[/code]
I choose Ubuntu just for this reason Smile , to be sinchronised with you.
Quote:


Anyway, seems like you are using 64-bit version (unlike me). I guess that makes the difference...

Mirek


Shocked ... and how finished this 64 bit version on my PC? Are you sure about it? I remind to have downloaded the 32 bit version. Now i must find some command that can show which version (32/64 bit) I have.

Luigi
Re: theide do not run under ubuntu 5.10 [message #3344 is a reply to message #3341] Sun, 21 May 2006 07:56 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 12050
Registered: November 2005
Ultimate Member
Actually, I might be wrong, but

/usr/lib/gcc/i486-linux-gnu/4.0.2/64/libstdc++.a

"64" made me think so...

Anyway, try to install GCC 3.4, I believe that will bring the so.5 library in...

Mirek
Re: theide do not run under ubuntu 5.10 [message #3351 is a reply to message #3337] Sun, 21 May 2006 12:41 Go to previous messageGo to next message
guido is currently offline  guido
Messages: 169
Registered: April 2006
Experienced Member
No no, remove that symlink - they didn't increase the so-name for fun. Instead do:

apt-get install libstdc++5

At least that's the name of the package on Debian Sid.

To Mirek:
Better to link against static libstdc++ on linux I think.

Guido
Re: theide do not run under ubuntu 5.10 [message #3352 is a reply to message #3351] Sun, 21 May 2006 13:26 Go to previous messageGo to next message
forlano is currently offline  forlano
Messages: 1071
Registered: March 2006
Location: Italy
Experienced Contributor
guido wrote on Sun, 21 May 2006 12:41

No no, remove that symlink - they didn't increase the so-name for fun. Instead do:

apt-get install libstdc++5

At least that's the name of the package on Debian Sid.

To Mirek:
Better to link against static libstdc++ on linux I think.

Guido


Thanks,

I've installed g++3.4 and perhaps libstdc++5 with synaptic (I do not remind what I did exactly because it didn't work at the first step). At the end theIDE worked. Then after the message "upp not found" I moved the content of the upp distribution under /usr/local/bin . So theIDE now is inside /usr/local/bin with ./upp.
I tried to compile the HelloWorld and theide starts to complain some thing about library and static. So I tried to turn the build method to "shared library" and it works.
I tried even the animated hello world and I have observed a beautiful animation that hypnotized me for a while.
Perhaps the problem were due to the default setting of ubuntu that do not met the requests of U++.

Luigi
Re: theide do not run under ubuntu 5.10 [message #3354 is a reply to message #3351] Sun, 21 May 2006 14:14 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 12050
Registered: November 2005
Ultimate Member
guido wrote on Sun, 21 May 2006 06:41

No no, remove that symlink - they didn't increase the so-name for fun. Instead do:

apt-get install libstdc++5

At least that's the name of the package on Debian Sid.

To Mirek:
Better to link against static libstdc++ on linux I think.

Guido


Well, if only that would be possible... xft is unfortunately shipped only as .so.

Moreover, it adds good 2MB of X11 static.

Frankly, I am quite puzzled that it did not work with ubuntu 5.10 - it did with 5.10 mine as well as with any recent distro... (sure, stdlibc++.so.5 makes the difference - but it tends to be present).

Mirek
Re: theide do not run under ubuntu 5.10 [message #3359 is a reply to message #3354] Sun, 21 May 2006 18:40 Go to previous messageGo to next message
guido is currently offline  guido
Messages: 169
Registered: April 2006
Experienced Member
Sorry, don't know what you mean with your reference to xft and X11.
Wether linking to libstdc++.so or libstc++.a has no bearing on xft or any other X11 library, as all of them are plain C.

Guido
Re: theide do not run under ubuntu 5.10 [message #3360 is a reply to message #3359] Sun, 21 May 2006 18:49 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 12050
Registered: November 2005
Ultimate Member
guido wrote on Sun, 21 May 2006 12:40

Sorry, don't know what you mean with your reference to xft and X11.
Wether linking to libstdc++.so or libstc++.a has no bearing on xft or any other X11 library, as all of them are plain C.

Guido


Well, I am not quite sure whether I was not doing something bad, however last time I have tried, .so issue was "all or nothing" - either every external libraries had to be linked shared or static, mixing impossible...

Mirek
Re: theide do not run under ubuntu 5.10 [message #3361 is a reply to message #3360] Sun, 21 May 2006 22:00 Go to previous messageGo to next message
guido is currently offline  guido
Messages: 169
Registered: April 2006
Experienced Member
luzr wrote on Sun, 21 May 2006 18:49

guido wrote on Sun, 21 May 2006 12:40

Sorry, don't know what you mean with your reference to xft and X11.
Wether linking to libstdc++.so or libstc++.a has no bearing on xft or any other X11 library, as all of them are plain C.

Guido


Well, I am not quite sure whether I was not doing something bad, however last time I have tried, .so issue was "all or nothing" - either every external libraries had to be linked shared or static, mixing impossible...

Mirek



That might be a problem or limitation of the upp build system.
Technically you can pretty much do any mix of shared and static libs thinkable.

Guido
Re: theide do not run under ubuntu 5.10 [message #3363 is a reply to message #3361] Sun, 21 May 2006 22:30 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 12050
Registered: November 2005
Ultimate Member
guido wrote on Sun, 21 May 2006 16:00

luzr wrote on Sun, 21 May 2006 18:49

guido wrote on Sun, 21 May 2006 12:40

Sorry, don't know what you mean with your reference to xft and X11.
Wether linking to libstdc++.so or libstc++.a has no bearing on xft or any other X11 library, as all of them are plain C.

Guido


Well, I am not quite sure whether I was not doing something bad, however last time I have tried, .so issue was "all or nothing" - either every external libraries had to be linked shared or static, mixing impossible...

Mirek



That might be a problem or limitation of the upp build system.
Technically you can pretty much do any mix of shared and static libs thinkable.

Guido



Well, maybe it is the time to check again Wink (But if I remember well, at the time I have removed all limitations of upp build system in this area).

However, while I am not quite experienced in linux linking, I am a little bit afraid about what happens when you mix say glibc.a.2 malloc (e.g. in X11 lib) with glibc.so.3 malloc in Xft ?

Mirek
Re: theide do not run under ubuntu 5.10 [message #3364 is a reply to message #3363] Sun, 21 May 2006 23:05 Go to previous messageGo to next message
guido is currently offline  guido
Messages: 169
Registered: April 2006
Experienced Member
[quote title=luzr wrote on Sun, 21 May 2006 22:30][quote

However, while I am not quite experienced in linux linking, I am a little bit afraid about what happens when you mix say glibc.a.2 malloc (e.g. in X11 lib) with glibc.so.3 malloc in Xft ?

Mirek
[/quote]


Not getting what your are getting at.
All I'm suggesting is for you to consider to link theide against a static libstdc++, so that upon "ldd theide" the fifth line below would disappear, while the rest remained the same:

libpthread.so.0 => /lib/tls/libpthread.so.0 (0xa7fcb000)
libdl.so.2 => /lib/tls/libdl.so.2 (0xa7fc7000)
libX11.so.6 => /usr/lib/libX11.so.6 (0xa7eff000)
libXft.so.2 => /usr/lib/libXft.so.2 (0xa7eec000)
libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0xa7e32000)
libm.so.6 => /lib/tls/libm.so.6 (0xa7e0b000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xa7e00000)
libc.so.6 => /lib/tls/libc.so.6 (0xa7cc8000)
libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xa7c99000)
/lib/ld-linux.so.2 (0xa7fe8000)
libXau.so.6 => /usr/lib/libXau.so.6 (0xa7c96000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xa7c91000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xa7c23000)
libz.so.1 => /usr/lib/libz.so.1 (0xa7c0f000)
libXrender.so.1 => /usr/lib/libXrender.so.1 (0xa7c07000)
libexpat.so.1 => /usr/lib/libexpat.so.1 (0xa7be7000)

Why do you think that has anything to to with glibc?

Guido
Re: theide do not run under ubuntu 5.10 [message #3365 is a reply to message #3364] Sun, 21 May 2006 23:11 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 12050
Registered: November 2005
Ultimate Member
guido wrote on Sun, 21 May 2006 17:05


Why do you think that has anything to to with glibc?
Guido


Because stdlibc++ has to use glibc (new -> malloc etc..). I am not sure what will happen if I link static stdlibc++ v.5 with shared glibc v.6.

Moreover, there even is no swictch in GCC to do so - you can link with either static or dynamic standard library - and that covers both stdlibc++ and glibc.

Disclaimer: I really do know only a little about these affairs...
Means, please come on and start explaining Wink

Mirek
Re: theide do not run under ubuntu 5.10 [message #3377 is a reply to message #3365] Mon, 22 May 2006 14:58 Go to previous messageGo to next message
guido is currently offline  guido
Messages: 169
Registered: April 2006
Experienced Member
luzr wrote on Sun, 21 May 2006 23:11

guido wrote on Sun, 21 May 2006 17:05


Why do you think that has anything to to with glibc?
Guido


Because stdlibc++ has to use glibc (new -> malloc etc..). I am not sure what will happen if I link static stdlibc++ v.5 with shared glibc v.6.

Moreover, there even is no swictch in GCC to do so - you can link with either static or dynamic standard library - and that covers both stdlibc++ and glibc.

Disclaimer: I really do know only a little about these affairs...
Means, please come on and start explaining Wink

Mirek


-Wl,-Bstatic -lstdc++ -> links against libstdc++.a
-Wl,-Bdynamic -lstdc++

This way you can switch between static and shared libs on a case by case basis. Note, that this linker option would be used for all libs that follow, so don't forget to switch back with -Wl,-Bdynamic

That glibc and libstdc++ are currently at soname 6 is incidental.
It doesn't imply any intrinsic relation. Mix and match at will!

Btw., the LSB 3.1 (Linux Standard Base), specifies libstdc++.so.6 for LSB compliant apps to link against.
Re: theide do not run under ubuntu 5.10 [message #3379 is a reply to message #3365] Mon, 22 May 2006 15:12 Go to previous messageGo to next message
guido is currently offline  guido
Messages: 169
Registered: April 2006
Experienced Member
Please read this blog and the comments:
http://www.trilithium.com/johan/2005/06/static-libstdc/

Maybe what I wrote in my previous post doesn't work, as libstdc++ is treated special and g++ behaves differently from gcc.
Re: theide do not run under ubuntu 5.10 [message #3386 is a reply to message #3377] Mon, 22 May 2006 22:52 Go to previous message
mirek is currently offline  mirek
Messages: 12050
Registered: November 2005
Ultimate Member
guido wrote on Mon, 22 May 2006 08:58


Btw., the LSB 3.1 (Linux Standard Base), specifies libstdc++.so.6 for LSB compliant apps to link against.


Hm, let us hope will be simply able to build for LSB 3.1 soon....

Mirek
Previous Topic: 605rc2 linux: 'upp' directory not found
Next Topic: upp-b605-dev1 compile error in PDFDraw
Goto Forum:
  


Current Time: Wed Oct 16 18:59:44 CEST 2019

Total time taken to generate the page: 0.01183 seconds