Can not compile on 64 bit ubuntu

341 views
Skip to first unread message

jadu...@gmail.com

unread,
May 17, 2012, 5:08:02 PM5/17/12
to harbou...@googlegroups.com
I could not compile my code on ubuntu 12.4 (64 bits)
I could compile the same code on ubuntu 10.4 (32 bits).
So I downloaded the hello world "http://www.harbour-project.org/samples/hello.prg.html "and tried to compile that still unsuccessful
Kindly suggest
Here are the errors
MyUserName@MySystemName:~/Programming/AddressBook$ hbmk2 '/home/MyUserName/Programming/AddressBook/hello.prg'
Harbour 3.0.0 (Rev. 16951)
Copyright (c) 1999-2011, http://harbour-project.org/
Compiling '/home/MyUserName/Programming/AddressBook/hello.prg'...
Lines 9, Functions/Procedures 1
Generating C source output to '/tmp/hbmk_z2xv5o.dir/hello.c'... Done.
/usr/bin/ld: skipping incompatible /usr/lib/harbour/libhbcplr.a when searching for -lhbcplr
/usr/bin/ld: cannot find -lhbcplr
/usr/bin/ld: skipping incompatible /usr/lib/harbour/libhbdebug.a when searching for -lhbdebug
/usr/bin/ld: cannot find -lhbdebug
/usr/bin/ld: skipping incompatible /usr/lib/harbour/libharbour.so when searching for -lharbour
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/libharbour.so when searching for -lharbour
/usr/bin/ld: skipping incompatible /usr/lib/../lib/libharbour.so when searching for -lharbour
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../libharbour.so when searching for -lharbour
/usr/bin/ld: skipping incompatible /usr/lib/libharbour.so when searching for -lharbour
/usr/bin/ld: cannot find -lharbour
collect2: ld returned 1 exit status
hbmk2: Error: Running linker. 1
gcc '/tmp/hbmk_z2xv5o.dir/hello.o' '/tmp/hbmk_z2xv5o.dir/hbmk_ngdvgj.o'   -Wl,--start-group -lhbcplr -lhbdebug -lharbour   -Wl,--end-group -ohello -L/usr/lib/harbour

UbuntuUser

unread,
May 31, 2012, 10:42:11 PM5/31/12
to harbou...@googlegroups.com
I tried to compile harbour from source
It didn't work thOugh i already had a harbour (perhaps 32 bits) installed from the deb.
[1]
Can anyone tell how to uninstall harbour so that I can compile afresh and test if it solves the problem
[2]
or maYbe make a hbc file so that i compile into 32 bits at least i shall have WORKING CODE

Massimo Belgrano

unread,
Jun 1, 2012, 6:05:49 AM6/1/12
to harbou...@googlegroups.com
Made a very very very clean script and read install doc
if you have same  extra setting  i suggest remove

mkdir $HOME/src
cd $HOME/src
svn co https://harbour-project.svn.sourceforge.net/svnroot/harbour-project/trunk/harbour harbour 
cd $HOME/src/harbour 
make clean 
make  
make instal

read changelog
2011-04-13 03:13 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
 * utils/hbmk2/hbmk2.prg
   + Added TOFIX. There is a build error caused by gpm, when
     trying to build 64-bit Harbour on a 32-bit Ubuntu (10.10)
     Linux. gpm lib is not available in 64-bit form, but
     32-bit hbmk2 is built flagged with HB_HAS_GPM, so when
     run it will want to include gpm also for 64-bit target.
     I'm not sure what is the solution for this. Ideally
     hbmk2 should dynamically decide if gpm is really required
     for a given target. It could f.e. look into gttrm lib
     to check for this.
     [ though maybe this build scenario is just too awkward
     for any sane purpose, even more so because X11 is also
     not available in 64-bit form, limiting its use even more.
     Probably it's more realistic goal to cross-build 32-bit
     targets on a 64-bit host. ]



2012/6/1 UbuntuUser <jadu...@gmail.com>
--
You received this message because you are subscribed to the Google
Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: http://groups.google.com/group/harbour-users



--
Massimo Belgrano

Claudia Neumann

unread,
Jun 1, 2012, 7:12:26 AM6/1/12
to harbou...@googlegroups.com, UbuntuUser
Hi UbuntuUser,

Am Freitag Juni 1 2012 schrieb UbuntuUser:
> I tried to compile harbour from source
> It didn't work thOugh i already had a harbour (perhaps 32 bits) installed
> from the deb.

Uninstall harbour*.deb with
sudo dpkg -P harbour
that should kill all files installed from debian package.

> [1]
> Can anyone tell how to uninstall harbour so that I can compile afresh and
> test if it solves the problem

What source do you use. Have you downloaded from SVN? Read INSTALL.

> [2]
> or maYbe make a hbc file so that i compile into 32 bits at least i shall
> have WORKING CODE

I just compilee Harbour 3.1.0dev (Rev. 17335) from SVN on Ubuntu 12.04. No
problem. You have to check for the dependancies.

Best regards

Claudia
Reply all
Reply to author
Forward
0 new messages