switchbrew / switch-examples

Switch examples for devkitA64 and libnx.
https://devkitpro.org/viewforum.php?f=42
569 stars 101 forks source link

elf2nso: undefined symbol: LZ4_compress_default #23

Closed futurepr0n closed 6 years ago

futurepr0n commented 6 years ago

Hi all,

Trying to make a Vagrantfile that will create a VagrantBox ready to go for Nintendo Switch Dev.. Only I'm getting some wierd issue..

I have the following as my provisioning, to apt-get the following dependencies ahead of the build, but I am still getting LZ4_compress_default error.

    apt-get update
    apt-get install -y apache2 build-essential checkinstall
    apt-get install -y libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev
    apt-get install -y libmysqlclient-dev git
    apt-get install -y python-dev libxml2-dev libxslt1-dev zlib1g-dev liblz4-dev curl
    apt-get install -y autoconf automake bison flex texinfo pkg-config libgmp-dev libmpfr-dev libmpc-dev libfreeimage-dev
    apt-get install -y libusb-dev libexpat1 mesa-common-dev
vagrant@vagrant-ubuntu-trusty-64:~/Development/switch/graphics/simplegfx$ make
main.c
aarch64-none-elf-gcc -MMD -MP -MF /home/vagrant/Development/switch/graphics/simplegfx/build/main.d -g -Wall -O2 -ffunction-sections -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE  -I/home/vagrant/Development/switch/graphics/simplegfx/include -I/opt/devkitpro/portlibs/switch/include -I/opt/devkitpro/libnx/include -I/home/vagrant/Development/switch/graphics/simplegfx/build -DSWITCH -c /home/vagrant/Development/switch/graphics/simplegfx/source/main.c -o main.o
linking simplegfx.elf
elf2nso: symbol lookup error: elf2nso: undefined symbol: LZ4_compress_default
make[1]: *** [/home/vagrant/Development/switch/graphics/simplegfx/simplegfx.nso] Error 127
make: *** [build] Error 2
vagrant@vagrant-ubuntu-trusty-64:~/Development/switch/graphics/simplegfx$ 
futurepr0n commented 6 years ago

Using Xenial instead of Trusty, and it works properly!