Page 1 of 1

Building on Linux

Posted: 2017-03-01, 11:42
by arfur9
I'm compiling Cafu on Linux Mint but I'm getting the following error
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=18.1
DISTRIB_CODENAME=serena
DISTRIB_DESCRIPTION="Linux Mint 18.1 Serena"

Code: Select all

/usr/bin/ld: cannot find -lfbxsdk-static
collect2: error: ld returned 1 exit status
scons: *** [build/linux2/g++/release/CaWE/CaWE] Error 1
scons: building terminated because of errors.
The FBXSDK version I used is fbx20171_fbxsdk_linux

I mainly use this laptop as a back up so it was more just to have a matching version to my pc

Code: Select all

~/Cafu $ dir ExtLibs/fbx
FBX_SDK_Online_Documentation.html  lib		ReadmeCFS.txt
include				   License.txt	samples
 ~/Cafu $ git log -1
commit 7eba8b48a58db585ec2d3b3c9cab6daa252399a9
Author: Carsten Fuchs <carsten.fuchs@cafu.de>
Date:   Sat Feb 18 22:28:05 2017 +0100

    FBX SDK: Upgrade to 2017.1.

Re: Building on Linux

Posted: 2017-03-02, 10:55
by Carsten
I just pushed another commit that should fix this (tested under Ubuntu 16.04 LTS).
Please run git pull and try again. :up:

Re: Building on Linux

Posted: 2017-03-02, 12:06
by arfur9
It appears to of compiled fine, I've quickly tested the world editor and that seems to work ok
thanks for the quick response :)

Re: Building on Linux

Posted: 2017-03-02, 18:58
by arfur9
Hi, just a quick update, this problem is still there, but I got it working again changing the cpp file:
http://forum.cafu.de/viewtopic.php?f=6& ... Game#p6907

Edit
I think I mentioned it, but I'll say it again I also had to do the alteration for windows to :)

Re: Building on Linux

Posted: 2017-03-02, 21:50
by Carsten
Woah, I thought that I had fixed this earlier, but just figured out that I had initially committed the fix to a different branch, probably with the intention to cherry-pick it to master later.
Done now, the next git pull will cover it. :cheesy:

Re: Building on Linux

Posted: 2017-03-02, 23:16
by arfur9
Thanks I'll update over the weekend :)