Jump to content

Trouble following Atlas BuildInstructions


Recommended Posts

Hello, I have some struggles when trying to build Atlas on Windows 11 / VS 2022

I have read the Instruction here : https://gitea.wildfiregames.com/0ad/0ad/wiki/BuildInstructions#building-atlas (and also https://trac.wildfiregames.com/wiki/BuildInstructions#BuildingAtlas just in case)

I don't really have knowledge on C++ building and co so I'm probably missing some obvious step :D

I have downloaded wxwidgets "latest stable release (3.2.6)", opened build\msw\wx_vc15.sln and following the build instruction (Debug / Release) and copy lib\ include\ in the corresponding folders (no error/ difficulty at this moment)

when running : 'update-workspaces.bat --atlas'

I just get an "Error: invalid option 'atlas'", also tried to edit the .bat to add the --atlas directly in the premake command, same thing ...

I launched without the --atlas options,( I tested removing the lib \include folders, and the script tell me "wxWidgets not found, disableing atlas", so I guess the --atlas is simply not required anymore ? )
but now, when trying to build "atlas" (I tested all Atlas*, I don't even know what I have to do) I got a bunch of LNK 2001 / LINK2019 error on AtlasUI (and no AtlasUI.dll builded)

I also tried with "wxwidgets older stable release (3.0.5)", since the readme suggest 3.0.4 or above, but it didn't provide "wx_vc15.sln" (max wx_vc12.sln) so ...

And I can't launch the scenario editor from the builded game ("Not available or failed to load")

I just don't know what I'm missing :D

And, I take the opportunity, I have also some trouble with git (lfs) since, maybe two day ? when trying to rebase my local branch on upstream (your repo) I got errors ! I don't really think I have broken something on my side, It worked like a charm since my last PR ?

Error downloading object: binaries/data/mods/public/maps/scenarios/triggers_demo.xml (597f783): Smudge error: Error downloading binaries/data/mods/public/maps/scenarios/triggers_demo.xml (597f783921069100aeffa31ed33d300
5c2bc3d5298020ae2e805752bdb25bebc): [597f783921069100aeffa31ed33d3005c2bc3d5298020ae2e805752bdb25bebc] Not Found: [404] Not Found

 

 

Link to comment
Share on other sites

Hi, firstly atlas is built by default so you don't need to specify it with a flag. There only exists a flag to disable it. 

Secondly, to compile atlas, you need some old version of wxgtk (maybe wxgtk2). On Windows, you need to install wxgtk then reboot your system for it to take effect. 

With git-lfs, I recommend you just re-download all in a clean folder.

  • Like 1
Link to comment
Share on other sites

19 hours ago, eZamus said:

And, I take the opportunity, I have also some trouble with git (lfs) since, maybe two day ? when trying to rebase my local branch on upstream (your repo) I got errors ! I don't really think I have broken something on my side, It worked like a charm since my last PR ?

@eZamusAs far as I know, the only documentation on how to fix that is this section on the wiki: Recovering from errors while syncing your fork.

Edited by andy5995
Link to comment
Share on other sites

Hello,

Thanks all for helping !
For git it's fixed ! I feel pretty dumb missing that part on the wiki :D
I will retry for wxwidgets later :) I fell pretty sick recently and can't be too much time on my computer

Thanks again 

  • Like 1
Link to comment
Share on other sites

Hello !

Sorry for the delay, it was a very bad flu ^^" 

So ... I have my fresh install of the project but I can't build Atlas :D...

I use Visual Studio 2022 with 2017 Compiler (Visual Studio 2017 - Windows XP (v141_xp)) and Windows SDK 7.0 (! the documentation mention 7.1 but the link for the installer is dead (even on microsoft page https://learn.microsoft.com/en-us/archive/msdn-technet-forums/1de7c9b4-1feb-4c98-b426-f7f02cbafa99 )I don't know if on Windows 11 it is necessary and how to install it ...

as mentionned before, I have downloaded wxwidgets "latest stable release (3.2.6)", opened build\msw\wx_vc15.sln, since it doesn't exist on 3.0.5, (please correct me if I'm wrong at this step)
and builded the solution twice (Release/Debug) (using "Visual Studio 2017 - Windows XP (v141_xp)" / SDK 7.0 too). No error, everything look good

copy/pasted the lib/include dir, deleted my workspace "vs2017" and relaunched update-workspace.bat, then reopened pyrogenesis.sln, set pyrogenesis as start up project and build the solution (Release win32) and got this bunch of error :

image.thumb.png.0051c80edea3bf6af83747c667d33d8c.png

I can launch 0 A.D but not Atlas...

PS : It's worth mentionning that this part of the documentation (https://gitea.wildfiregames.com/0ad/0ad/wiki/BuildInstructions#introduction) mention "get-windows-libs.sh" but it's a .bat files :p

Again, thanks all

Link to comment
Share on other sites

23 hours ago, Stan` said:

Have you built wxwidgets with the v141xp toolset ?


That was it ! Well...I had set v141xp ...but not for all wxwidgets 'project', some was using 2022, I shift-clicked on all and set the good one, after build/copy pasta etc, Atlas was builded !

Greats ! I  was going so crazy that I could send my army attack the beach :roman:

Okay, time to learn, do you have some tips/ documentation on how can I "efficiently" test / work on Atlas ?
Actually my workflow look like : building pyrogenis, open 0 AD, open scenario editor, edit on line of code, closing Atlas, rebuilding reopen 0 AD etc etc

Thanks :heart:

Link to comment
Share on other sites

yes I am aware for the JS side, it works fine, my question was more about the c++ code :D Actually I can work on the atlas / Scenario editor, it's just I had to close the app, rebuild the solution (on "selecting" "pyrogenesis") and reopen the scenario edit passing through the 0 AD menu each time I want to test/see my change, is there a better way to work on the scenario editor ?

Link to comment
Share on other sites

7 hours ago, eZamus said:

yes I am aware for the JS side, it works fine, my question was more about the c++ code :D Actually I can work on the atlas / Scenario editor, it's just I had to close the app, rebuild the solution (on "selecting" "pyrogenesis") and reopen the scenario edit passing through the 0 AD menu each time I want to test/see my change, is there a better way to work on the scenario editor ?

You can add the -editor command line argument :)

Regarding Atlas some work has been done by @trompetin17 to get rid of it and instead do everything inside the game.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...