OGRE dependecies build error

Discussion area about developing with Ogre-Next (2.1, 2.2 and beyond)


User avatar
TaaTT4
OGRE Contributor
OGRE Contributor
Posts: 267
Joined: Wed Apr 23, 2014 3:49 pm
Location: Bologna, Italy
x 75

OGRE dependecies build error

Post by TaaTT4 »

As the title says:

Code: Select all

c1 : fatal error C1083: Non è possibile aprire il file origine: 'Dependencies/src/SDL2/src/hidapi/hidapi': No such file
 or directory [D:\Development\SDK\OGRE\OGRE Dependencies\build\x86\src\SDL2.vcxproj]
(sorry for the italian, it translates to something like "cannot open origin file").

Using the latest commit (95dda06a4a57), it happens on Windows both with Visual Studio 2017 and 2019. Switching back to commit (8e0dac8c6cba) solves the issue.

Senior programmer at 505 Games; former senior engine programmer at Sandbox Games
Worked on: Racecraft EsportRacecraft Coin-Op, Victory: The Age of Racing

User avatar
dark_sylinc
OGRE Team Member
OGRE Team Member
Posts: 5511
Joined: Sat Jul 21, 2007 4:55 pm
Location: Buenos Aires, Argentina
x 1379

Re: OGRE dependecies build error

Post by dark_sylinc »

SDL is built differently and may not be noticing file changes.
Backup, then delete what's inside ogredeps/SDL2 (except .hg folder) and restore the deleted files with hg. Then build again

Cheers
User avatar
TaaTT4
OGRE Contributor
OGRE Contributor
Posts: 267
Joined: Wed Apr 23, 2014 3:49 pm
Location: Bologna, Italy
x 75

Re: OGRE dependecies build error

Post by TaaTT4 »

Nope, the issue is totally unrelated to Mercurial subrepos (in fact, I've cloned OGRE dependencies repos from scratch). I discovered that the culprit is a space in the path where OGRE dependencies repository has been cloned. It didn't happen before, maybe something has blown up in SDL 2.10.0 CMakeLists.txt files.
Anyway, SDL still not build with Visual Studio 2019 (not your fault of course):

Code: Select all

SDL_string.obj : error LNK2019: riferimento al simbolo esterno memset non risolto nella funzione SDL_vsnprintf_REAL [D:\Development\SDK\OGRE\OGRE_Dependencies\build\x64\src\SDL2-prefix\src\SDL2-build\SDL2.vcxproj] [D:\Development\SDK\OG
RE\OGRE_Dependencies\build\x64\src\SDL2.vcxproj]
D:\Development\SDK\OGRE\OGRE_Dependencies\build\x64\src\SDL2-prefix\src\SDL2-build\Release\SDL2.dll : fatal error LNK1120: 1 esterni non risolti [D:\Development\SDK\OGRE\OGRE_Dependencies\build\x64\src\SDL2-prefix\src\SDL2-build\SDL2.vc
xproj] [D:\Development\SDK\OGRE\OGRE_Dependencies\build\x64\src\SDL2.vcxproj]
Here some references:

Senior programmer at 505 Games; former senior engine programmer at Sandbox Games
Worked on: Racecraft EsportRacecraft Coin-Op, Victory: The Age of Racing

User avatar
dark_sylinc
OGRE Team Member
OGRE Team Member
Posts: 5511
Joined: Sat Jul 21, 2007 4:55 pm
Location: Buenos Aires, Argentina
x 1379

Re: OGRE dependecies build error

Post by dark_sylinc »

Yesterday I've been messing with SDL2 setup several times, I hope it may have been fixed now.

I also bumped the version from SDL2 2.0.8 (IIRC) to 2.0.10. A bug in the build process may have been introduced on the SDL side.
User avatar
TaaTT4
OGRE Contributor
OGRE Contributor
Posts: 267
Joined: Wed Apr 23, 2014 3:49 pm
Location: Bologna, Italy
x 75

Re: OGRE dependecies build error

Post by TaaTT4 »

I've seen your work! But as I told before, it appears more to be something related to the CMakeLists.txt files of SDL than the way you build SDL.
I've solved building SDL through the sln file and manually providing it to OGRE.

Senior programmer at 505 Games; former senior engine programmer at Sandbox Games
Worked on: Racecraft EsportRacecraft Coin-Op, Victory: The Age of Racing