WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Custom binaries not working?  (Read 4612 times)

Offline arrakis

  • Newbie
  • *
  • Posts: 3
Custom binaries not working?
« on: April 11, 2016, 01:50:51 AM »
I copied over a 64-bit binary i built and tried executing it but I get file not found errors. Any ideas?

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11048
Re: Custom binaries not working?
« Reply #1 on: April 11, 2016, 03:30:20 AM »
sudo ln -s /lib /lib64

It would be preferable to build on Core though. Otherwise you may have all kinds of library version mismatches.
The only barriers that can stop you are the ones you create yourself.

Offline arrakis

  • Newbie
  • *
  • Posts: 3
Re: Custom binaries not working?
« Reply #2 on: April 11, 2016, 05:59:22 AM »
I got the binary working with the above command, thank you! All my libraries are statically linked in the binary, would this still make a difference on Pure64?

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11048
Re: Custom binaries not working?
« Reply #3 on: April 11, 2016, 02:46:12 PM »
A static binary wouldn't need that link ;) At least libc was dynamic in that case.

But yeah, if the libs are static, it's reasonably safe.
The only barriers that can stop you are the ones you create yourself.

Offline labeas

  • Sr. Member
  • ****
  • Posts: 266
Re: Custom binaries not working?
« Reply #4 on: November 14, 2016, 12:09:30 PM »
Let's look at this in greater detail:

If I x64-compile where the source is a USBstik, so the x64-Object
is created on that USBstik; but first I needed to X64-complile the
<lib sub directory> on the same USBstik.

So assume that 2 lib-objects and the main binary were created;
where do I move these to, on the different USBstik, which TC64
boots from, so that they are loaded to RAM, when TC64 boots from
this 2nd mentioned USBstik?

Has my TC64-basic got a compiler ? I'm now in M$ to get WiFi
access so I can't look-to-see, by eg. `which gcc` .


Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14834
Re: Custom binaries not working?
« Reply #5 on: November 14, 2016, 12:52:36 PM »
It's a little difficult to understand what you are asking - there is no compiler in the base corepure64, you need the compiletc extension and it's dependencies.

As mentioned earlier, it would probably be easier for you to run corepure64 in a vm on windows and get the extensions that way.