logs archiveBotHelp.net / Freenode / #3dsdev / 2015 / September / 6 / 2
Lectem
guess I'll add the target import trick I was planning on adding for FindCTRULIB
damit, doesnt work
endrift
<Lectem> aw, include files were hardcoded ?
??
Lectem
yeah, in your toolchain file
https://github.com/mgba-emu/mgba/blob/master/src/platform/3ds/CMakeToolchain.txt#L15
endrift
oh
huh
Lectem
and erm
if audio uses a .h from 3ds
why not link ctrulib to it
endrift
you're looking at the wrong end of the stack
threading.h does
also I do link ctrulib?
set(link_flags "-L${DEVKITPRO}/libctru/lib -lctru -lm -specs=3dsx.specs ${arch_flags}")
anyway
I'm working on making a CIA file and it's just not showing up on the home screen when I inject it with FBI
a little box shows up then disappears :(
Lectem
endrift : thats the problem
you're not supposed to do it in the toolchainfile ^^
endrift
well
half of that I am
I kinda forgot I was doing that in the CMakeToolchain
yuriks
endrift: it only shows up if you're bootend into the cfw
endrift
I wrote this code originally a while ago
yuriks: I am booted into the CFW
both FBI and BlargSnes are CIAs and they both work
Lectem
also I think you should use BUILD_SHARED_LIBS and not BUILD_SHARED
https://github.com/mgba-emu/mgba/blob/master/CMakeLists.txt#L462
http://www.cmake.org/cmake/help/v3.0/variable/BUILD_SHARED_LIBS.html
endrift
hey lectem that's a bit different than what's wanted here
plus I tried using that and I've had trouble getting it to uh, work?
but what happens if you want to build both the .a and the .so?
yuriks
oh
Lectem
point is to let the user choose
^^
endrift
THE USER DOES CHOOSE
LOOK AT THE FUCKING TOP OF THE FILE
yuriks
O_o
endrift
set(BUILD_STATIC OFF CACHE BOOL "Build a static library")
set(BUILD_SHARED ON CACHE BOOL "Build a shared library")
Lectem
hey no need to get angry...
endrift
I'm getting pretty frustrated by how condescending this is getting
profi200
u mad bro?
Lectem
my point was that there was already a variable for this use case
endrift
but you can't have it both ways
profi200: not appreciated
[16:18:33] <endrift> but what happens if you want to build both the .a and the .so?
Lectem
well sorry if it sounds condescending, I'm just trying to make it better -.-
archshift
http://stackoverflow.com/questions/2152077/is-it-possible-to-get-cmake-to-build-both-a-static-and-shared-version-of-the-sam
endrift
^ that's what I've done
profi200
Building CIAs is a bit complicated. You need a rsf file, the stripped elf file and banner + icon.
endrift
I have all those
I basically copied the rsf file from GameYob and changed three lines
I stripped the elf, and used bannertool to make the banner
and smdhtool to make the icon
unless it's not supposed to be an smdh?
profi200
smdhtool generates not standard conform icons.
endrift
oh
okay
profi200
It misses a lot of infos.
smdhtool just generates the icon data and title infos shown in hb menu. All other infos are missing.
http://3dbrew.org/wiki/SMDH
endrift
haha of course the CIA build crashes immediately
or...something
it's locked the system
profi200
If bannertool supports it generate the icon with it instead.
endrift
it does, that worked
but something doesn't work when I try to load the CIA and idk what
Lectem
<endrift> you're looking at the wrong end of the stack <<< from cmake points of view there's no dependancy to ctrulib for audio.c, thats why I spoke about audio.c and not threading.h. The solution would be hide the implementation in a .c file
endrift
the whole ELF should be dependent on ctrulib
the whole reason it's in the .h files is so it can get inlined without LTO
audio.c does not use any of those functions. They're included indirectly
do the WAVs for banners need to be in a specific bitdepth?
I tried to put in a 16-bit WAV and it's given me a completely different sound
profi200
The 3DS plays only certain formats and the max play time is 3 seconds.
endrift
hm
yeah it didn't like my sample rate
not sure why it's crashing though
profi200
Define crashing.
endrift
it locks up
the whole device
home button doesn't work anymore
I have to hold down the power button to get it to do anything
profi200
Then it did something very bad (causes a kernelpanic).
endrift
ah I see
well it keeps happening :/
and I don't know how to debug it
profi200
If it is just a crash (data abort or similar) it will crash and return to home menu giving you an error message forcing you to reboot.
endrift
I figured'
but it's not that
Lectem
rofl, so cmake doesnt use the INCLUDE_DIRECTORIES property of subdirectories
endrift
yep
Lectem
but use COMPILE_DEFINITIONS and other properties
sigh
endrift
subdirectories are isolated
nope, compile definitions is isolated too
Lectem
http://www.cmake.org/pipermail/cmake/2008-November/025606.html
endrift
that's why I did PARENT_SCOPE
Lectem
i'm talking about target properties not variables
« prev 1 2 3 4 5 6 next »