koolkdev / wfs-tools

WFS (WiiU File System) Tools
MIT License
60 stars 6 forks source link

Improve the build process of wfs-fuse #5

Closed chasedream1129 closed 2 years ago

chasedream1129 commented 2 years ago

Improve the build process of wfs-fuse and release the wfs-fuse binary

I uncommented # add_subdirectory(wfs-fuse) in CMakeLists.txt but I still can't build wfs-fuse

ents: program_options 
CMake Error at wfs-fuse/CMakeLists.txt:21:
  Parse error.  Expected "(", got newline with text "

  ".
chasedream1129 commented 2 years ago

Also, is wfs-fuse writeable?

thepagan commented 2 years ago

in CMakeLists.txt if target_link_libraries(myLib -static-libgcc -static-libstdc++) seems to be visual studio left overs that need removing.

Removing that trailing if and last line will allow the build process to 'continue' once you remove that line comment. Build still fails at this point due to 64bit build environment and libraries, but the documentation states GCC-12 requirement which hasn't been taken out of alpha/beta/dev channels from GNU. It looks like Ubuntu 22.04 includes v12 in testing branch so I'm spooling a VM of 22.04 to test and will update this post then.

koolkdev commented 2 years ago

Hey, sorry for the delayed response. I didn't include wfs-fuse in the new build system yet.

Right now you will have to build the version of wfs tools from before the refactor: commit f0256259a8f396e234543e7615c42fe4836b486f @ wfslib

But I will properly add it soon.

As for the GCC - it was a typo. GCC 11 is required, not 12. I am updating the readme...

And wfs-fuse isn't writeable as wfslib doesn't support writing yet, but it is WIP.

thepagan commented 2 years ago

Ok great! Thank you for that update. I'll use the GCC11 and pull from that commit.

thepagan commented 2 years ago

Confirming that system does build and is functional in Ubuntu 22.04 using GCC11 and the pre-refactor commit.