Comments (19)
Good day and salutations,
I was able to compile this on a clean new system
My history...
1 apt-get install g++-multilib libc6-dev-i386
2 apt-get install cmake
3 apt-get install libsdl2-dev:i386
4 sudo dpkg --add-architecture i386
5 sudo apt-get update
6 vim /etc/resolv.conf
7 sudo apt-get update
8 apt-get install libsdl2-dev:i386
9 apt-get install libsdl2-mixer-dev:i386
10 ls
11 vim usr/lib/i386-linux-gnu/cmake/SDL2/sdl2-config.cmake
12 history
in file vim usr/lib/i386-linux-gnu/cmake/SDL2/sdl2-config.cmake
# sdl2 cmake project-config input for ./configure scripts
set(prefix "/usr")
set(exec_prefix "${prefix}")
set(libdir "${prefix}/lib/i386-linux-gnu")
set(SDL2_PREFIX "/usr")
set(SDL2_EXEC_PREFIX "/usr")
set(SDL2_LIBDIR "${prefix}/lib/i386-linux-gnu")
set(SDL2_INCLUDE_DIRS "${prefix}/include/SDL2")
set(SDL2_LIBRARIES "-L${SDL2_LIBDIR} -lSDL2 -lSDL2_mixer ")
I had to comment out an include line in the code which is looking for #include <SDL_image.h>
which I will fix now.
from devilutionx.
I solved it.
Of course there was another sdl2-config.cmake under /usr/lib32/cmake/SDL2. lol
Stupid me. :)
from devilutionx.
This is caused by the linker not finding SDL_mixer, it seams to happen when compiling on a 64bit platform, probably all it needs is a parameter to point it in the right direction. The problem appears to be that the way we force the compiler to 32bit causes auto discover in cmake not to work properly. The issue should go away when either compiling on a 32bit installation, or compiling to a 64bit file (however the code is not in a state where this can be done yet).
@ApertureSecurity might be able to provide some info in regards to what environment he is compiling under.
He is currently working on rebasing the code to the latest devilution, this should help significantly in terms of getting closer to be able to compile to a 64bit target.
from devilutionx.
@VonKossa make sure that you have added -lSDL2_mixer
to the /usr/lib/i386-linux-gnu/cmake/SDL2/sdl2-config.cmake
file.
from devilutionx.
@ApertureSecurity your history doesn't show you running cmake
or make
? Do you do that from a GUI tool?
from devilutionx.
Hi again!
Thanks for the answers.
For the record i am running Gentoo, not a debian or debian like distro.
The location for the sdl2-config.cmake seems to be /usr/lib/cmake/SDL2 for me.
I added -lSDL2_mixer like described and compiled both libsdl2 and sdl2-mixer with x86_32 support.
Same error. :(
from devilutionx.
Are you wanting to compile it or do you just want to play?
I can compile it for you. Ideally , I can just release stable branches of the game.
@AJenbo, I ran cmake ..;make from the build folder. That terminal used for vim on sdl cmake.
from devilutionx.
Actually i want to compile it.
i believe my problem is related to x64/x86 somehow.
My sdl2-config.cmake looks different than yours:
set(prefix "/usr")
set(exec_prefix "${prefix}")
set(libdir "/usr/lib64")
set(SDL2_PREFIX "/usr")
set(SDL2_EXEC_PREFIX "/usr")
set(SDL2_LIBDIR "/usr/lib64")
set(SDL2_INCLUDE_DIRS "${prefix}/include/SDL2")
set(SDL2_LIBRARIES "-L${SDL2_LIBDIR} -lSDL2 -lSDL2_mixer")
string(STRIP "${SDL2_LIBRARIES}" SDL2_LIBRARIES)
from devilutionx.
Hopfully we can get SDL2_mixerfind.cmake working for 32bit builds so that it won't be needed to edit the file :)
from devilutionx.
It did compile and it did start, but that was about all. The game menu appeared but you are unable to choose anything with the keyboard and if you are lucky you might be able to proceed to the choose character menu if you by luck find the right pixel with the mouse. Then it segfaults. :)
I guess this is the current state right now or am i doing something wrong here?
from devilutionx.
Can you launch it in terminal and give me output before it crashes please.
Thank you for this.
from devilutionx.
sure... just a moment. :)
from devilutionx.
DUMMY: ShowCursor : 0
DUMMY: FindWindowA : class: DIABLO window: (null)
DUMMY: CreateEventA : DiabloEvent
SND INIT
Opened 8 sound channels
./diabdat.mpq
./Patch_rt.mpq
SND INIT
Opened 8 sound channels
Main Menu Init
Window And Renderer Created!
GpBuffer Created
SIZE OF SCREEN 503808X 287 , Y 138
X 286 , Y 142
X 299 , Y 160
X 311 , Y 170
X 316 , Y 182
X 316 , Y 196
X 316 , Y 203
X 316 , Y 209
X 317 , Y 213
X 318 , Y 221
X 319 , Y 224
X 319 , Y 233
SinglePlayer Diablo
X 318 , Y 247
X 318 , Y 247
X 330 , Y 271
X 457 , Y 437
X 536 , Y 492
X 566 , Y 496
X 628 , Y 529
X 643 , Y 546
X 641 , Y 556
Clicked Create Hero Box
menu3 X641 Y556
X 635 , Y 567
menu3 X635 Y567
X 632 , Y 582
menu3 X632 Y582
X 598 , Y 554
menu3 X598 Y554
X 587 , Y 516
menu3 X587 Y516
X 433 , Y 438
menu3 X433 Y438
X 504 , Y 449
menu3 X504 Y449
X 513 , Y 457
menu3 X513 Y457
X 533 , Y 467
menu3 X533 Y467
X 569 , Y 492
menu3 X569 Y492
X 581 , Y 510
menu3 X581 Y510
X 617 , Y 535
menu3 X617 Y535
X 629 , Y 554
menu3 X629 Y554
X 630 , Y 572
menu3 X630 Y572
X 642 , Y 560
menu3 X642 Y560
X 580 , Y 567
menu3 X580 Y567
X 405 , Y 567
menu3 X405 Y567
X 311 , Y 546
menu3 X311 Y546
X 243 , Y 378
menu3 X243 Y378
X 253 , Y 306
menu3 X253 Y306
X 235 , Y 270
menu3 X235 Y270
X 270 , Y 303
menu3 X270 Y303
X 167 , Y 328
menu3 X167 Y328
X 138 , Y 325
menu3 X138 Y325
X 217 , Y 476
menu3 X217 Y476
X 159 , Y 493
menu3 X159 Y493
X 166 , Y 587
menu3 X166 Y587
X 175 , Y 565
menu3 X175 Y565
X 206 , Y 383
menu3 X206 Y383
X 411 , Y 315
menu3 X411 Y315
X 408 , Y 261
menu3 X408 Y261
X 322 , Y 247
menu3 X322 Y247
X 507 , Y 316
menu3 X507 Y316
X 552 , Y 360
menu3 X552 Y360
X 588 , Y 440
menu3 X588 Y440
X 598 , Y 486
menu3 X598 Y486
X 489 , Y 264
menu3 X489 Y264
X 538 , Y 329
menu3 X538 Y329
X 526 , Y 419
menu3 X526 Y419
X 533 , Y 476
menu3 X533 Y476
X 551 , Y 483
menu3 X551 Y483
X 590 , Y 492
menu3 X590 Y492
X 626 , Y 522
menu3 X626 Y522
X 636 , Y 546
menu3 X636 Y546
X 642 , Y 566
menu3 X642 Y566
X 637 , Y 581
menu3 X637 Y581
X 609 , Y 571
menu3 X609 Y571
X 647 , Y 558
menu3 X647 Y558
X 675 , Y 565
menu3 X675 Y565
X 637 , Y 566
menu3 X637 Y566
X 630 , Y 556
menu3 X630 Y556
X 571 , Y 485
menu3 X571 Y485
X 488 , Y 512
menu3 X488 Y512
X 522 , Y 558
menu3 X522 Y558
X 682 , Y 561
menu3 X682 Y561
Cancel
X 715 , Y 453
X 518 , Y 320
X 378 , Y 223
X 306 , Y 172
X 315 , Y 126
X 456 , Y 108
X 603 , Y 108
X 292 , Y 99
X 263 , Y 219
X 239 , Y 317
X 194 , Y 355
X 356 , Y 450
X 550 , Y 463
X 617 , Y 475
X 595 , Y 503
X 623 , Y 546
X 635 , Y 568
Clicked Create Hero Box
menu3 X635 Y568
X 656 , Y 568
menu3 X656 Y568
X 644 , Y 563
menu3 X644 Y563
X 615 , Y 557
menu3 X615 Y557
X 676 , Y 557
menu3 X676 Y557
Cancel
X 660 , Y 555
X 705 , Y 557
Cancel
X 730 , Y 567
X 762 , Y 552
X 701 , Y 474
X 428 , Y 361
MultiPlayer Diablo
X 415 , Y 267
SinglePlayer Diablo
X 537 , Y 310
X 207 , Y 89
X 234 , Y 118
X 351 , Y 262
X 440 , Y 379
X 114 , Y 359
X 341 , Y 228
X 159 , Y 240
X 405 , Y 187
X 261 , Y 182
X 423 , Y 87
X 368 , Y 92
X 173 , Y 178
X 169 , Y 299
X 306 , Y 443
X 534 , Y 461
X 558 , Y 489
X 586 , Y 506
X 555 , Y 479
X 519 , Y 457
X 498 , Y 438
X 512 , Y 400
X 518 , Y 427
X 524 , Y 457
X 525 , Y 467
X 535 , Y 509
X 701 , Y 541
X 606 , Y 485
X 617 , Y 451
X 577 , Y 491
X 454 , Y 462
X 420 , Y 442
X 522 , Y 438
X 555 , Y 449
X 524 , Y 453
X 515 , Y 453
X 503 , Y 448
X 441 , Y 465
X 403 , Y 393
X 488 , Y 420
X 560 , Y 456
X 501 , Y 454
X 500 , Y 448
X 521 , Y 445
X 434 , Y 388
X 350 , Y 281
X 282 , Y 167
X 199 , Y 360
X 197 , Y 434
X 159 , Y 327
Segmentation fault
from devilutionx.
well it was hard to find the correct spot to click on, lots of coordinates... . :(
from devilutionx.
Sounds like you might be trying the 64bit branch? The menu is a bit of a work in progress atm, and 64bit crashes as soon as you start the game. The 32bit build should work ok, though the menu is also a bit unfinished.
from devilutionx.
no actually not but i have also studied your progress in the 64-bit branch, great work!
I did compile the master branch but i think the problem has something to do with the mixed environment iḿ running.
No worries.
from devilutionx.
We are working on merging devilution 0.5 and then also most of the stuff in the 64-bit branch, so things should be more interesting in a weeks time :)
I'm hoping that we can get the 64bit up and running in a months time after that.
from devilutionx.
@VonKossa as you might have notice we have merged the code and things should now be in a better state, though 64bit builds currently only gets you to the loading screen. How ever you can force the compiler to 32bit mode by providing FORCE32=1 before running CMake. Hope that helps.
from devilutionx.
It did not work, the menu works as expected but if i try to start a game i am greeted with the message "out of hash space, aborted"
Thanks for your help anyway. :)
from devilutionx.
Related Issues (20)
- [Issue Report]: Not getting any new unique items after starting a new game (same character, different difficulty level) HOT 2
- Crash when converting save from Diablo to Hellfire HOT 7
- [Issue Report]: Fireball hurts other players even with friendly fire disabled HOT 3
- [Feature Request]: Option to use scroll wheel to cycle through quick spells HOT 9
- [Issue Report]: Tiny graphical glitch in Town by Alien Nest (Hellfire) HOT 3
- UI not rendering properly at 640x480 on Amiga HOT 5
- [Issue Report]: possible big endian problem HOT 1
- [Issue Report]: Overflow with Acolyte Amulet? HOT 4
- [Issue Report]: Diablo's speech played on dlvl 16 when joining the game after he's been killed.
- [Issue Report]: AppImage menu to switch between diablo and hellfire no longer shows up HOT 2
- [Feature Request]: Griswold's Inventory (Multiplayer?) HOT 14
- [Issue Report]: Life/mana added at level 50 HOT 1
- [Feature Request]: Unique Monsters In Hellfire? HOT 8
- Buttom of item text lables are being cut off for CJK font HOT 15
- [Issue Report]: Softlock random generated wall encased the enterence to level 14 HOT 11
- bug in devilutionx HOT 2
- [Issue Report]: Devil Kin Brute, rotation error HOT 8
- [Issue Report]: MinGW build fails on gcc 13 due to error in mingw-std-threads HOT 6
- [Issue Report]: Hellfire won't launch on steam deck HOT 2
- [Feature Request]: Support for importing PlayStation saves HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from devilutionx.