Homebrew Trouble compiling projects - VS 2015

Quantumcat

Dead and alive
OP
Member
Joined
Nov 23, 2014
Messages
15,144
Trophies
0
Location
Canberra, Australia
Website
boot9strap.com
XP
11,094
Country
Australia
Hi guys,

I am trying to compile some simple homebrew so I can play around with it and learn (I downloaded the source from the author's github). I fixed the first set of errors I got - didn't have the right libraries so I downloaded them and put them in the devkitPro folder (just to keep them all in the same place). Then I had to hardcode the directory that the library .h file was in (#include "C:\devkitPro\..."). Now I have current problem which I haven't solved yet:

Code:
1>------ Build started: Project: Graphing Calculator, Configuration: Debug Win32 ------
1>  linking GraphCalc3DS-master.elf
1>  c:/devkitpro/devkitarm/bin/../lib/gcc/arm-none-eabi/5.3.0/../../../../arm-none-eabi/bin/ld.exe: cannot find -lsftd
1>  c:/devkitpro/devkitarm/bin/../lib/gcc/arm-none-eabi/5.3.0/../../../../arm-none-eabi/bin/ld.exe: cannot find -lfreetype
1>  c:/devkitpro/devkitarm/bin/../lib/gcc/arm-none-eabi/5.3.0/../../../../arm-none-eabi/bin/ld.exe: cannot find -lpng
1>  c:/devkitpro/devkitarm/bin/../lib/gcc/arm-none-eabi/5.3.0/../../../../arm-none-eabi/bin/ld.exe: cannot find -lz
1>  c:/devkitpro/devkitarm/bin/../lib/gcc/arm-none-eabi/5.3.0/../../../../arm-none-eabi/bin/ld.exe: cannot find -lsf2d
1>collect2.exe : error : ld returned 1 exit status
1>  make[1]: *** [/c/Users/thequ_000/Desktop/3DS_Homebrew/GraphCalc3DS-master/GraphCalc3DS-master.elf] Error 1
1>  make: *** [build] Error 2
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(37,5): error MSB3073: The command "make" exited with code 2.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Putting the library folders in the same folder as the solution file didn't help. I also realised I probably had to build the libraries, so I built one (and got a .sdf file) and put that in the same directory as the solution file but that didn't help either. Does anyone have any ideas? I followed wiki.gbatemp.net/wiki/3DS_Homebrew_Development to set up my environment (in Visual Studio Professional 2015).

Thanks!!
 

Quantumcat

Dead and alive
OP
Member
Joined
Nov 23, 2014
Messages
15,144
Trophies
0
Location
Canberra, Australia
Website
boot9strap.com
XP
11,094
Country
Australia
Code:
cannot find -lsftd
cannot find -lfreetype
cannot find -lpng
cannot find -lz
cannot find -lsf2d
You are missing portlibs and sf2dlib and sftdlib.
I do have sf2dlib and sftdlib though. I downloaded them and put them in the devkitPro folder, and the includes all point to the right headers. I tried building sf2dlib and put the built file with the .sln file but it didn't make a difference. Can you tell me where I need to put the files?
 

Gocario

GBAFail'd
Member
Joined
Sep 5, 2015
Messages
640
Trophies
0
Location
Bourg Palette
XP
804
Country
France
I do have sf2dlib and sftdlib though. I downloaded them and put them in the devkitPro folder, and the includes all point to the right headers. I tried building sf2dlib and put the built file with the .sln file but it didn't make a difference. Can you tell me where I need to put the files?
I do not use VS. :/
Using devkitPro, you only have to do `make install` for each lib.
 

Quantumcat

Dead and alive
OP
Member
Joined
Nov 23, 2014
Messages
15,144
Trophies
0
Location
Canberra, Australia
Website
boot9strap.com
XP
11,094
Country
Australia
My sf2d files are, after doing make install, within:
  • 'devkitPro/libctru/lib' for the libsf2d.a
  • 'devkitPro/libctru/include' for the sf2d.h
How do you do make install? From the command line? Eg would I have the libsf2d folder (source code) in devkitPro, cd to it in the command line, and say make install?

--------------------- MERGED ---------------------------

By the way a million thanks for helping I really appreciate it.

--------------------- MERGED ---------------------------

I just tried that and it said make: no rule to make target 'install'. Stop. :-(
 

Ridge

they/them
Member
Joined
Sep 10, 2015
Messages
389
Trophies
0
Age
28
Location
Virtual Reality
Website
twitter.com
XP
401
Country
Norway
How do you do make install? From the command line? Eg would I have the libsf2d folder (source code) in devkitPro, cd to it in the command line, and say make install?

--------------------- MERGED ---------------------------

By the way a million thanks for helping I really appreciate it.

--------------------- MERGED ---------------------------

I just tried that and it said make: no rule to make target 'install'. Stop. :-(

I'm not very good at this either, but I think it might work better with Windows PowerShell.
 

Gocario

GBAFail'd
Member
Joined
Sep 5, 2015
Messages
640
Trophies
0
Location
Bourg Palette
XP
804
Country
France
  1. Clone the sf2dlib repo or download it as archive (and decompress it).
  2. Launch the cmd in the libsf2d folder (Makefile file and source folder are present next to)
  3. Do `make install`
  4. Wait...
  5. sf2d shall be installed now.
 
Last edited by Gocario,

Quantumcat

Dead and alive
OP
Member
Joined
Nov 23, 2014
Messages
15,144
Trophies
0
Location
Canberra, Australia
Website
boot9strap.com
XP
11,094
Country
Australia
  1. Clone the sf2dlib repo or download it as archive (and decompress it).
  2. Launch the cmd in the libsf2d folder (Makefile file and source folder are present next to)
  3. Do `make install`
  4. Wait...
  5. sf2d shall be installed now.
Oh thanks! I did the make on the wrong folder (the real one was inside) and it put a .a folder where you said it would. I'll test the program now.

--------------------- MERGED ---------------------------

Success - it didn't complain about -lsf2d this time. Now to do it to the others :-))))
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    K3Nv2 @ K3Nv2: This movie rip so werid has 1080p quality but the audios ripped with movie theater audio quality