Giter Club home page Giter Club logo

Comments (24)

dalerank avatar dalerank commented on May 17, 2024

In develop, hope I have time now to support it
I used cmake that create solution for vs
Now it using nanort render, instead of opengl render, because SDL compatibility need
Will fix readme with build instructions

from nanogui-sdl.

dalerank avatar dalerank commented on May 17, 2024

clone repo
$mkdir build
$cd build & cmake ..
open solution in vs
sory just may test in on windows 10 only yet

from nanogui-sdl.

AregevDev avatar AregevDev commented on May 17, 2024

Thanks for replying, Which SDL version should I use when building?
Does it support SDL 2.0.9?

from nanogui-sdl.

dalerank avatar dalerank commented on May 17, 2024

Yep, just downloaded stable from libsdl.org, seems it need again update install instructions for win

from nanogui-sdl.

AregevDev avatar AregevDev commented on May 17, 2024

I am getting build errors when building the generated solution
https://pastebin.com/D2X2YTPH
Mind taking a look?

I am using SDL 2.0.9

from nanogui-sdl.

dalerank avatar dalerank commented on May 17, 2024

what '$build cmake ..' say?

from nanogui-sdl.

AregevDev avatar AregevDev commented on May 17, 2024
PS E:\source\nanogui-sdl\build> $build cmake ..
At line:1 char:8
+ $build cmake ..
+        ~~~~~
Unexpected token 'cmake' in expression or statement.
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : UnexpectedToken

from nanogui-sdl.

dalerank avatar dalerank commented on May 17, 2024

ouch.... $build cmake .. means run 'cmake ..' from folder build

from nanogui-sdl.

AregevDev avatar AregevDev commented on May 17, 2024

That's what I do, it configured alright, but it fails to build

I use this configure command to detect the libraries:

cmake -DSDL2_LIBRARY="../../libs/x64-windows-static/lib" -DSDL2_INCLUDE_DIR="../../libs/x64-windows-static/include" -DSDL2TTF_LIBRARY="../../libs/x64-windows-static/lib" -DSDL2TTF_INCLUDE_DIR="../../libs/x64-windows-static/include" -DSDL2_IMAGE_LIBRARY="../../libs/x64-windows-static/lib" -DSDL2_IMAGE_INCLUDE_DIR="../../libs/x64-windows-static/include" ..

from nanogui-sdl.

dalerank avatar dalerank commented on May 17, 2024

will try you cmd line
possible you need removed content from build folder and run your command again, because cmake may cached some variables? on my pc output was,

$build cmake ..
SDL2_INCLUDE_DIR is D:/SDL2/include
SDL2_LIBRARY_PATH is D:/SDL2/lib/x86/SDL2.lib
SDL2IMAGE_LIBRARY is D:/SDL2/lib/x86/SDL2_image.lib
SDL2TTF_LIBRARY is D:/SDL2/lib/x86/SDL2_ttf.lib
-- Configuring done
-- Generating done
-- Build files have been written to: D:/nanogui-sdl/build

from nanogui-sdl.

dalerank avatar dalerank commented on May 17, 2024
d:\nanogui-sdl\build>cmake -DSDL2_LIBRARY="D:/sdl2/xb86/sdl2.lib" -DSDL2_INCLUDE_DIR="d:/sdl2/include" -DSDL2TTF_LIBRARY="d:/sdl2/lib/x86/sdl2_ttf.lib" -DSDL2TTF_INCLUDE_DIR="d:/sdl2/include" -DSDL2_IMAGE_LIBRARY="d:/sdl2/lib/x86/sdl2_image.lib" SDL2_IMAGE_INCLUDE_DIR="d:/sdl2/include" ..
-- Building for: Visual Studio 14 2015
-- Selecting Windows SDK version  to target Windows 10.0.18362.
-- The C compiler identification is MSVC 19.0.24215.1
-- The CXX compiler identification is MSVC 19.0.24215.1
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
SDL2_INCLUDE_DIR is D:/SDL2/include
SDL2_LIBRARY_PATH is D:/SDL2/lib/x86/SDL2.lib
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
-- Found SDL2: D:/sdl2/xb86/sdl2.lib
-- Found SDL2_image: D:/SDL2/lib/x86/SDL2_image.lib
SDL2IMAGE_LIBRARY is D:/SDL2/lib/x86/SDL2_image.lib
SDL2TTF_LIBRARY is d:/sdl2/lib/x86/sdl2_ttf.lib
-- Found SDL2TTF: d:/sdl2/lib/x86/sdl2_ttf.lib
opengl32
-- Configuring done
-- Generating done
-- Build files have been written to: D:/nanogui-sdl/build

from nanogui-sdl.

AregevDev avatar AregevDev commented on May 17, 2024

What's you output when you build:
IE cmake --build .?

I deleted my build folder's contents, reconfigured again, it comes up with the same build errors

from nanogui-sdl.

dalerank avatar dalerank commented on May 17, 2024
d:\nanogui-sdl\build>cmake -DSDL2_LIBRARY="D:/sdl2/lib/x86/sdl2.lib" -DSDL2_INCLUDE_DIR="d:/sdl2/include" -DSDL2TTF_LIBRARY="d:/sdl2/lib/x86/sdl2_ttf.lib" -DSDL2TTF_INCLUDE_DIR="d:/sdl2/include" -DSDL2_IMAGE_LIBRARY="d:/sdl2/lib/x86/sdl2_image.lib" SDL2_IMAGE_INCLUDE_DIR="d:/sdl2/include" ..
-- Selecting Windows SDK version  to target Windows 10.0.18362.
SDL2_INCLUDE_DIR is D:/SDL2/include
SDL2_LIBRARY_PATH is D:/SDL2/lib/x86/SDL2.lib
-- Found SDL2: D:/sdl2/lib/x86/sdl2.lib
SDL2IMAGE_LIBRARY is D:/SDL2/lib/x86/SDL2_image.lib
SDL2TTF_LIBRARY is d:/sdl2/lib/x86/sdl2_ttf.lib
opengl32
-- Configuring done
-- Generating done
-- Build files have been written to: D:/nanogui-sdl/build

d:\nanogui-sdl\build>cmake --build .
Microsoft (R) Build Engine версии 14.0.27530.0

  example1.vcxproj -> D:\nanogui-sdl\build\Debug\example1.exe
  example1.vcxproj -> D:/nanogui-sdl/build/Debug/example1.pdb (Full PDB)
  Building Custom Rule D:/nanogui-sdl/CMakeLists.txt

d:\nanogui-sdl\build>

from nanogui-sdl.

AregevDev avatar AregevDev commented on May 17, 2024

Which SDL version do you use, that's so strange for me...

from nanogui-sdl.

AregevDev avatar AregevDev commented on May 17, 2024

Does nanogui-sdl depend on something, other than SDL, SDL image and SDL ttf?

from nanogui-sdl.

dalerank avatar dalerank commented on May 17, 2024

No other depends

from nanogui-sdl.

AregevDev avatar AregevDev commented on May 17, 2024

Which SDL version do you use, that's so strange for me...

And the version?

from nanogui-sdl.

dalerank avatar dalerank commented on May 17, 2024

Last stable from libsdl.org 2.0.10

from nanogui-sdl.

AregevDev avatar AregevDev commented on May 17, 2024

I rebuilt 2.0.10 this time, same errors.
They are about undefined references
SDL_FRect SDL_FPoint SDL_RenderFillRectF
Do you know where they are from?

from nanogui-sdl.

dalerank avatar dalerank commented on May 17, 2024

It sdl2 structs

from nanogui-sdl.

AregevDev avatar AregevDev commented on May 17, 2024

Are you sure?
image
Does not seem like that

from nanogui-sdl.

dalerank avatar dalerank commented on May 17, 2024

sure, official sdl repo http://hg.libsdl.org/SDL/file/bc90ce38f1e2/include/SDL_rect.h look at line 88

created travis-ci for test building on windows
it downloads stable sdl2 stuff from libsdl.org and unpack it
after that build
no errors

https://travis-ci.org/dalerank/nanogui-sdl/builds/582167397

from nanogui-sdl.

dalerank avatar dalerank commented on May 17, 2024

try now

from nanogui-sdl.

dalerank avatar dalerank commented on May 17, 2024

fixed

from nanogui-sdl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.