No it wasn’t cleanly, but here is the compile log. Not many issues, but a
few:
jpg at trusty-laptop:~/Desktop/sdlq/SPSDisplay/SPSDisplay/trunk$ make
gcc -c -g -Wall -I. -ISDL -Wno-unknown-pragmas -D_REENTRANT spa.c -o spa.o
gcc -MM -g -Wall -I. -ISDL -Wno-unknown-pragmas -D_REENTRANT spa.c > spa.d
g++ -c -g -Wall -I. -ISDL -Wno-unknown-pragmas -D_REENTRANT -std=gnu++0x
SDL/SDLDisplay.cpp -o SDL/SDLDisplay.o
g++ -MM -g -Wall -I. -ISDL -Wno-unknown-pragmas -D_REENTRANT -std=gnu++0x
SDL/SDLDisplay.cpp > SDL/SDLDisplay.d
g++ -c -g -Wall -I. -ISDL -Wno-unknown-pragmas -D_REENTRANT -std=gnu++0x
SDL/SDLFont.cpp -o SDL/SDLFont.o
g++ -MM -g -Wall -I. -ISDL -Wno-unknown-pragmas -D_REENTRANT -std=gnu++0x
SDL/SDLFont.cpp > SDL/SDLFont.d
g++ -c -g -Wall -I. -ISDL -Wno-unknown-pragmas -D_REENTRANT -std=gnu++0x
SDL/SDLLabel.cpp -o SDL/SDLLabel.o
g++ -MM -g -Wall -I. -ISDL -Wno-unknown-pragmas -D_REENTRANT -std=gnu++0x
SDL/SDLLabel.cpp > SDL/SDLLabel.d
g++ -c -g -Wall -I. -ISDL -Wno-unknown-pragmas -D_REENTRANT -std=gnu++0x
SDL/SDLSurface.cpp -o SDL/SDLSurface.o
g++ -MM -g -Wall -I. -ISDL -Wno-unknown-pragmas -D_REENTRANT -std=gnu++0x
SDL/SDLSurface.cpp > SDL/SDLSurface.d
g++ -c -g -Wall -I. -ISDL -Wno-unknown-pragmas -D_REENTRANT -std=gnu++0x
SDL/SDLView.cpp -o SDL/SDLView.o
In file included from SDL/SDLView.cpp:9:0:
SDL/SDLView.h: In constructor ?SDLView::SDLView(const SDL_Rect&)?:
SDL/SDLView.h:57:15: warning: ?SDLView::mBackgroundColor? will be
initialized after [-Wreorder]
SDL_Color mBackgroundColor;
^
SDL/SDLView.h:55:11: warning: ?bool SDLView::mNeedsDisplay? [-Wreorder]
bool mNeedsDisplay;
^
SDL/SDLView.cpp:24:1: warning: when initialized here [-Wreorder]
SDLView::SDLView(const SDL_Rect& inFrame)
^
In file included from SDL/SDLView.cpp:9:0:
SDL/SDLView.h: In constructor ?SDLView::SDLView(int16_t, int16_t, uint16_t,
uint16_t)?:
SDL/SDLView.h:57:15: warning: ?SDLView::mBackgroundColor? will be
initialized after [-Wreorder]
SDL_Color mBackgroundColor;
^
SDL/SDLView.h:55:11: warning: ?bool SDLView::mNeedsDisplay? [-Wreorder]
bool mNeedsDisplay;
^
SDL/SDLView.cpp:32:1: warning: when initialized here [-Wreorder]
SDLView::SDLView(int16_t inX, int16_t inY, uint16_t inWidth, uint16_t
inHeight)
^
g++ -MM -g -Wall -I. -ISDL -Wno-unknown-pragmas -D_REENTRANT -std=gnu++0x
SDL/SDLView.cpp > SDL/SDLView.d
g++ -c -g -Wall -I. -ISDL -Wno-unknown-pragmas -D_REENTRANT -std=gnu++0x
BBBDisplayApp.cpp -o BBBDisplayApp.o
g++ -MM -g -Wall -I. -ISDL -Wno-unknown-pragmas -D_REENTRANT -std=gnu++0x
BBBDisplayApp.cpp > BBBDisplayApp.d
g++ -c -g -Wall -I. -ISDL -Wno-unknown-pragmas -D_REENTRANT -std=gnu++0x
ChargeController.cpp -o ChargeController.o
g++ -MM -g -Wall -I. -ISDL -Wno-unknown-pragmas -D_REENTRANT -std=gnu++0x
ChargeController.cpp > ChargeController.d
g++ -c -g -Wall -I. -ISDL -Wno-unknown-pragmas -D_REENTRANT -std=gnu++0x
SPSDisplayApp.cpp -o SPSDisplayApp.o
SPSDisplayApp.cpp: In member function ?virtual bool SPSDisplayApp::init()?:
SPSDisplayApp.cpp:85:11: warning: unused variable ?labelFontBold?
[-Wunused-variable]
SDLFont* labelFontBold = SDLFont::fontForName("HelveticaNeue-Bold.ttf",
12);
^
g++ -MM -g -Wall -I. -ISDL -Wno-unknown-pragmas -D_REENTRANT -std=gnu++0x
SPSDisplayApp.cpp > SPSDisplayApp.d
g++ -c -g -Wall -I. -ISDL -Wno-unknown-pragmas -D_REENTRANT -std=gnu++0x
TristarMPPT.cpp -o TristarMPPT.o
g++ -MM -g -Wall -I. -ISDL -Wno-unknown-pragmas -D_REENTRANT -std=gnu++0x
TristarMPPT.cpp > TristarMPPT.d
g++ spa.o SDL/SDLDisplay.o SDL/SDLFont.o SDL/SDLLabel.o SDL/SDLSurface.o
SDL/SDLView.o BBBDisplayApp.o ChargeController.o SPSDisplayApp.o
TristarMPPT.o -L/usr/local/lib -Wl,-rpath,/usr/local/lib -lSDL -lSDL_ttf
-lmodbus -lpthread -o app
jpg at trusty-laptop:~/Desktop/sdlq/SPSDisplay/SPSDisplay/trunk$
```On Thu, Jul 3, 2014 at 4:59 AM, Rick Mann <rmann at latencyzero.com> wrote:
> Maybe not, unless they don't build cleanly. Also, I'm trying to build the
> Xcode Framework, not the regular lib.
>
> Sylvain, here's a small sample:
>
> https://pastee.org/wda6
>
> It produces this:
>
>
> http://cl.ly/image/1N1h232k0B1g/Screen%20Shot%202014-07-03%20at%202.56.49%20.png
>
> This is with the 2.0.11 SDL 1.2 Framework.
>
>
> On Jul 3, 2014, at 02:03 , Jonathan Greig <@Jonathan_Greig> wrote:
>
> > SDL and SDL2 doesn't really take very long to build.
> >
> > I got it to build and run on Kubuntu 14.04 but all I got was a black
> screen and it jacked my resolution to 640x480. I'm not very fluent with OSX
> as I am Linux.
> >
> >
> > On Thu, Jul 3, 2014 at 3:45 AM, Rick Mann <rmann at latencyzero.com> wrote:
> > Hmm. I'm using the Framework. I'd have to get the whole thing and build
> it.
> >
> > On Jul 3, 2014, at 00:39 , Sylvain Becker <sylvain.becker at gmail.com> wrote:
> >
> > > Make sure you are using the latest version of the file "SDL_ttf.c" for
> > > the SDL_ttf mercurial trunk ! (I mean not only the SDL2 version)
> > >
> > > Which size are you using for the font ?
> > >
> > > I won't be able to run your code as I dont use sdl-1.2 anymore, and
> > > dont want to port the whole app.
> > > Please, write a minimal test case if you want me to run it !
> > > Then, I will try it tomorrow.
> > >
> > > To answer your question : if I remember correctly, you can save
> > > surface to image with SDL_SaveBmp
> > >
> > > Cheers,
> > > Sylvain
> > >
> > >
> > >
> > >
> > > On Thu, Jul 3, 2014 at 9:09 AM, Rick Mann <rmann at latencyzero.com> wrote:
> > >> I tried it on the BeagleBone Black/Debian, I get the exact same
> results. I'm not very well versed with git, but I've put my code up there:
> > >>
> > >> https://github.com/JetForMe/SPSDisplay
> > >>
> > >>
> > >> On Jul 2, 2014, at 14:09 , Sylvain Becker <sylvain.becker at gmail.com> wrote:
> > >>
> > >>> I mixed SDL_BlitSurface and SDL_RenderCopy, the DstRect is indeed
> used
> > >>> for positionning only.
> > >>>
> > >>>
> > >>> Your font, with SDL2, looks correct to me ...
> > >>>
> > >>> Also, you can try with TTF_RenderUTF8_Shaded, instead of
> TTF_RenderUTF8_Blender
> > >>>
> > >>> I am almost sure that you can use the SDL2_ttf2 with SDL-1.2
> > >>> Give a try only replacing SDL_ttf.c
> > >>>
> > >>>
> > >>>
> > >>>
> > >>>
> > >>> On Wed, Jul 2, 2014 at 10:54 PM, Rick Mann <rmann at latencyzero.com> wrote:
> > >>>>
> > >>>> On Jul 2, 2014, at 11:23 , Sylvain Becker <sylvain.becker at gmail.com> wrote:
> > >>>>
> > >>>>> - give a try with different fonts.
> > >>>>
> > >>>> I tried it with an OTF version of the font, and while the glyph
> positioning is different, it's still all over the map.
> > >>>>
> > >>>> --
> > >>>> Rick
> > >>>>
> > >>>>
> > >>>>
> > >>>> _______________________________________________
> > >>>> SDL mailing list
> > >>>> SDL at lists.libsdl.org
> > >>>> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
> > >>>
> > >>>
> > >>>
> > >>> --
> > >>> Sylvain Becker
> > >>> _______________________________________________
> > >>> SDL mailing list
> > >>> SDL at lists.libsdl.org
> > >>> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
> > >>
> > >>
> > >> --
> > >> Rick
> > >>
> > >>
> > >>
> > >> _______________________________________________
> > >> SDL mailing list
> > >> SDL at lists.libsdl.org
> > >> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
> > >
> > >
> > >
> > > --
> > > Sylvain Becker
> > > _______________________________________________
> > > SDL mailing list
> > > SDL at lists.libsdl.org
> > > http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
> >
> >
> > --
> > Rick
> >
> >
> >
> > _______________________________________________
> > SDL mailing list
> > SDL at lists.libsdl.org
> > http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
> >
> > _______________________________________________
> > SDL mailing list
> > SDL at lists.libsdl.org
> > http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>
>
> --
> Rick
>
>
>
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>