-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running the converter in windows #8
Comments
There's a pending pull request with build instructions for Linux ( #6 ). Further build instructions (for Windows, where the handling of dependencies may be a bit more fiddly) will probably be added soon. Depending on whether you explicitly want to build it on your own or just use a precompiled binary, you might want to have a look at #1 (comment) |
Compiling on Windows w/o libpng is simple:
|
@lexaknyazev Thank you for the tips, |
cd was just change directory to the root of the repo so that the Cmakelists.txt file is accessible on the path. You can get CMake from here: https://cmake.org/download/ To open the sln file get Visual Studio Community Edition here: https://www.visualstudio.com/vs/community/ Build the solution file in Visual Studio (CTRL+SHIFT+B). This will give you collada2gltf.exe command line tool in the bin\debug or bin\release subfolder depending on your build configuration (I believe default is debug). |
( BTW: You also need a Visual Studio installed for all this. Regarding CMake: You can use it from the command line as well. For us windows users, using "cmake-gui" may be more convenient, though:
EDIT: I was too slow here. |
Thank you for sharing the steps.
Following was the output from
Any suggestions on how to resolve it? |
I cannot check of verify this right now, but a first guess based on the message: In the toolbar of Visual Studio, there are two dropdown menus: The left one allows selecting "Debug", "Release" etc. The right one by default shows "x86" (or "Win32", this depends on VS version and other things). You may have to select an entry that indicates 64 bits, usually called "x86_64" or "x64" (If there is no such entry, you will have to create one - a quick websearch brings up http://www.viva64.com/en/l/0004/ which shows the basic steps, if necessary) |
@javagl Thank you for the suggestion. I tried the x64 config. Probably that wasn't the issue.
I'm assuming the original error on Win32 config exists due to unlinked libraries. Still looking into it. |
Yes, exactly: My guess was that the "unresolved external symbol: png...." messages had been caused by the fact that it could not link the PNG library due to the wrong architecture type, which it said as the last message. And the messages "module machine type 'x64' conflicts with target machine type 'X86'" still indicate that there is something wrong with this setting. But you most likely already found the related stackoverflow posts (http://stackoverflow.com/questions/3563756/fatal-error-lnk1112-module-machine-type-x64-conflicts-with-target-machine-typ , which says indicates that you might have to manually select "Properties > Configuration Properties > Linker > Advanced > Target Machine: MachineX64", or http://stackoverflow.com/questions/25936688/lnk1112-module-machine-type-x64-conflicts-with-target-machine-type-x86 ...). But actually, the files as generated by CMake should be "clean" in that sense, and it should not be necessary to manually fiddle around with these settings. Since I can't reproduce the error at the moment, I can't give further or more focussed hints right now (sorry). |
The unofficial build provided here #1 worked. @javagl Thank you again for your input. |
C:\Users\123\Documents\GitHub\COLLADA2GLTF.build\bin\Debug>collada2gltf -f D:\CyberCity3D_Sample_Collada\Miami_Sample.dae |
Just the quick link for the main developers: COLLADA2GLTF/COLLADA2GLTFWriter.cpp Line 238 in 6bc66f2
Transparency and opacity in COLLADA is .... sometimes not entirely straightforward, and there are some related issues already. Do you have the option to change the transparency/opaqueness mode in the COLLADA input file?
|
Closing as this seems to have been resolved, feel free to reopen if you have any other issues. |
Dear programmers,
I need to run this converter on windows 8.1; already installed the CMake but I have no idea about the next steps; I kindly ask you to provide me some step-by-step information for running the converter.
Thanks
The text was updated successfully, but these errors were encountered: