-
Notifications
You must be signed in to change notification settings - Fork 751
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
Does anyone successfully build VMAF in Cygwin ? ld: cannot find -lptools #62
Comments
@tjtjtjtj-tw If you look carefully, it might be that the building of the ptools library failed. Would you like to cd to ptools dir and see if you can make it successfully there? |
Dear li-zhi, I see there is a libptools.so successfully built. So... am I wrong with something? Thank you. |
The error message from make is:make[1]: Entering directory '/home/tjtjtjtj/vmaf-master/wrapper' /usr/lib/gcc/x86_64-pc-cygwin/5.4.0/../../../../x86_64-pc-cygwin/bin/ld: cannot find -lptoolscollect2: Error:ld return 1
|
If I remember correctly someone had a similar issue with lptools on Linux that ended up being caused by Windows style line endings (based on how they cloned the repo). Since you are having a similar issue on Cygwin I wonder if this is a similar issue. Can you try to run dos2unix on the entire checkout? (Or change your git settings to preserve the original line endings). I wonder if that would make a difference. |
@cosmin |
@tjtjtjtj-tw It's probably related to wrapper/Makefile. I have this switch: vmafossexec: $(OBJS) It detects the OS version (Darwin is for mac os) and run differently to build vmafossexec. I don't know what's the correct way for cygwin, you can probably try it out. (Also in ptools, there is another switch: libptools : $(COM_OBJS) here libptools.dylib is for mac os and libptools.so is for linux/debian only(?) ) |
The settings for Mac doesn't work correctly in Cygwin. |
I do a modification for Makefile in ptool directory for Cygwin. Change from: Change to: ar rcs libptools.a $(COM_OBJS)endif |
I am not an expert in makefile writing so it is kind if anyone familiar with it can commit the modification for Cygwin properly. I summarize the change need to be applied to let vmaf be created successfully in Cygwin :
|
@tjtjtjtj-tw Thanks for the suggestion. Please keep this thread open so that I (or someone else) could pick it up later. |
i have same problem |
Merge in MCE/vmaf-private-lts from feature/add-2160-model-in-routine-christosb to master * commit '66358a760657ef58a5e0d1fb8166b9acce2623f0': Add 2160p model in routine.
I tried to build it in Cygwin latest version.
All the targets except "wrapper" directory compiled successfully.
That is, vmaf-master/wrapper/Makefile doesn't seem to work in Cygwin.
I added "-D_GNU_SOURCE" to CXXFLAGS in Makefile to let several C++ source file compile successfully.
ld.exe complained "cannot find -lptools" and the linking was not successful.
Does anyone know how to make it right?
Thank you.
The text was updated successfully, but these errors were encountered: