Is anyone able to execute orxcrypt on a linux system? I'm running 32 bit Fedora.
The error is:
./orxcrypt: error while loading shared libraries: liborxd.so: cannot open shared object file: No such file or directory
It's been this way for a while. I notice the liborxd.so is sitting in the same folder but orxcrypt still can't locate it.
If I compile orx, the liborxd.so is a slightly different size, so I tried copying that in, but get the same error. So seems like orxcrypt doesn't try checking the current folder for the lib?
I can also build orxcrypt from source with gmake, but still won't execute. Same error.
I can work around this by doing my orxcrypt stuff on windows or macosx (works ok on those) and then copying over my encrypted config.
But I'd like it to be working.
Comments
I'll test it right away.
As for the dynamic library not found, it's because you either need to make sure liborx*.so is in your LD_LIBRARY_PATH (or whatever the real name is) or specifically specify that you want to search in the same folder at link time. The flag for this is:
That works!!
Thanks, Iarwain.
I just tested the static version using the latest/default on linux32 and it worked fine for me. The steps:
- going to code/build
- calling premake4 gmake
- going to ./linux/gmake
- calling make config=static_release32
- going to tools/orxCrypt/build
- calling premake4 gmake
- going to ./linux/gmake
- calling make config=release
- going to tools/orxCrypt/bin
- calling ./orxcrypt
->
I wouldn't have thought to have done this line:
make config=static_release32
I would have just done something that was listed in the Makefile like:
make config=release32
I checked the Makefile for clues on what config to use but no mention in there of the static_release32 being an option.
Just wondering if it's obvious enough for young punters like myself to know to specify static_release32 or if it should be added into the list inside the Makefile?
Here's the relevant content:
I did a hg pull and hg update beforehand.
I've done something wrong then, I must be behind.
https://bitbucket.org/orx/orx/src/f6b46c2dab21a6ad207994ef7c918c7996ac7fff/tools/orxCrypt/build/linux/gmake/Makefile?at=default
And it's short like mine. So I tried deleting and pre-making the gmake version from scratch. Still a short version of the Makefile.
Finally as you suggested, if I do "make help" in the /orx/tools/orxCrypt/build/linux/gmake folder I get the following output:
Not sure why mine's different. My problem is solved now, but I'd like to sort out if some people like me might have something different in their setup that they might need to check.
That output you have is on a gmake of orx at:
/orx/orx/code/build/linux/gmake
Because I was targeting:
/orx/tools/orxCrypt/build/linux/gmake
When I wanted to build just the orxCrypt, and there is a supplied premake script for it, and there is an existing liborxd.so library in the bin folder, I just assumed I could make the binary with one of the config options mentioned in that "menu help" and it would run ok.
The tools have been setup to be built with the static version of orx, without any plugin (ie. no potential LGPL issue). And it's always easier to only have one single file to copy instead of two.