Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trouble installing samples on win64
#1
Hello. I just got the win64 itch binary & am trying to follow the instructions. When trying to install the samples, I get this error:

gcc -c -m32 -msse2 -I"../include" -std=c99 -O2 Barrel.c -o Barrel.o
gcc -c -m32 -msse2 -I"../include" -std=c99 -O2 Simon.c -o Simon.o
gcc Barrel.o Simon.o -o barrel ../lib/win32/Tilengine.lib -s
gcc: error: ../lib/win32/Tilengine.lib: No such file or directory
mingw32-make: *** [Makefile:42: barrel] Error 1

Please let me know what I need to do next. Thank you.
Reply
#2
Hi,
What file did you exactly download? 32-bit import library library is in /lib/win32/Tilengine.lib directory (please check it). If you're aiming 64-bit, i cannot give support on mingw64 as I use mainly Visual Studio Community on windows.
Reply
#3
(06-29-2021, 06:36 PM)megamarc Wrote: Hi,
What file did you exactly download? 32-bit import library library is in /lib/win32/Tilengine.lib directory (please check it). If you're aiming 64-bit, i cannot give support on mingw64 as I use mainly Visual Studio Community on windows.

I used "Windows 64-bit" from itch. The only directory inside lib is x64.
Reply
#4
Also, I was using mingw64. I will try Visual Studio Community & see if that works for me.
Reply
#5
Hi, is it working for you?

If you're targeting windows x64, you can use tcc (Tiny C Compiler): https://bellard.org/tcc/

I also have an alternative build script (build.bat) that builds samples using this tool, I use it internally to build and test samples:
https://github.com/megamarc/Tilengine/bl.../build.bat
Reply
#6
(07-01-2021, 07:46 PM)megamarc Wrote: Hi, is it working for you?

If you're targeting windows x64, you can use tcc (Tiny C Compiler): https://bellard.org/tcc/

I also have an alternative build script (build.bat) that builds samples using this tool, I use it internally to build and test samples:
https://github.com/megamarc/Tilengine/bl.../build.bat

Hey, thanks for checking! I finally got the samples to build using tcc. I also had to get SDL2.dll from the SDL website.

It turns out that I need mingw64 for raylib, so I couldn't just have 32 installed instead. It looked like you might not be able to have both 64 and 32 on the same computer since 64 tries to function as 32 when it's installed & they use the same command. tcc worked perfectly, so that solved the problem.

By the way, I have one small question. Can you disable the escape key from exiting the application?
Reply
#7
Hi! I'm glad using tcc solved the compatibility problems.

Regarding redefining ESC, yes, you can disable it by remapping INPUT_QUIT to scancode 0 after creating the main window:

Code:
TLN_CreateWindow (NULL, 0);
...
TLN_DefineInputKey(PLAYER1, INPUT_QUIT, 0);

Please take a look here for further information about input remapping:
Windowing - redefining inputs
Reply
#8
Thanks a lot for your help!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)