Comments (24)
It looks like there's something wrong with pythonembed. Could you zip and upload it?
from src.
Alright, thanks. Here you go.
from src.
Just rebuilt it (might have done something wrong in the command line with cmake previously), looks like it doubled the file size x2. Going to give it a whirl.
from src.
Now down to 2, hooray: http://i.imgur.com/FYLettw.png
Want the file again?
from src.
Any ideas?
from src.
Please send your file.
from src.
Sorry for the long delay. Here is the file.
from src.
Hey loblao, any updates on this? Thanks so much! @loblao
from src.
I could supply you with my pythonembed, it has nothing wrong with it from what I can tell.
from src.
That would be great. Thanks!
from src.
pythonembed.zip
Here you go!
If it doesn't work, I won't be able to help, unfortunately. The reason Nirai doesn't offer precompiled binaries is due to compatibility issues.
This pythonembed was compiled on a 64-bit machine running Windows 10.
from src.
Any help would be appreciated. I get these errors when I try to compile some source.
I have looked through other issues and couldn't find any use for them, the pythonembeded.lib you sent fixes 2 of the unresolved external symbols, but not all 7. I built mine as a win32 application, if any more information is needed please let me know.
"E:\Panda3D-1.10.0\python\ppython.exe" -OO make.py -cnm
Compiling CXX codes...
aes.cxx
main.cxx
stride.cxx
Linking...
Creating library built/infinity.lib and object built/infinity.exp
main.obj : error LNK2001: unresolved external symbol _initdirect
main.obj : error LNK2001: unresolved external symbol "void __cdecl init_libmotiontrail(void)" (?init_libmotiontrail@@yaxxz)
main.obj : error LNK2001: unresolved external symbol _initcore
stride.obj : error LNK2001: unresolved external symbol _initlibpandadna
stride.obj : error LNK2001: unresolved external symbol "void __cdecl init_libpandadna(void)" (?init_libpandadna@@yaxxz)
built/infinity.exe : fatal error LNK1120: 5 unresolved externals
from src.
@emiily Download the Nirai panda source again, and edit compile.bat and remove --no-pandatool
and --static
, and for faster build times, go ahead and add --no-eigen
(optional). Now, you're going to need libpandadna. Extract the source into desktop, and edit CMakeLists.txt and change the panda3d directory to where your freshly built non static Panda3d is (the built folder in that new p3d), and cmake it. Then in that project directory (after building it with VS2010 (Set build mode to release!)), copy the libpandadna.dir directory to your build folder. On line 111 of make.py (If you're using Stride, which you are), add this line: compiler._built |= set(glob.glob('libpandadna.dir/Release/*.obj'))
. For the other errors, make sure your local version of Nirai (build/nirai/src) is up-to-date, as the other errors have been fixed.
from src.
@lolman8776 I attached my BuildLog in a zip file. I'm trying to build libpandadna, I get 4 errors.
Incase it's something else, I get 25 unresolved externals. I put a file showing the logs in the zip
(For some reason I couldn't attach my zip file, so go here to download it.)
from src.
You need to build your actual stride.cxx executable on the NORMAL panda3d (the one that you didn't modify the compile.bat for), and build libpandadna against the one you DID modify compile.bat for. I can give you my .obj files for Libpandadna, too. But, if it doesn't work, I can't help you and it must be because of compatibility issues. I have attached the obj files. Extract the libpandadna.dir folder into your build directory (The same directory as your make.py).
libpandadna.zip
from src.
I still get the error, ultimately. Not sure what you mean by building stride.cxx, however. I was also able to build libpandadna myself, can't remember what I did there.
from src.
When you run make.py with -c or -compile-cxx, you're building stride.cxx. That's the code that sets up your executable. You built libpandadna on the panda3d that you edited the compile.bat and removed --static
and --no-pandatool
for, and you built the make.py --compile-cxx
executable using the panda3d that didn't have the modified compile.bat, right? If so, you shouldn't have any trouble.
EDIT: On the panda3d you edited the compile.bat for, you didn't run postbuild, did you? If so, that was the problem with libpandadna.
from src.
I didn't. But, I'm still having issues. ):
(Also I now see the cxx thing >.>)
Compiling CXX codes...
aes.cxx
infinity.cxx
main.cxx
Linking...
Creating library built/infinity.lib and object built/infinity.exp
infinity.obj : error LNK2001: unresolved external symbol "private: static class TypeHandle TypeHandle::_none" (?_none@TypeHandle@@0V1@A)
infinity.obj : error LNK2001: unresolved external symbol "class TypeHandle uchar_type_handle" (?uchar_type_handle@@3VTypeHandle@@A)
infinity.obj : error LNK2001: unresolved external symbol "class MemoryHook * memory_hook" (?memory_hook@@3PAVMemoryHook@@A)
infinity.obj : error LNK2001: unresolved external symbol "private: static class MemoryUsage * MemoryUsage::_global_ptr" (?_global_ptr@MemoryUsage@@0PAV1@A)
infinity.obj : error LNK2001: unresolved external symbol "private: static class TypeHandle ReferenceCount::_type_handle" (?_type_handle@ReferenceCount@@0VTypeHandle@@A)
infinity.obj : error LNK2001: unresolved external symbol "private: static class TypeHandle NodeReferenceCount::_type_handle" (?_type_handle@NodeReferenceCount@@0VTypeHandle@@A)
infinity.obj : error LNK2001: unresolved external symbol "private: static class TypeHandle TypedObject::_type_handle" (?_type_handle@TypedObject@@0VTypeHandle@@A)
infinity.obj : error LNK2001: unresolved external symbol "private: static class TypeHandle Datagram::_type_handle" (?_type_handle@Datagram@@0VTypeHandle@@A)
infinity.obj : error LNK2001: unresolved external symbol _initlibpandadna
infinity.obj : error LNK2001: unresolved external symbol "void __cdecl init_libpandadna(void)" (?init_libpandadna@@YAXXZ)
built/infinity.exe : fatal error LNK1120: 10 unresolved externals
from src.
Can you attach infinity.cxx so that I can see if I can fix it (Mine needed modification to work)? Also, you don't need to hide that you're using Stride code, it says in their repository's readme that the TTS team welcomes you to build upon the code :)
from src.
Not hiding, just trying to create a server for some close friends without getting my custom source leaked. Anyways, here you go: infinity.cxx
from src.
Alright then, that's fine too. I'll get to work on fixing it and I'll see what I can do.
from src.
I believe your issue is actually caused by a broken libpandadna build. Try mine and see your results.
P.S: CHANGE YOUR ENCRYPTION KEY! I've commented "CHANGEME" on what you need to change. Make sure you change the
letters to something random. Otherwise, anyone can find the TTS key and dump your source.
Make sure to change it in make.py, too. Just search for the old key (The one I commented CHANGEME on.). If you
don't, the game will not run, because it cannot decrypt ToonData.bin due to an incorrect key.
P.P.S: You need to change the header size to 10, because TTINFINITY is 10 characters long. I have done that for you in the edited version attached.
Here you are!
from src.
Thank you for that. I can't even compile p3d anymore for some reason. I either get:
LNK1112: module machine type 'x64' conflicts with target machine type 'X86'"
or unresolved externals.
If possible, could you attach your built panda3d?
from src.
Sorry for the (extremely) late reply, but you should submit your current problem as a new issue.
from src.
Related Issues (20)
- unresolved externals HOT 7
- Errors when linking libpandadna to exectuable HOT 4
- Nevermind
- Error when building Panda3D on Mac HOT 1
- symbol(s) not found for architecture x86_64 HOT 6
- Panda3D stuck on 41% build [Windows] HOT 3
- Assertion Error HOT 2
- Fatal Error HOT 4
- How can I build python to get the python embed lib file?
- Error while building python HOT 2
- Nirai automatically sets the game to use OpenGl and Tinydisplay HOT 1
- panda3d error on mac
- The icon and cursor are not loading. HOT 1
- The cursor and icon HOT 1
- Error when compiling Miles HOT 1
- Compiling on macOS 10.11 HOT 1
- (macos) Error when trying to use json: no codec search functions registered: can't find encoding HOT 2
- Segmentation Fault 11 HOT 3
- Python 3
- NIRAI SECURITY BREACHED HOT 1
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 src.