This site has been archived and made available for preservation purposes. No edits can be made.

Page 3 of 3 FirstFirst 123
Results 21 to 30 of 30

Thread: Compiling From Source

  1. #21
    Uploading one of the logs may be a better idea:
    https://lh.rs/o6EItHBHHZEJ

    As far as I see, there's just a single thread locking and unlocking for 5 seconds. Search for the word ''timeout'' to find the timeout message buried among the locks/unlocks.

    Queue

  2. #22
    I've spent hours compiling old commits and all of them are failing in the same way. I've tried some of the commits from late april and early may, about what the files are dated from the Gary 1 release, and yet they still aren't working. Do you have any suggestions on an old version I should try to build to see if that works for me?

    So it could certainly be a problem with my build environment, which would be weird, but obviously not impossible. Aside from CodeBlocks and MinGW, which I'm fairly certain I both have the correct versions of (after you pointed me to the correct versions, that is) and am using correctly, I grabbed the boost.org libraries that VaultServer is dependent on, got the correct iniparser commit, and CodeBlocks has been having no problem compiling and linking the projects without me having to change any build settings (or any code or other settings for that matter), so I'm sort've at a loss as to where my build environment could be wrong at this point.

    Could you upload just the minimal executables necessary for me to test ones you've compiled? Namely, vaultmaster.exe, vaultserver.exe, vaultmp.dll, vaultmp.exe, and vaultgui.dll (unless you comment out the chat code)? If it's a problem on my end, I'd prefer to not waste any more of your time while I get things sorted out, but if the binaries you build also cause me trouble, then it'd likely be worth pursuing further.

    Queue
    Last edited by Queue; 06-24-2012 at 06:47 AM.

  3. #23
    Administrator
    Join Date
    Jun 2011
    Location
    Germany
    Posts
    1,057
    Blog Entries
    5
    I've been looking at your uploaded log file and I'm very confused to say the least. Not a single game function call returns to the application, and the locking is weird too. There should be locking of the other object (005C73D8) too, but there is none (which is actually impossible as thread 6 can't lock 005C73C8 without having locked 005C73D8 first).

    Attached are binaries I compiled (latest commit). Really interested if they will make a difference. They work fine for me.
    Attached Files Attached Files

  4. #24
    The binaries you uploaded work for me. Also, I can rebuild any of the files EXCEPT vaultmp.exe and still have everything work, so my vaultmp.dll, vaultmaster.exe, and vaultserver.exe are all working (well enough to not show problems).

    That said, my binaries are also about 10% larger in file size than yours. I haven't been changing any compiler settings set in the project files; I download the source, open the project in CodeBlocks, and Build. For the server and client, I change them to the Release build before compiling, but that's it.

    In CodeBlocks, do you have any global compiler settings changed away from default? For me, everything is unchecked, ''Other options'' is empty, I have no global defines set, no additional linker settings; it's all default.

    Queue

  5. #25
    Administrator
    Join Date
    Jun 2011
    Location
    Germany
    Posts
    1,057
    Blog Entries
    5
    Hm, no I don't have any global compiler settings. All is in the project files.

    Can you run

    mingw32-g++.exe -v
    (the compiler executable you should have set in the compiler options)

    and make a screenshot of the result? Here is mine:

    Unbenannt.png

  6. #26
    g++.png
    Not quite the same build. I'd grabbed the release build of 4.7.0 (which was the newest). Looking at the list of MinGW downloads, I don't see one that's obviously 20120311.

    Queue

  7. #27
    Administrator
    Join Date
    Jun 2011
    Location
    Germany
    Posts
    1,057
    Blog Entries
    5
    I believe I have this one:

    https://sourceforge.net/projects/ming...vb.7z/download

    Maybe try that... not sure if it makes a difference. What OS do you have?

  8. #28
    XP 32-bit on the computer I've been messing around with VaultMP; none of my home computers run a 64-bit version of Windows.

    Edit - I misunderstood what you linked; the w64 in the file name made me think it was 64-bit executables. Anyway, downloaded it, set it up, now recompiling and I'll let you know how it turns out.

    Queue
    Last edited by Queue; 06-24-2012 at 11:29 PM.

  9. #29
    Success! So, using the Ruben build of MinGW did the trick; everything works now.

    For anyone else reading this, as of 2012, June 24, to compile VaultMP you need:
    https://www.codeblocks.org/downloads/26
    https://sourceforge.net/projects/ming...b/old/4.7.0-3/

    https://github.com/Foxtacles/vaultmp
    https://github.com/Foxtacles/inipars...bfa6ce8d28c95c
    https://sourceforge.net/projects/boos.../boost/1.49.0/

    VaultGUI.dll requires Visual Studio 10; I haven't begun worrying about that yet; I'm just ecstatic to have VaultMP compiling and working correctly.

    Queue

  10. #30
    Administrator
    Join Date
    Jun 2011
    Location
    Germany
    Posts
    1,057
    Blog Entries
    5
    Note: due to a bug with variadic template specialization (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=38543) vaultmp will soon require GCC 4.7.1.

    https://sourceforge.net/projects/ming...benvb/release/

    EDIT:
    OK, ruben's 4.7.1 build doesn't support std::thread. I tried nixmans 4.7.1 but it has the same problem you had. So we'll have to stick to 4.7.0-3 / old by ruben until I found a working build.

    EDIT2:
    Tracked the problem down to the use of
    https://github.com/Foxtacles/vaultmp...ection.cpp#L41
    which in nixmann's build seems to immediately return false. I changed that to a simple lock() call, which apparently works.

    EDIT3:
    To reproduce the problem:
    https://codepad.org/7PjsrFLI

    Expected output: a1b1 or b1a1
    Real output: sometimes a1b1, sometimes a1b0

    EDIT4:
    Thank you for the bug report!
    In the Rubben`s builds this error does not occur, because he uses the
    win32 threading model, but I use posix.

    The bug will be fixed in the nearest future.
    I will inform you.

    Thanks.
    Last edited by foxtacles; 07-21-2012 at 07:02 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •