LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-15-2010, 11:05 PM   #1
shitou
LQ Newbie
 
Registered: Mar 2010
Posts: 9

Rep: Reputation: 0
Smile how to solve the problem :the GCC4.4 is not compatible with the boost.signals1.34.1


When I configure the VMware-open-source-view-client using the command “configure --host=sh4-linux CC=sh4-linux-gcc CXX=sh4-linux-g++ “ to configure the VMware-open-source-view-client which is proper running on the ARM architecture.(sh4-linux is a platform in ST).

configure:10578: result: no

configure:10518: checking for exit in -lboost_signals-mt

configure:10578: result: no

configure:10518: checking for exit in -lboost_signals-mt

configure:10578: result: no

configure:10518: checking for exit in -lboost_signals

configure:10553: sh4-linux-gcc -o conftest -g -O2 -DBUILT_BY_root -I/usr/include -L/usr/lib conftest.c -lboost_signals >&5

conftest.c:52: warning: conflicting types for built-in function 'exit'

/opt/STM/STLinux-2.3/devkit/sh4/lib/gcc/sh4-linux/4.2.4/../../../../sh4-linux/bin/ld: skipping incompatible /usr/lib/libboost_signals.so when searching for - lboost_signals

/opt/STM/STLinux-2.3/devkit/sh4/lib/gcc/sh4-linux/4.2.4/../../../../sh4-linux/bin/ld: cann4ot find -lboost_signals

I have the boost.signals1.34.1(C++ RUNTIME) source code ,I don't known how to configure,make and make install to generate proper dynamic libraries for the platform.

stone.li@st.com

collect2: ld returned 1 exit statud
 
Old 09-16-2010, 02:06 AM   #2
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: Fedora,RedHat,CentOS,Gentoo
Posts: 1,145
Blog Entries: 4

Rep: Reputation: 147Reputation: 147
This links will be usefull for you

http://www.linuxtutorialblog.com/pos...stall-tutorial
 
1 members found this post helpful.
Old 09-16-2010, 05:23 AM   #3
shitou
LQ Newbie
 
Registered: Mar 2010
Posts: 9

Original Poster
Rep: Reputation: 0
thanks.
 
Old 09-16-2010, 09:04 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.4 + 50+ other Linux OS, for test only.
Posts: 16,755

Rep: Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329
... And libboost* + all other dependencies must be compiled
for sh4 beforehand. Nothing in /usr/lib/ can be used.

Example : cd boost_<version>/ && ./ configure --prefix=/opt////

And when you compile for sh4 :
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/your/library/directory"
(to hopefully avoid anything from /usr/lib/ being picked up.)
Ref. the link from @prayag_pjs, post #2.
......
 
1 members found this post helpful.
Old 09-20-2010, 05:34 AM   #5
shitou
LQ Newbie
 
Registered: Mar 2010
Posts: 9

Original Poster
Rep: Reputation: 0
yes,it is very useful! Thanks a lot
 
Old 09-20-2010, 05:47 AM   #6
shitou
LQ Newbie
 
Registered: Mar 2010
Posts: 9

Original Poster
Rep: Reputation: 0
it is very useful.Thanks a lot
 
Old 09-20-2010, 06:30 AM   #7
shitou
LQ Newbie
 
Registered: Mar 2010
Posts: 9

Original Poster
Rep: Reputation: 0
confihure, errors

My environment variable are:

export PATH=(已设好交叉编译命令目录)

export LD_LIBRARY_PATH=(已设好库目录)

Now I use ./configure --host=sh4-linux CC=sh4-linux-gcc CXX=sh4-linux-g++ to check the enviromrnt ,there are errors in the following.

[root@lilei VMware-view-open-client-source-4.0.1-235010]# ./configure --host=sh4-linux CC=sh4-linux-gcc CXX=sh4-linux-g++
./configure: line 46: /opt/STM/STLinux-2.3/devkit/sh4/target/bin/chmod: cannot execute binary file
./configure: line 52: /opt/STM/STLinux-2.3/devkit/sh4/target/bin/rm: cannot execute binary file
./configure: line 165: /opt/STM/STLinux-2.3/devkit/sh4/target/bin/sed: cannot execute binary file
./configure: line 46: /opt/STM/STLinux-2.3/devkit/sh4/target/bin/chmod: cannot execute binary file
./configure: line 52: /opt/STM/STLinux-2.3/devkit/sh4/target/bin/rm: cannot execute binary file
./configure: line 165: /opt/STM/STLinux-2.3/devkit/sh4/target/bin/sed: cannot execute binary file
./configure: line 428: /opt/STM/STLinux-2.3/devkit/sh4/target/usr/bin/expr: cannot execute binary file
./configure: line 440: /opt/STM/STLinux-2.3/devkit/sh4/target/bin/sed: cannot execute binary file
./configure: line 454: /opt/STM/STLinux-2.3/devkit/sh4/target/bin/sed: cannot execute binary file
: error: cannot create .lineno; rerun with a POSIX shell
 
Old 09-20-2010, 09:35 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.4 + 50+ other Linux OS, for test only.
Posts: 16,755

Rep: Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329
When you do e.g. './configure', the commands from your x86 Linux OS
can be used. Your x86 OS cannot understand "sh4 Linux" commands.
"sh4 Linux" commands are to be used only on the sh4 board.

So the command 'export PATH=(已设好交叉编译命令目录)' is to be omitted.

Only "sh4 libraries" are to be included.
Like 'export LD_LIBRARY_PATH=/opt/STM/STLinux-2.3/devkit/sh4/lib
.. or wherever you keep the "sh4 libraries".
..
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
boost lib problem biocc Linux - Newbie 8 09-17-2010 08:52 AM
Problem with boost regex - can't compile easiest examples lodziarz Programming 3 02-28-2008 05:15 PM
RH9.3 install gcc4.2.2 ,libstdc++.so.6 problem bangqian.chen Linux - Software 4 12-11-2007 09:44 PM
g++ and boost problem mixx Programming 1 07-20-2005 01:53 PM
Who can help me to solve this problem? Annie0716 Programming 2 08-09-2004 08:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration