Getting Lego Island building under Wine on linux

Reverse engineering and decompiling LEGO Island's main game binary (LEGO1.DLL)
Post Reply
tntexplosivesltd
Posts: 2
Joined: Sun Nov 19, 2023 3:15 am

Getting Lego Island building under Wine on linux

Post by tntexplosivesltd »

Hi

I am having a problem getting the decomp building under wine on Linux. I have installed CMake into my prefix, but when I run the build command, cmd complains about the commands not existing:

Code: Select all

Microsoft Windows 10.0.18362
Z:\home\user\dev\isle>call ..\msvc420\bin\VCVARS32.BAT x86
Setting environment for building x86 target

cd build
cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo -G "NMake Makefiles"
-- The CXX compiler identification is MSVC 10.20
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - failed
-- Check for working CXX compiler: Z:/home/user/dev/MSVC420/bin/CL.EXE
-- Check for working CXX compiler: Z:/home/user/dev/MSVC420/bin/CL.EXE - broken
CMake Error at C:/Program Files/CMake/share/cmake-3.28/Modules/CMakeTestCXXCompiler.cmake:60 (message):
  The C++ compiler

    "Z:/home/user/dev/MSVC420/bin/CL.EXE"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: 'Z:/home/user/dev/isle/build/CMakeFiles/CMakeScratch/TryCompile-l1z869'

    Run Build Command(s): "C:/Program Files/CMake/bin/cmake.exe" -E env VERBOSE=1 nmake -f Makefile /nologo cmTC_2478d\fast
        NMAKE  -f CMakeFiles\cmTC_2478d.dir\build.make /nologo -L              CMakeFiles\cmTC_2478d.dir\build
    Can't recognise 'C:\Program Files\CMake\bin\cmake.exe" -E cmake_echo_color "--switch=" --progress-dir=Z:\home\user\dev\isle
\build\CMakeFiles\CMakeScratch\TryCompile-l1z869\CMakeFiles --progress-num=1 "Building CXX object CMakeFiles/cmTC_2478d.dir/testC
XXCompiler.cxx.obj' as an internal or external command, or batch script.
    NMAKE : fatal error U1077: '"C:\Program Files\CMake\bin\cmake.exe"' : return code '0x2331'
    Stop.
    NMAKE : fatal error U1077: 'Z:\home\user\dev\MSVC420\bin\NMAKE.EXE' : return code '0x2'
    Stop.





  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:3 (project)


-- Configuring incomplete, errors occurred!
It seems like a problem with quotes?

Also, weirdly after running the VSCARS32.bat file my prompt disappears

Wine version: 8.18
User avatar
MattKC
Site Admin
Posts: 323
Joined: Mon Aug 22, 2022 1:05 am
Contact:

Re: Getting Lego Island building under Wine on linux

Post by MattKC »

Yes, MSVC420 has trouble with spaces in filenames. See the following note from the decomp's README:
Visual C++ 4.2 has issues with paths containing spaces. If you get configure or build errors, make sure neither CMake, the repository, nor Visual C++ 4.2 is in a path that contains spaces.
tntexplosivesltd
Posts: 2
Joined: Sun Nov 19, 2023 3:15 am

Re: Getting Lego Island building under Wine on linux

Post by tntexplosivesltd »

Oh man fml I even made sure to do that when I was building it on Windows FeelsBadMan
Thanks!
Post Reply