Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dokan issue #194

Open
AireagoirSteam opened this issue Sep 3, 2024 · 13 comments
Open

Dokan issue #194

AireagoirSteam opened this issue Sep 3, 2024 · 13 comments

Comments

@AireagoirSteam
Copy link

AireagoirSteam commented Sep 3, 2024

I believe the build for dokany is out of date since its looking for dokan 1 and the current builds are dokan2.
running on the current version of cygwin and dokany 2.2.0

checking for fuse.h... yes
checking for fuse_new in -losxfuse_i64... no
checking for fuse_new in -losxfuse... no
checking for fuse_new in -lfuse_ino64... no
checking for fuse_new in -lfuse4x... no
checking for fuse_new in -lfuse... no
checking for fuse_new in -ldokanfuse1.dll... no

Screenshot 2024-09-04 005107

@hasse69
Copy link
Owner

hasse69 commented Sep 4, 2024

Thanks for the observation. Try to simply add dokan2 to the search in configure.ac. If that works feel free to upload a pull request.

@AireagoirSteam
Copy link
Author

So would I change the libdokan1 to libdokan2 or add a new line?

@hasse69
Copy link
Owner

hasse69 commented Sep 4, 2024

The second option would be preferred for backwards compatibility. But please be aware that the dokan2 library has never been tested, at least not be me, so you're walking into unknown territory here.

@AireagoirSteam
Copy link
Author

got it working by at least changing configure ac to dokan2

if add dokan2 would be better as you said for backwards compatability since i tried by copying dokan1.dll line underneath and updating it to dokan2 and it didnt compile maybe put it in wrong place?

also followed these steps
unzip dokan.zip
chmod -R 777 x64
cp x64/Cygwin/cygdokanfuse2.dll /usr/bin
cp -R x64/Cygwin/lib/* /usr/lib
cp -R x64/Cygwin/include/* /usr/include

then make and it compiled.

@hasse69
Copy link
Owner

hasse69 commented Sep 5, 2024

Not really sure what you mean. My point was to only add one extra lookup in the list like this

                    [ AC_CHECK_LIB(dokanfuse2.dll,fuse_new, [FUSE_LIBS="-ldokanfuse2.dll"],
                           [ AC_CHECK_LIB(dokanfuse1.dll,fuse_new, [FUSE_LIBS="-ldokanfuse1.dll"],
                                 [AC_MSG_ERROR([
                                         Cannot find fuse library - add alternative library search path using
                                         --with-fuse-lib and rerun configure. ])
                    ],)

This would first check for the presence of dokanfuse2 and if that does not exist, look for dokanfuse1. In that way, for a system that has both (for some unknown reason), it would pickup the latest first. Is there something I have overlooked with this approach?

@AireagoirSteam
Copy link
Author

I mean I tried the other way ound looking for dokan1 then dokan 2 but I wrote the dokan2 part wrong so it failed

I'll add the changes on my end and test of it works

@hasse69
Copy link
Owner

hasse69 commented Sep 5, 2024

Checking for dokan1 before dokan2 is a bit flawed and effectively breaks any wish to prioritize newer versions before old.

@AireagoirSteam
Copy link
Author

tried your changes in configure ac

heres the output

/usr/bin/m4:configure.ac:308: ERROR: end of file in string
autom4te-2.72: error: /usr/bin/m4 failed with exit status: 1
aclocal-1.17: error: /usr/bin/autom4te-2.72 failed with exit status: 1
autoreconf-2.72: error: aclocal failed with exit status: 1

heres the changed file incase I did something wrong
configure.ac.txt

@hasse69
Copy link
Owner

hasse69 commented Sep 8, 2024

You added one more condition, you need to terminate it properly as well by adding yet another

],)

@AireagoirSteam
Copy link
Author

Think I've got it now
Screenshot 2024-09-11 180039

@AireagoirSteam
Copy link
Author

seems to hve built now

@hasse69
Copy link
Owner

hasse69 commented Sep 11, 2024

Make a pull request and then we can merge it to master branch.

@AireagoirSteam
Copy link
Author

Added pull request.

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

No branches or pull requests

2 participants