codestation / vitamtp

Library to interact with Vita's USB MTP protocol (No longer maintained)
GNU General Public License v3.0
33 stars 28 forks source link

Compiling for Windows platform #8

Open noahc3 opened 6 years ago

noahc3 commented 6 years ago

I apologize for the noob question.

I'm trying to compile this for Windows. Getting the necessary libraries to build in a Windows environment seems like a chore so I went the cross compile route. I have it to the point where ./configure and make succeed (or at least don't fail), but no Windows binaries are produced. I'm pretty much looking for a DLL output like is bundled with QCMA.

I'm using the following command for configure: ./configure CC="i686-w64-mingw32-gcc" CFLAGS="-I/usr/local/include" --build i686-pc-linux-gnu --host i386-w64-mingw32

Is there anything obvious I'm missing here? Or maybe you compile this for Windows differently and could point me in the right direction?

Thanks muchly.

codestation commented 6 years ago

Did you check src/.libs/ after compilation? If you don't do make install then the library will end in there.

For windows i compiled the project using the native MSVC compiler but sadly i lost my build scripts not long ago (my fault for not uploading them to github).

I will comment again if i write some instructions to build the whole thing (or write some Dockerfiles that can build them with one command).