Comments (24)
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.
clone repo
$mkdir build
$cd build & cmake ..
open solution in vs
sory just may test in on windows 10 only yet
from nanogui-sdl.
Thanks for replying, Which SDL version should I use when building?
Does it support SDL 2.0.9?
from nanogui-sdl.
Yep, just downloaded stable from libsdl.org, seems it need again update install instructions for win
from nanogui-sdl.
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.
what '$build cmake ..' say?
from nanogui-sdl.
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.
ouch.... $build cmake .. means run 'cmake ..' from folder build
from nanogui-sdl.
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.
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.
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.
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.
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.
Which SDL version do you use, that's so strange for me...
from nanogui-sdl.
Does nanogui-sdl
depend on something, other than SDL, SDL image and SDL ttf?
from nanogui-sdl.
No other depends
from nanogui-sdl.
Which SDL version do you use, that's so strange for me...
And the version?
from nanogui-sdl.
Last stable from libsdl.org 2.0.10
from nanogui-sdl.
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.
It sdl2 structs
from nanogui-sdl.
Are you sure?
Does not seem like that
from nanogui-sdl.
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.
try now
from nanogui-sdl.
fixed
from nanogui-sdl.
Related Issues (20)
- Ir works on iOS and Android? HOT 1
- Failing to compile on MacOS X HOT 3
- How to draw on background | main window HOT 1
- critical error HOT 1
- Dropboxes and Comboboxes HOT 2
- Image panel HOT 1
- CPU and memory leak HOT 1
- Rendering of existing SDL_Surface HOT 3
- Placement of widgets for specific coordinates (x,y) HOT 8
- Multiline TextBox or TextArea HOT 7
- Screen overlapping issues HOT 1
- Correct way to dispose a window entirely? HOT 2
- Hello! can this work without X11? (ie DRM render through SDL) HOT 3
- Programmatic way of setting focus on button?
- I have a problem with 100% CPU use and incorrect rendering HOT 13
- async texture load causes flickering during initial frames HOT 3
- Does not compile in C++17 HOT 6
- Labels too tight in the screenshot? HOT 4
- Color Wheel Widget doesn't work
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nanogui-sdl.