Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - Strelok

Pages: [1]
General / NMake can't create the project solution for jpeg
« on: October 18, 2014, 05:00:41 pm »
DISCLAIMER: I'm using bugged cutting edge software Windows 10 techical preview x64 + SFML master + CMake Nightly + Visual Studio 14 CTP 4

Visual studio 14 CTP seems to be working well with CMake nightlies but it looks like freetype and image need to be recompiled E.G:
7>jpeg.lib(jerror.obj) : error LNK2019: unresolved external symbol fprintf referenced in function output_message
7>jpeg.lib(jerror.obj) : error LNK2019: unresolved external symbol __iob_func referenced in function output_message
I've managed to rebuild freetype succesfully (thanks to CMake), but NMake gives me this error when I try to build the project for image.
C:\jpeg-6b>nmake /f makefile.vc

Microsoft (R) Program Maintenance Utility Version 14.00.22129.1
Copyright (C) Microsoft Corporation.  All rights reserved.

NMAKE : fatal error U1073: don't know how to make 'jconfig.h'
This is what MSDN says  ???.
This might have a solution but I can't understand what has been written  ::).
I'm assuming Laurent (or whoever compiled the extlibs for windows) has a solution for my problem, unless my working environment is missing something.

EDIT: Apparently I had been using the wrong version of the sources. After updating from 6b to 9a nmake /f makefile.vc setup-v10 seems to be working.
EDIT 2: I still have linker issues about runtime libraries, can anyone confirm that I need to specify /MD on both the freetype and jpeg library?

OS: any SFML version: git build:DEBUG TGUI version:git build:DEBUG Error: SEGFAULT
#include <SFML/Window.hpp>
#include <TGUI/TGUI.hpp>

class Form
    Form(sf::RenderWindow& window): m_Gui(window)
    ~Form() {}
    tgui::Gui m_Gui;
class Game
        : m_Window(sf::VideoMode::getDesktopMode(), "...", sf::Style::Default)
        , m_Form(m_Window)
    ~Game() {}
    Form m_Form; //<----this is the error! Even though m_Window is initialized before m_Form
    sf::RenderWindow m_Window; //<---- the order is decided by the members' position in the header
    tgui::Gui m_Gui; //[-WReorder] or [-Wall] weren't set in my project so I didn't notice.

int main()
    Game game;
    return 0;

Pages: [1]