protoman / rockbot

An open-source, SDL based, game engine to replicate old style NES games, mostly Megaman ones, and an editor made with Qt, for custom graphics, weapons, bosses, enemies and level creation.
http://rockbot.upperland.net
83 stars 19 forks source link

How i can compile #115

Open inukaze opened 5 years ago

inukaze commented 5 years ago

Hi there, where are the instructions for how compile the source code because i do the follow :

git clone https://github.com/protoman/rockbot
cd rockbot
./fetch.sh
make

make: *** No se especificó ningún objetivo y no se encontró ningún makefile. Alto.

ok i try again :

$ git clone https://github.com/protoman/rockbot
$ cd rockbot
$ ./fetch.sh
$ qmake rockbot.prx
$ make

g++ -m64 -Wl,-O1 -o rockbot -L/usr/X11R6/lib64 -lQt5Gui -lQt5Core -lGL -lpthread /usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/Scrt1.o: En la función _start': (.text+0x20): referencia amain' sin definir collect2: error: ld returned 1 exit status Makefile:173: fallo en las instrucciones para el objetivo 'rockbot' make: *** [rockbot] Error 1

hardcaz commented 4 years ago

@protoman you mean x64 right

hardcaz commented 4 years ago

so i need to change their names from mingw81_64 to mingwx64 and mingw_32 to mingwx32

hardcaz commented 4 years ago

also what do i do with the makefile

hardcaz commented 4 years ago

also i did rename -LC:\Qt\4.8.4\lib to -LC:\Qt\5.15.0\lib

hardcaz commented 4 years ago

and i still get the error cannot find -lSDL

hardcaz commented 4 years ago

and the error is C:/Qt/Tools/mingw810_32/bin/../lib/gcc/i686-w64-mingw32/8.1.0/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lSDL

hardcaz commented 4 years ago

i cant see the full error

hardcaz commented 4 years ago

and there is another error which is collect2.exe: error: ld returned 1 exit status

protoman commented 4 years ago

Something is wrong in your path and it is not finding libsdl.a, this is the issue, you need to fix your path, don't rename them on your windows, just point to the right path in Rockbot.pro, if needed, add entries for your lib folders where you placed the SDL library files.

The last error is just linker telling you it has failed.

Please be patient (or use google) while I am building a win7 vm with more recent versions of the SDK, so I can give you better instructions, if possible,

Iuri Fiedoruk, Software Developer

On Wed, Jul 8, 2020 at 5:01 AM cypherpunks132 notifications@github.com wrote:

and there is another error which is collect2.exe: error: ld returned 1 exit status

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/protoman/rockbot/issues/115#issuecomment-655357992, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ6XRGHARD7DVDAC6L4TBLR2QRXJANCNFSM4HH5UDDQ .

hardcaz commented 4 years ago

i cant find the file libsdl.a

protoman commented 4 years ago

Yeah, I missed that. Please wait.

Iuri Fiedoruk, Software Developer

On Wed, Jul 8, 2020 at 10:04 AM cypherpunks132 notifications@github.com wrote:

i cant find the file libsdl.a

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/protoman/rockbot/issues/115#issuecomment-655506032, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ6XRA4SG6HJSJR4YVB24DR2RVHLANCNFSM4HH5UDDQ .

hardcaz commented 4 years ago

ok

protoman commented 4 years ago

https://drive.google.com/file/d/1EgUtn6PAY3Dbqa_nNEsaVAjZIIwXsMoQ/view?usp=sharing Put those in your qt/mingw/lib folder.

https://drive.google.com/file/d/1J_C9ybinaq6NqwYXxolsFSD5J65EddxR/view?usp=sharing Store that for later, when running the game.

The configuration I used: Version:1.0 StartHTML:0000000107 EndHTML:0000003931 StartFragment:0000000127 EndFragment:0000003893

win32 {

DEFINES += WIN32

LIBS =  -lSDL_mixer -lSDL_image -lSDL_ttf -lSDL_gfx -lmingw32

-lSDL -mwindows -LC:\Qt\5.15.0\mingw81_32\lib -L/usr/lib -L/usr/lib/x86 -LC:\MinGW\lib -LC:\MinGW\lib\x86 -LC:\Qt\5.15.0\mingw81_32\lib\x86

INCLUDES = -I/usr/include/SDL -I/usr/include -I. -I./include

-L/usr/lib -IC:\Qt\5.15.0\mingw81_32\include

QMAKE_CCFLAGS += -DWIN32 -DPC

QMAKE_CXXFLAGS += -DWIN32 -DPC -IC:\Qt\5.15.0\mingw81_32\

-IC:\Qt\5.15.0\mingw81_32\include -LC:\Qt\5.15.0\mingw81_32\lib

CONFIG -= console

}

With that I was able to build.

For running it, there are a few extra steps needed, but let's first try to compile it ;)

-- Iuri Fiedoruk, Software Developer

On Wed, Jul 8, 2020 at 10:07 AM cypherpunks132 notifications@github.com wrote:

ok

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/protoman/rockbot/issues/115#issuecomment-655507651, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ6XRHSIBHNKUP2UDZVZNTR2RVSLANCNFSM4HH5UDDQ .

protoman commented 4 years ago

Ignore this line (don't know how it came with a copy/paste): Version:1.0 StartHTML:0000000107 EndHTML:0000003931 StartFragment:0000000127 EndFragment:0000003893

Iuri Fiedoruk, Software Developer

On Wed, Jul 8, 2020 at 10:14 AM Iuri Fiedoruk protoman@upperland.net wrote:

https://drive.google.com/file/d/1EgUtn6PAY3Dbqa_nNEsaVAjZIIwXsMoQ/view?usp=sharing Put those in your qt/mingw/lib folder.

https://drive.google.com/file/d/1J_C9ybinaq6NqwYXxolsFSD5J65EddxR/view?usp=sharing Store that for later, when running the game.

The configuration I used: Version:1.0 StartHTML:0000000107 EndHTML:0000003931 StartFragment:0000000127 EndFragment:0000003893

win32 {

DEFINES += WIN32

LIBS =  -lSDL_mixer -lSDL_image -lSDL_ttf -lSDL_gfx -lmingw32 -lSDL -mwindows -LC:\Qt\5.15.0\mingw81_32\lib -L/usr/lib -L/usr/lib/x86 -LC:\MinGW\lib -LC:\MinGW\lib\x86 -LC:\Qt\5.15.0\mingw81_32\lib\x86

INCLUDES = -I/usr/include/SDL -I/usr/include -I. -I./include -L/usr/lib -IC:\Qt\5.15.0\mingw81_32\include

QMAKE_CCFLAGS += -DWIN32 -DPC

QMAKE_CXXFLAGS += -DWIN32 -DPC -IC:\Qt\5.15.0\mingw81_32\ -IC:\Qt\5.15.0\mingw81_32\include -LC:\Qt\5.15.0\mingw81_32\lib

CONFIG -= console

}

With that I was able to build.

For running it, there are a few extra steps needed, but let's first try to compile it ;)

-- Iuri Fiedoruk, Software Developer

On Wed, Jul 8, 2020 at 10:07 AM cypherpunks132 notifications@github.com wrote:

ok

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/protoman/rockbot/issues/115#issuecomment-655507651, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ6XRHSIBHNKUP2UDZVZNTR2RVSLANCNFSM4HH5UDDQ .

hardcaz commented 4 years ago

error: [Makefile:245: Makefile] Error 3

protoman commented 4 years ago

I can't help you with Makefile errors, sorry. OK, first, send me a direct email to protoman@upperland.net, let's stop doing that through github. And send me your .pro file attached.

Iuri Fiedoruk, Software Developer

On Wed, Jul 8, 2020 at 10:27 AM cypherpunks132 notifications@github.com wrote:

error: [Makefile:245: Makefile] Error 3

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/protoman/rockbot/issues/115#issuecomment-655519515, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ6XRAXX7GA2ME4MGR5APDR2RX5DANCNFSM4HH5UDDQ .

hardcaz commented 4 years ago

done

hardcaz commented 4 years ago

when i try to compile the master branch it starts but it starts directly in a stage instead of the main menu

protoman commented 4 years ago

This is just because quickload is true. It is a debug option so I can test with less time until getting im the stage. I will make a new build later and remove it.

Em qua, 8 de jul de 2020 13:03, cypherpunks132 notifications@github.com escreveu:

when i try to compile the master branch it starts but it starts directly in a stage instead of the main menu

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/protoman/rockbot/issues/115#issuecomment-655610306, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ6XRDNFXYD7TVG2CVYKMTR2SKDXANCNFSM4HH5UDDQ .

hardcaz commented 4 years ago

how do i set quickload to false

protoman commented 4 years ago

On main.cpp, check for GAME_FLAGS[FLAG_QUICKLOAD] = true; Comment out and rebuild.

Iuri Fiedoruk, Software Developer

On Wed, Jul 8, 2020 at 1:38 PM cypherpunks132 notifications@github.com wrote:

how do i set quickload to false

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/protoman/rockbot/issues/115#issuecomment-655629155, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ6XRGMSTP3IRHAELXBHNLR2SOJDANCNFSM4HH5UDDQ .

hardcaz commented 4 years ago

so change true to false

protoman commented 4 years ago

On main.cpp, check for GAME_FLAGS[FLAG_QUICKLOAD] = true; Comment out and rebuild.

Iuri Fiedoruk, Software Developer

On Wed, Jul 8, 2020 at 1:59 PM cypherpunks132 notifications@github.com wrote:

so change true to false

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/protoman/rockbot/issues/115#issuecomment-655639506, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ6XRETJZ6FLFU7NYDUWZ3R2SQVLANCNFSM4HH5UDDQ .

hardcaz commented 4 years ago

or do i remove the # from #itdef pc

protoman commented 4 years ago

Man, I have to work. Google it. If you don't know how to comment out a line of code in C++, I am not the one who will teach you.

Em qua, 8 de jul de 2020 14:02, cypherpunks132 notifications@github.com escreveu:

or do i remove the # from #itdef pc

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/protoman/rockbot/issues/115#issuecomment-655641182, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJ6XRDX6RUJVZMIRRVILZDR2SRBTANCNFSM4HH5UDDQ .

hardcaz commented 4 years ago

i did comment out but nothing changed

hardcaz commented 4 years ago

i am not sure what point in the line i am supposed to comment out

hardcaz commented 4 years ago

also there are multiple GAME_FLAGS[FLAG_QUICKLOAD] = true;

hardcaz commented 4 years ago

fixed

hardcaz commented 4 years ago

can anyone help me compile the old commit 1182e7dbfe3b9ee2174ea0b4218dbb9747c89cd2