Solved Compile 3rd Party Program on FreeBSD

CraigHB

Active Member

Reaction score: 27
Messages: 113

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 7,399
Messages: 29,965

I've looked it over for a while and I'm not able to translate all packages to FreeBSD titles.
Any specific ones you're having trouble with? Most are fairly obvious but some of the developer libraries might be tricky to "translate" to their corresponding FreeBSD package.
 
OP
OP
CraigHB

CraigHB

Active Member

Reaction score: 27
Messages: 113

Thanks for the replies.

I was actually able to talk to one of the developers on that project and it turns out I only need a subset of those packages for what I want to do (compile only the firmware). He said to install git, cmake, arm-eabi-gcc, and Python Qt. So i'll try that and see if it works. He said cmake should indicate if there there's anything missing. I'll see how it goes, I'll try it tonight or tomorrow.

Yeah that would be pretty cool to port it myself. If I can get it to work with gcc I might want to see if I can cross-compile with clang instead so I may have that question.
 
OP
OP
CraigHB

CraigHB

Active Member

Reaction score: 27
Messages: 113

So I've managed to get this pakage to start compiling, but then it errors out with the following. Anyone know the problem?
Code:
[ 37%] Linking CXX executable bootloader.elf
/usr/local/bin/arm-none-eabi-ld: cannot find -lc++
collect2: error: ld returned 1 exit status
*** Error code 1

Stop.
make[3]: stopped in /root/opentx/build
*** Error code 1
 
OP
OP
CraigHB

CraigHB

Active Member

Reaction score: 27
Messages: 113

I found the problem, was trying to use the arm toolchain from the FreeBSD pkg repository. Had to use the official one downloaded from http://launchpad.net

All good now.
 
Top