Skip to content

Compiling in 2025 #3

Description

@graham-m-dunn
$ sudo apt install libfuse-dev
$ wget http://opensource.platon.sk/projects/download.php\?id\=136
$ mv download.php\?id=136 libcfg+-0.7.0.tar.gz
$ tar zxvf ~/libcfg+-0.7.0.tar.gz
$ cd libcfg+-0.7.0
$ ./configure && make && sudo make install
$ git clone https://github.com/thkala/fuseflt.git
$ cd fuseflt

Need to patch the Makefile to move the linker options to be after the source file (https://stackoverflow.com/questions/22288456/fuse-functions-not-found-on-compile) 🤷

Was getting collect2: error: ld returned 1 exit status with errors for fuse and cfg+ libraries until that patch.

diff --git a/Makefile b/Makefile
index 1fd8832..f21acfe 100644
--- a/Makefile
+++ b/Makefile
@@ -24,7 +24,7 @@ VER := $(shell head -n 1 NEWS | cut -d : -f 1)
 all: fuseflt
 
 fuseflt: fuseflt.c NEWS
-       $(CC) $(shell pkg-config fuse --cflags --libs) $(CFLAGS) -lcfg+ -DVERSION=\"$(VER)\" $< -o $@
+       $(CC) $< $(shell pkg-config fuse --cflags --libs) $(CFLAGS) -lcfg+ -DVERSION=\"$(VER)\" -o $@
 
 install: all
        install -D -m755 fuseflt $(bindir)/fuseflt

then

$ make && sudo make install

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions