[SOLVED] Can anybody compile these projects with XP targeting?

Discussion in 'Mixed Languages' started by George King, Mar 3, 2022.

  1. George King

    George King MDL Expert

    Aug 5, 2009
    1,858
    2,197
    60
    Hi,

    can anybody please try to compile these projects as XP target? I have no idea how to do it.. I only want to use final product under XP or in WinPE. :)

    Code:
    https://github.com/maharmstone/ntfs2btrfs
    +
    https://github.com/maharmstone/btrfs
    According to author informations, it should work.

    Many thanks
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Hunterrules0_0

    Hunterrules0_0 MDL Member

    Nov 27, 2021
    101
    32
    10
    Ill see what I can do.
     
  3. Hunterrules0_0

    Hunterrules0_0 MDL Member

    Nov 27, 2021
    101
    32
    10
    Alright I installed the driver and things are looking fine. The exe program dosnt work for brtfs driver but its just a formatting utility so its not needed

    Im going to try the ntf2btrfs next
     
  4. Hunterrules0_0

    Hunterrules0_0 MDL Member

    Nov 27, 2021
    101
    32
    10
    Edit: I dont think the ntf2btrfs works and im pretty sure the other driver is kinda buggy on xp I dont think what your saying is possible Im sorry for wasting your time
     
  5. George King

    George King MDL Expert

    Aug 5, 2009
    1,858
    2,197
    60
    @Hunterrules0_0 Thanks for your tries. I found older BTRFS driver release that works under XP and have no missing depencies in Depency Walker.
    Can you try to build ntf2btrfs with Windows 7 x86 targeting please? This one should be missing part of puzzle on my side
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. Hunterrules0_0

    Hunterrules0_0 MDL Member

    Nov 27, 2021
    101
    32
    10
    sure ill try it tonight
     
  7. George King

    George King MDL Expert

    Aug 5, 2009
    1,858
    2,197
    60
    Thanks, I have tried to clone project into Vistual Studio, but if failed with missing fmt, I have no experience with adding custom libraries.. It's many years I latest touched C++ in QT and Codeblocks
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. CaptainKirk1966

    CaptainKirk1966 Former MDL Guru

    Oct 31, 2009
    2,549
    1,377
    90
    When I compiled ntfs2btrfs on ubuntu, I had to first install fmt, lzo2, and zlib libraries. Sorry - I'm not crazy enough, or knowledgeable enough, to try and build this with a recent Visual Studio and XP targeting
     
  9. Hunterrules0_0

    Hunterrules0_0 MDL Member

    Nov 27, 2021
    101
    32
    10
    #9 Hunterrules0_0, Mar 10, 2022
    Last edited: Mar 10, 2022
    Sorry I couldnt do it last night Ill do it tonight though.


    EDIT: im pretty sure the program will just fine on windows 7 is there any reason your compiling it instead of just downloading?
     
  10. CaptainKirk1966

    CaptainKirk1966 Former MDL Guru

    Oct 31, 2009
    2,549
    1,377
    90
    The ntfs2btfrs.exe binary you download from the github repo, is a 64 bit binary. Runs only on 64 bit Windows 7, but not 32 bit Win 7. I presume both the exe, and accompanying dll's, would need to be rebuilt to target 32 bit XP
     
  11. CaptainKirk1966

    CaptainKirk1966 Former MDL Guru

    Oct 31, 2009
    2,549
    1,377
    90
    @George King
    fwiw : It looks like I have created a 32 bit static build of ntfs2btrfs using latest msys2 and mingw32. It should run on any 32 or 64 bit version of Windows, Vista or better.

    Barfs on 32 bit XP with missing GetTickCount64 message, and I'm not sure I will ever solve that problem :(

    https://www80.zippyshare.com/v/nWPQguKi/file.html
     
  12. George King

    George King MDL Expert

    Aug 5, 2009
    1,858
    2,197
    60
    @CaptainKirk1966
    Thanks, I see same errors on yours version on XP x64. There are more missing imports. Seems unusable on XP. According these missing imports seems like it's not fully targeted to XP
    [​IMG]

    [​IMG]


    Meanwhile I have hacked downloaded btrfs2ntfs.exe Major version with CFF Explorer from 6 to 5 to run under x64 without missing depencies. App seems workable
    [​IMG]

    Can you try to build it with Visual Studio instead? I can provide you ISO with testing environment XP SP3+ x86 / XP SP2+ x64 (+ means including all existing updates and .NETs) with latest Visual Studio 2010 which is last one that can be launched under XP.

    Also latest Visual Studio for XP targeting is 2019 v16.7 with XP toolset v142? According to google.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. CaptainKirk1966

    CaptainKirk1966 Former MDL Guru

    Oct 31, 2009
    2,549
    1,377
    90
    #13 CaptainKirk1966, Mar 11, 2022
    Last edited: Mar 11, 2022
    I didn't expect the version I compiled to run on any version of XP. Visual Studio is a behemoth I refuse to work with. I am trying to compile it on 32 bit XP using older msys/mingw. Not sure if I will succeed - getting the needed libraries in place is a big challenge.

    Edit - copied it Win7 x86 iso - hit shift F10 on first screen - and it runs from there...

    upload_2022-3-11_13-38-33.png
     
  14. CaptainKirk1966

    CaptainKirk1966 Former MDL Guru

    Oct 31, 2009
    2,549
    1,377
    90
    #14 CaptainKirk1966, Mar 12, 2022
    Last edited: Mar 12, 2022
    Whoopee! Here is one that was built and runs on 32 bit Windows XP. I presume it will also work on a 64 bit OS. Another static build, hence a large file.
    https://www70.zippyshare.com/v/1eIsprJw/file.html
     
  15. George King

    George King MDL Expert

    Aug 5, 2009
    1,858
    2,197
    60
    @CaptainKirk1966 Woow! That sounds really great! I have tried your first version that can work under Windows 7 PE and it looks good. Can you build x64 in same way too please? This one can't run in x64 Windows 7 WinPE with "Missing subsystem error". I really like your standalone EXE without xxx dlls. Maybe you can compile all 4 versions please?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. CaptainKirk1966

    CaptainKirk1966 Former MDL Guru

    Oct 31, 2009
    2,549
    1,377
    90
    Yeah, I see what you mean about that "Missing subsystem error". I expect I can build something that will work for x64 Win7 PE. Probably not x64 XP, though.
     
  17. CaptainKirk1966

    CaptainKirk1966 Former MDL Guru

    Oct 31, 2009
    2,549
    1,377
    90
    #17 CaptainKirk1966, Mar 13, 2022
    Last edited: Mar 13, 2022
    @George King

    Here we go with the x64 version -
    https://www13.zippyshare.com/v/eydtYCBb/file.html

    I don't know if my x64 compilers and tools will run on an x64 version of Win XP. I also don't have an x64-XP iso to play with. Maybe this x64 just created will work.

    I put all three versions I have so far created into a Win7 x64 installation CD, only the last one worked
    - here's a screenshot (-x32 the first one uploaded, -xp second, -x64 third)

    Edit: Possibly 3 versions of this will do. I found iso and installed XP x64 in a VM. The XP version from post #14 runs on both fully installed 32 and 64 bit XP. It also runs on a BartPE based on 32 bit XP.

    upload_2022-3-12_19-29-5.png
     
  18. George King

    George King MDL Expert

    Aug 5, 2009
    1,858
    2,197
    60
    @CaptainKirk1966 Many thanks for you time! I will add all of them into XP2ESD and future POWIS projects. I hope it can help us deploy Windows on UEFI with Quibble in fully automated process.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  19. CaptainKirk1966

    CaptainKirk1966 Former MDL Guru

    Oct 31, 2009
    2,549
    1,377
    90
    @George King - Good luck and glad I could help. I have run all three of the exe files I previously compiled through the gnu "strip" utility, which removes debug info and unneeded symbol tables. This reduced the size of the exe files considerably, especially the xp32 version.

    https://www82.zippyshare.com/v/UUNA09p4/file.html
     
  20. George King

    George King MDL Expert

    Aug 5, 2009
    1,858
    2,197
    60
    @CaptainKirk1966 Can you please recompile latest NTFS2BTRFS please?

    Code:
    https://github.com/maharmstone/ntfs2btrfs
    Code:
    [LIST]
    [*]20220812
    
    [LIST]
    [*]Added --no-datasum option, to skip calculating checksums
    [*]LXSS / WSL metadata is now preserved
    [*]Fixed lowercase drive letters not being recognized
    [*]Fixed crash due to iterator invalidation (thanks to nyanpasu64)
    [*]Fixed corruption when NTFS places file in last megabyte of disk
    [/LIST]
    [/LIST]
    
    Also BTRFS driver for XP would be cool
    Code:
    https://github.com/maharmstone/btrfs
    Code:
    v1.8.1 (2022-08-23):
    
    [LIST]
    [*]Fixed use-after-free when flushing
    [*]Fixed crash when opening volume when AppLocker installed
    [*]Compression now disabled for no-COW files, as on Linux
    [*]Flushing now scales better on very fast drives
    [*]Fixed small files getting padded to 4,096 bytes by lazy writer
    [*]Added NoDataCOW registry option
    [/LIST]
    v1.8 (2022-03-12):
    
    [LIST]
    [*]Added minimal support for fs-verity
    [*]Added test suite
    [*]Fixed incorrect disk usage statistics
    [*]Fixed potential crashes when renaming stream to file or file to stream
    [*]Fixed potential crashes when querying hard links on file
    [*]Fixed potential hang when opening oplocked file
    [*]Fixed minor issues also uncovered by test suite
    [/LIST]
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...