Jump to content
Visual Boy Advance-M
eggspect

Compiling under Linux fails, SDL related

Recommended Posts

I altered my CMakeLists.txt a little, the changes from default (SVN r1030) are:

option( ENABLE_WX "Build the wxWidgets port" OFF )
option( ENABLE_SDL "Build the SDL port" ON )
option( ENABLE_GTK "Build the GTK+ GUI" OFF )
option( ENABLE_DEBUGGER "Enable the debugger" ON )
option( ENABLE_NLS "Enable translations" ON )
option( ENABLE_ASM_CORE "Enable x86 ASM CPU cores" ON )
option( ENABLE_ASM_SCALERS "Enable x86 ASM graphic filters" ON )

Building without GTK+ because GNOME is dying of AIDS and cancer.

Config is okay.

-- Loaded CMakeASM_NASMInformation - ASM_NASM support is still experimental, please report issues
-- Configuring done
-- Generating done
-- Build files have been written to: ~/vbam/trunk

Compilation fails at:

[ 94%] Building CXX object CMakeFiles/vbam.dir/src/sdl/filters.cpp.o
~/vbam/trunk/src/sdl/filters.cpp: Assembler messages:
~/vbam/trunk/src/sdl/filters.cpp:627: Error: suffix or operands invalid for `call'
~/vbam/trunk/src/sdl/filters.cpp:638: Error: suffix or operands invalid for `call'
~/vbam/trunk/src/sdl/filters.cpp:640: Error: suffix or operands invalid for `call'
~/vbam/trunk/src/sdl/filters.cpp:651: Error: suffix or operands invalid for `call'
~/vbam/trunk/src/sdl/filters.cpp:653: Error: suffix or operands invalid for `call'
~/vbam/trunk/src/sdl/filters.cpp:655: Error: suffix or operands invalid for `call'
~/vbam/trunk/src/sdl/filters.cpp:666: Error: suffix or operands invalid for `call'
~/vbam/trunk/src/sdl/filters.cpp:668: Error: suffix or operands invalid for `call'
~/vbam/trunk/src/sdl/filters.cpp:670: Error: suffix or operands invalid for `call'
~/vbam/trunk/src/sdl/filters.cpp:672: Error: suffix or operands invalid for `call'
make[2]: *** [CMakeFiles/vbam.dir/src/sdl/filters.cpp.o] Error 1
make[1]: *** [CMakeFiles/vbam.dir/all] Error 2
make: *** [all] Error 2

Platform: Linux 2.6 amd64

inb4 someone makes fun of line numbers

What's the matter with this function? Why can't it compile? The same happens when I disable NASM.

Share this post


Link to post
Share on other sites

Config:

option( ENABLE_SDL "Build the SDL port" ON )
option( ENABLE_GTK "Build the GTK+ GUI" OFF )
option( ENABLE_DEBUGGER "Enable the debugger" ON )
option( ENABLE_NLS "Enable translations" ON )
option( ENABLE_ASM_CORE "Enable x86 ASM CPU cores" ON )
option( ENABLE_ASM_SCALERS "Enable x86 ASM graphic filters" ON )
option( ENABLE_LINK "Enable GBA linking functionality" OFF )
option( ENABLE_LIRC "Enable LIRC support" OFF )

Compile:

[ 89%] Building CXX object CMakeFiles/vbam.dir/src/sdl/filters.cpp.o
~/vbam/branches/Pre-Wx/src/sdl/filters.cpp: Assembler messages:
~/vbam/branches/Pre-Wx/src/sdl/filters.cpp:627: Error: suffix or operands invalid for `call'
~/vbam/branches/Pre-Wx/src/sdl/filters.cpp:638: Error: suffix or operands invalid for `call'
~/vbam/branches/Pre-Wx/src/sdl/filters.cpp:640: Error: suffix or operands invalid for `call'
~/vbam/branches/Pre-Wx/src/sdl/filters.cpp:651: Error: suffix or operands invalid for `call'
~/vbam/branches/Pre-Wx/src/sdl/filters.cpp:653: Error: suffix or operands invalid for `call'
~/vbam/branches/Pre-Wx/src/sdl/filters.cpp:655: Error: suffix or operands invalid for `call'
~/vbam/branches/Pre-Wx/src/sdl/filters.cpp:666: Error: suffix or operands invalid for `call'
~/vbam/branches/Pre-Wx/src/sdl/filters.cpp:668: Error: suffix or operands invalid for `call'
~/vbam/branches/Pre-Wx/src/sdl/filters.cpp:670: Error: suffix or operands invalid for `call'
~/vbam/branches/Pre-Wx/src/sdl/filters.cpp:672: Error: suffix or operands invalid for `call'
make[2]: *** [CMakeFiles/vbam.dir/src/sdl/filters.cpp.o] Error 1
make[1]: *** [CMakeFiles/vbam.dir/all] Error 2
make: *** [all] Error 2

Clearly not a branch issue. Notice that the lines in filters.cpp are the same as in the main trunk. Btw, I installed SDL 1.2.14 from source.

Share this post


Link to post
Share on other sites

maybe, but being on the prewx branch removes a whole bunch of other possibilities.

 

have to get nach to look at this, hes the SDL wizzard

Share this post


Link to post
Share on other sites

turn off asm, it's broken for sdl when work for the wxwidgets interface began, I don't know much related to asm related stuff, but I do know you need to compile with asm disabled for sdl.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×