News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Linux HLA doesn't recognise hlalib.a ?

Started by TmX, November 22, 2007, 04:23:22 AM

Previous topic - Next topic

TmX

It seems that the HLA compiler is a bit "Windows oriented"
I'm using Ubuntu Gusy, BTW.

Quote
ERROR! Could not locate the HLALIB.LIB file.
Have you set the HLALIB environment variable properly?

Isn't that a Windows thing ?  :eek  :green
So I added this line to my .bashrc :
Quote
set HLALIB=/usr/hla/hlalib/hlalib.a

Whoa that didn't work.
So I use this :
Quote
hla -lib:/usr/hlalib/hlalib.a somecode.hla

And that works.
Don't mean to complain, but sometimes typing too much can be quite annoying  :green

Evenbit

Looks like the best approach on Linux is to download the source for HLA, make neccessary corrections, then build this modified HLA.


DarkWolf

You need to add something like this to your .bashrc file :


# Added for HLA support
export hlalib=/home/user/HLA/hlalib/hlalib.a
export hlainc=/home/user/HLA/include


Using of course whatever is your path to hla.
And then be sure to run source .bashrc
HLA docs say to keep the variable and export command on seperate lines but I found that not to work and having them on both lines does, try either one.
--
Where's there's smoke, There are mirrors.
Give me Free as in Freedom not Speech or Beer.
Thank You and Welcome to the Internet.

TmX

Yeah I've tried to create environment variable, but that doesn't work either.
BTW, take a look at the source code.
Change strcpy( hlalibPath, "/usr/hla/hlalib/hlalib.lib" ); to strcpy( hlalibPath, "/usr/hla/hlalib/hlalib.a" );

Works for me  :cheekygreen:

DarkWolf

Yeah I saw your Tim, and it didn't look like the right way to export the variable (not on any linux distro I have seen at least), that why I thought maybe you had it wrong.

I wonder if the path in the source code is there for default setup and for some reason on your system it is not being overridden with the enviroment variable.
--
Where's there's smoke, There are mirrors.
Give me Free as in Freedom not Speech or Beer.
Thank You and Welcome to the Internet.

Randall Hyde

Quote from: TmX on November 22, 2007, 04:23:22 AM
It seems that the HLA compiler is a bit "Windows oriented"
I'm using Ubuntu Gusy, BTW.

This problem has been fixed in HLA v1.100, btw.
Cheers,
Randy Hyde


sirEgghead

I know this is an old threat to be posting on, however I am having the same trouble and I am running HLA 1.104 on a fedora 13 system.  I have triple checked that my environment variables are set properly.  I have even tried pointing HLA to the library by hand with the -lib flag without success.  Below is a post of what I see.

[myuser@mycomputer AoA_projects]$ hla -v hw
ERROR! Could not locate the hlalib.a file.
Have you set the 'hlalib' environment variable properly?
[myuser@mycomputer AoA_projects]$ hla -lib=/home/myuser/hla/hlalib/hlalib.a -v hw
ERROR! Could not locate the hlalib.a file.
Have you set the 'hlalib' environment variable properly?
[myuser@mycomputer AoA_projects]$ echo $hlalib
/home/myuser/hla/hlalib/hlalib.a
[myuser@mycomputer AoA_projects]$ echo $HLALIB
/home/myuser/hla/hlalib/hlalib.a
[myuser@mycomputer AoA_projects]$ ls /home/myuser/hla/hlalib
hlalib.a  hlalib_safe.a
[myuser@mycomputer AoA_projects]$


So yeah...As you can see, it's not cooperating with me even though I am certain that the path IS set and that it is set CORRECTLY.   :(  I just don't know.  I'm hoping someone can point me in the right direction here.


Thanks!

Thomas

sirEgghead

Well, it worked after I moved HLA to /usr/hla.  I didn't want to, but oh well.  I saw the path in hla.c.  I may recompile it one day to point it to where I want it.  Why isn't the environment variable working properly though?

Sevag.K

probably a version issue.  in the old days, the hlalib environment had to point to hlalib.a file, but with the newer versions (perhaps hla 2.xx + ) it has to point to the hlalib folder.

in your case, this looks like it's

/home/myuser/hla/hlalib

the reason it's working with hla in the hla folder is because hla looks for hlalib.a in <process path>/hlalib if it can't find it on the hlalib path.



Smartnow

I have in

/etc/bash/bashrc

# Environment Variables that HLA, High Level Assembly needs during Compilation                                                             
export hlainc=/usr/hla/include                                 
export hlalib=/usr/hla/hlalib

Works very good for all users is this.  :bg